1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-17 20:10:49 +00:00
Viktor Malik bd5314f8dd kallsyms, bpf: Move find_kallsyms_symbol_value out of internal header
Moving find_kallsyms_symbol_value from kernel/module/internal.h to
include/linux/module.h. The reason is that internal.h is not prepared to
be included when CONFIG_MODULES=n. find_kallsyms_symbol_value is used by
kernel/bpf/verifier.c and including internal.h from it (without modules)
leads into a compilation error:

  In file included from ../include/linux/container_of.h:5,
                   from ../include/linux/list.h:5,
                   from ../include/linux/timer.h:5,
                   from ../include/linux/workqueue.h:9,
                   from ../include/linux/bpf.h:10,
                   from ../include/linux/bpf-cgroup.h:5,
                   from ../kernel/bpf/verifier.c:7:
  ../kernel/bpf/../module/internal.h: In function 'mod_find':
  ../include/linux/container_of.h:20:54: error: invalid use of undefined type 'struct module'
     20 |         static_assert(__same_type(*(ptr), ((type *)0)->member) ||       \
        |                                                      ^~
  [...]

This patch fixes the above error.

Fixes: 31bf1dbccfb0 ("bpf: Fix attaching fentry/fexit/fmod_ret/lsm to modules")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Viktor Malik <vmalik@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/oe-kbuild-all/202303161404.OrmfCy09-lkp@intel.com/
Link: https://lore.kernel.org/bpf/20230317095601.386738-1-vmalik@redhat.com
2023-03-17 13:45:51 +01:00
..
2023-01-16 09:26:05 +01:00
2023-02-24 17:18:54 -08:00
2023-02-27 10:04:49 -08:00
2023-02-22 11:05:56 -08:00
2023-02-16 13:42:22 +01:00
2023-02-22 14:21:40 -08:00
2023-02-24 15:11:03 -08:00
2023-02-24 15:11:03 -08:00
2023-02-27 09:47:26 -08:00
2023-02-23 10:28:29 +01:00
2023-02-25 11:30:21 -08:00
2023-02-24 17:12:23 -08:00
2023-02-27 10:04:49 -08:00
2023-02-24 17:29:52 -08:00
2023-02-24 12:58:55 -08:00
2023-02-20 09:20:55 -05:00
2023-02-24 12:58:55 -08:00
2023-02-15 19:38:50 +01:00
2023-01-19 14:46:25 +01:00
2023-03-10 11:05:28 -08:00
2023-03-10 16:38:05 -08:00
2023-02-03 08:20:55 -07:00
2023-01-13 11:48:15 +01:00
2023-02-21 15:27:48 -08:00
2023-02-21 15:27:48 -08:00
2023-02-25 11:30:21 -08:00
2023-02-21 18:24:12 -08:00
2023-01-19 16:07:40 +01:00
2023-02-24 17:18:54 -08:00
2023-01-29 15:18:33 -07:00
2023-01-29 15:18:33 -07:00
2023-02-06 19:06:58 +01:00
2023-01-19 09:24:28 +01:00
2023-02-22 18:28:03 -08:00
2023-01-11 06:52:43 -05:00
2023-02-24 12:58:55 -08:00
2023-02-20 12:33:41 -08:00
2023-02-02 22:33:13 -08:00
2023-02-24 12:58:55 -08:00
2023-01-17 09:29:59 +01:00
2023-02-22 12:36:25 -08:00
2023-02-22 13:50:13 -08:00
2023-02-24 14:34:12 -08:00
2023-02-24 14:34:12 -08:00
2023-02-13 10:11:20 +02:00
2023-01-19 09:24:28 +01:00
2023-01-19 09:24:28 +01:00
2023-01-19 09:24:30 +01:00
2023-02-23 14:00:10 -08:00
2023-02-22 14:21:40 -08:00
2023-03-07 23:57:19 -08:00
2023-02-22 14:47:20 -08:00
2023-02-24 13:31:53 -08:00
2023-02-02 22:33:34 -08:00
2023-01-16 09:26:06 +01:00
2023-02-25 11:48:02 -08:00
2023-02-25 09:19:23 -08:00
2023-03-07 18:19:09 -08:00
2023-01-04 14:44:13 -07:00
2023-02-21 18:24:12 -08:00
2023-01-19 09:24:28 +01:00
2023-03-13 12:42:24 -07:00
2023-01-19 09:24:28 +01:00
2023-01-19 15:01:19 +01:00
2023-01-18 17:12:47 -08:00
2023-02-16 18:10:18 +01:00
2023-02-23 10:20:49 -08:00
2023-01-23 15:38:08 +01:00
2023-02-20 19:26:58 -05:00
2023-01-19 09:24:28 +01:00