From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C71CBC6FD1F for ; Thu, 16 Mar 2023 15:14:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 63A94900003; Thu, 16 Mar 2023 11:14:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5E9DA900002; Thu, 16 Mar 2023 11:14:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 48B35900003; Thu, 16 Mar 2023 11:14:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 3584D900002 for ; Thu, 16 Mar 2023 11:14:40 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 120F0C1366 for ; Thu, 16 Mar 2023 15:14:40 +0000 (UTC) X-FDA: 80575108320.04.0094BE4 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf09.hostedemail.com (Postfix) with ESMTP id 1BE53140028 for ; Thu, 16 Mar 2023 15:14:37 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=PzIn3Rnx; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf09.hostedemail.com: domain of nathan@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=nathan@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678979678; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=w0erHdJyfTmUWJsIO9r0UIfPMCaCy4tAvYnyXfGj/vw=; b=DXfez0PMQSGvpTfhyhu4DYWNMtHodclwyxyBuF+SJPXRKbJmPOW/MPz4s3izZeuAv5MyMg R3FyXZ0qU2xHgmmzKGj44hpcPH0wpZaFF3Ouyeb/ooJyXPo6qmt46RXSfsMbsoR+NCI1Ag t/qOXilHu/6Y7qKfv8ocUs2nQZZ1kr4= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=PzIn3Rnx; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf09.hostedemail.com: domain of nathan@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=nathan@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678979678; a=rsa-sha256; cv=none; b=IOUsSk3fGw4TV9sd5txTU4/rgZf0oYmvEKxe8EQV67UyZVOopaHKc6TOL3QLe+urLtrpDG GzOTTc/1Jtq2C9oLkcC705a+AN5Lvq9ivFFd5YnymCgpaTfDkNGWEE7ehkKw5WmB75AIeB zEir93gcOgkk6991lxNgaiJXYJJc6Bo= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EBA8562074; Thu, 16 Mar 2023 15:14:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFFF8C433D2; Thu, 16 Mar 2023 15:14:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678979676; bh=aISEv7sStNXt3K/WZiWeSXD+gsBf4b07nmGsoRPmw44=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PzIn3RnxOc7Rk/EfE+lvdrNst3sWS4obSzU9WfM+FUrDIOpqA4HKNY1olA7B0f753 xKQYPx73sgUt3G9apzK+A/KeXtjfrBC6bzGpNDyWTHLhanfW3JCA4SmitQnuqaO9l5 HEXgAI4TIpe/iGC12iHl0eu2merwypcbx8s43dRd/fck7uHR1RKUtCzppHp+LPN1p6 ydihDd5+7otF67ue8wO4rVVNikJPVEYn2gNevibBZvulzLIxgiHXeWMdv+vSumDNf0 x+qwp8GgUVkye9QI8dpEWQjS1M585REJOmplvHX1GM+mhFw70l0TO8Hz7VU5fgJXZV jsWe8IW9p2LGQ== Date: Thu, 16 Mar 2023 08:14:34 -0700 From: Nathan Chancellor To: kernel test robot Cc: Viktor Malik , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Alexei Starovoitov , Luis Chamberlain Subject: Re: [linux-next:master 3796/4036] kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' Message-ID: <20230316151434.GA1276310@dev-arch.thelio-3990X> References: <202303161404.OrmfCy09-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202303161404.OrmfCy09-lkp@intel.com> X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 1BE53140028 X-Stat-Signature: e9c89mt75ojunrwtcunrqqzwnzza6gmu X-HE-Tag: 1678979677-784120 X-HE-Meta: U2FsdGVkX18sDmXcVWbgKyBGzTsxyCb1ea5Awoxa3EnazCCvdK+QTcIXmnNk1CRNRi7sWkd+I+nnBmq+Qdo/jgo7EfjWqL4Jscu7TeMDxUxzlxogUMUBA12Tado/MNU1dXMu8pIDmhm8GyCFvRoX1CbZ+H/3vWiNTfvepOQ52cTGMmi+2hApfvGmwGW0/AalmP0PbCQbxKrCNloQrnLNRehCpkQOAw/zFvZmctVfhJu46NxSEMFxjaU/G2Ne+zRaOaTKUUF9eTOvDmr2maYeEyqL9cDLa9DNPK23p9CeOFypTy8emWfcF7IZ2yW9Y5OazMPodHhy/14DAnNYYWXZ8WeNGPp4TJOb4cj9rOcWwjhhA/2uOGzQESRTZi+JXH5CHmx33ECe7A24GE80wraXyZKSyjtlAgLYlJna3XBpi43q7n4ZwCLpqVINxItd0FRWHes+PjMDY8K04JWhTrSHA50p7JAtRBXg0b03zr2/fLuPTExDQdWmSGqed8Ybnos1qzYb9GgFaIqv9TGRc2FPlpaNVjajcxQC9cshhJhvLqV32A9rbVCi6J85Q2BYd6vJg4ksl2pYAoDd3CUgOKr+tYH/Jg2JQ2VlK9dSKHVYP0f7ePC6T7GEjB+0RR2Eq1CWUM3Mri1pzMWYUxFAoj4k/+uBRtX1ZqT5Bt1I1d+j8rqVhnI3CLF09VYwV8BWOi+aisG8IuSyS/86fhjBb+8ktXhsgso78iWMnIQLxHtF9jicaBYUCmr/xJlENxJ0wVf3ApkzS4PNyi0H8Oauw3Yp17wZ6Xb/WarKu9Rqd5Nw5Rzp7jLuNK3ncUJLEsGc8l5g4Z+mYc/wEPNHX8PovbydFaJEWXxZh6vddSCyMwGL7WS0iWo3+LKWBPV/wut+PMLAkaMblZogk8FvoUThX19N8O+Rmx8PadWypWR0o2fq7HHi3+1Wzhe0rcH2aE3mKdTl/bdV+qaL61o096+p7pr yj8orMQe pFX8ck7AtDqI8F+2t0bQcVc0A1kfqB01WZa3bNUszyznlkrjOmNMrLp8wff2kJvWltM/O/l4dl/Mng6N9tXEPfUDeC7h2oTR/lzrr/yH01MMvlhL8Ill5lAtQTCm5QJCun7ZWjc6HXDp29y4p8TZC1OIVUBn1e0FmDAu9LD87tjHrj+CPebo25ewjQd+/fUzNFVvZKZ4X8d61KEICYWPjCrOoic/YzRWZI8taYwymN9V2myr5to+WV7UCbCnc1ij+5PEWInN/WQ0rXTP7EsM60QLUos9M8D9B4mvi5mLihy720/mwdkPn+oR2Zv1+Go5IlV8sdRScuTVQxWqHmlNI8uc4lD8ENFbHhgFtde1dkUgWIvHBM5zJUjdeC2toMq3Bq/Ldjj918Vplk0H293Vl90cIwSxKvXPFRhf4Oz/SopmASvtrFFLDyXZ+CX5+703At5Zcms5+RJhfRdAxH9wyPnZjlR3JZB4wgnZny+v9UMZsfe4NeMJAd+P03gFQh4VgIfdID2JIO7mrtuEDoWu/9hWp3K9CtRQrWM0KRx5be+cOgnE= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Mar 16, 2023 at 02:59:48PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 6f72958a49f68553f2b6ff713e8c8e51a34c1e1e > commit: 2a6427ca8f3a8f08498c7b60e486c95af88d0afd [3796/4036] bpf: Fix attaching fentry/fexit/fmod_ret/lsm to modules > config: riscv-randconfig-r042-20230313 (https://download.01.org/0day-ci/archive/20230316/202303161404.OrmfCy09-lkp@intel.com/config) > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install riscv cross compiling tool for clang build > # apt-get install binutils-riscv64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2a6427ca8f3a8f08498c7b60e486c95af88d0afd > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 2a6427ca8f3a8f08498c7b60e486c95af88d0afd > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv olddefconfig > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash kernel/ > > If you fix the issue, kindly add following tag where applicable > | Reported-by: kernel test robot > | Link: https://lore.kernel.org/oe-kbuild-all/202303161404.OrmfCy09-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/rculist.h:391:13: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu((head)->next, typeof(*pos), member); \ > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/rculist.h:307:2: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/container_of.h:20:47: note: expanded from macro 'container_of' > static_assert(__same_type(*(ptr), ((type *)0)->member) || \ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ > include/linux/compiler_types.h:340:74: note: expanded from macro '__same_type' > #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) > ^ > include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' > #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) > ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' > #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) > ^~~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: offsetof of incomplete type 'typeof (*mod)' (aka 'struct module') > list_for_each_entry_rcu(mod, &modules, list, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/rculist.h:391:13: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu((head)->next, typeof(*pos), member); \ > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/rculist.h:307:2: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/container_of.h:23:21: note: expanded from macro 'container_of' > ((type *)(__mptr - offsetof(type, member))); }) > ^~~~~~~~~~~~~~~~~~~~~~ > include/linux/stddef.h:16:32: note: expanded from macro 'offsetof' > #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) > ^ ~~~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: assigning to 'struct module *' from incompatible type 'void' > list_for_each_entry_rcu(mod, &modules, list, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/rculist.h:391:11: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu((head)->next, typeof(*pos), member); \ > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:392:7: note: expanded from macro 'list_for_each_entry_rcu' > &pos->member != (head); \ > ~~~^ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' > compiletime_assert_rwonce_type(x); \ > ^ > note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:387:23: note: expanded from macro '_compiletime_assert' > __compiletime_assert(condition, msg, prefix, suffix) > ^~~~~~~~~ > include/linux/compiler_types.h:379:9: note: expanded from macro '__compiletime_assert' > if (!(condition)) \ > ^~~~~~~~~ > include/linux/container_of.h:19:26: note: expanded from macro 'container_of' > void *__mptr = (void *)(ptr); \ > ^~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' > compiletime_assert_rwonce_type(x); \ > ^ > note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:387:23: note: expanded from macro '_compiletime_assert' > __compiletime_assert(condition, msg, prefix, suffix) > ^~~~~~~~~ > include/linux/compiler_types.h:379:9: note: expanded from macro '__compiletime_assert' > if (!(condition)) \ > ^~~~~~~~~ > include/linux/container_of.h:19:26: note: expanded from macro 'container_of' > void *__mptr = (void *)(ptr); \ > ^~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' > compiletime_assert_rwonce_type(x); \ > ^ > note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:387:23: note: expanded from macro '_compiletime_assert' > __compiletime_assert(condition, msg, prefix, suffix) > ^~~~~~~~~ > include/linux/compiler_types.h:379:9: note: expanded from macro '__compiletime_assert' > if (!(condition)) \ > ^~~~~~~~~ > include/linux/container_of.h:19:26: note: expanded from macro 'container_of' > void *__mptr = (void *)(ptr); \ > ^~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' > compiletime_assert_rwonce_type(x); \ > ^ > note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:387:23: note: expanded from macro '_compiletime_assert' > __compiletime_assert(condition, msg, prefix, suffix) > ^~~~~~~~~ > include/linux/compiler_types.h:379:9: note: expanded from macro '__compiletime_assert' > if (!(condition)) \ > ^~~~~~~~~ > include/linux/container_of.h:19:26: note: expanded from macro 'container_of' > void *__mptr = (void *)(ptr); \ > ^~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' > compiletime_assert_rwonce_type(x); \ > ^ > note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:387:23: note: expanded from macro '_compiletime_assert' > __compiletime_assert(condition, msg, prefix, suffix) > ^~~~~~~~~ > include/linux/compiler_types.h:379:9: note: expanded from macro '__compiletime_assert' > if (!(condition)) \ > ^~~~~~~~~ > include/linux/container_of.h:19:26: note: expanded from macro 'container_of' > void *__mptr = (void *)(ptr); \ > ^~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE' > __READ_ONCE(x); \ > ^ > include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE' > #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x)) > ^ > include/linux/compiler_types.h:355:13: note: expanded from macro '__unqual_scalar_typeof' > _Generic((x), \ > ^ > include/linux/container_of.h:19:26: note: expanded from macro 'container_of' > void *__mptr = (void *)(ptr); \ > ^~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE' > __READ_ONCE(x); \ > ^ > include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE' > #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x)) > ^ > include/linux/compiler_types.h:362:15: note: expanded from macro '__unqual_scalar_typeof' > default: (x))) > ^ > include/linux/container_of.h:19:26: note: expanded from macro 'container_of' > void *__mptr = (void *)(ptr); \ > ^~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE' > __READ_ONCE(x); \ > ^ > include/asm-generic/rwonce.h:44:72: note: expanded from macro '__READ_ONCE' > #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x)) > ^ > include/linux/container_of.h:19:26: note: expanded from macro 'container_of' > void *__mptr = (void *)(ptr); \ > ^~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: operand of type 'void' where arithmetic or pointer type is required > list_for_each_entry_rcu(mod, &modules, list, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/rculist.h:393:9: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/rculist.h:307:2: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/container_of.h:19:25: note: expanded from macro 'container_of' > void *__mptr = (void *)(ptr); \ > ^~~~~ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' > compiletime_assert_rwonce_type(x); \ > ^ > note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:340:63: note: expanded from macro '__same_type' > #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) > ^ > include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' > #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) > ^~~~ > include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' > #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) > ^~~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' > compiletime_assert_rwonce_type(x); \ > ^ > note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:340:63: note: expanded from macro '__same_type' > #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) > ^ > include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' > #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) > ^~~~ > include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' > #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) > ^~~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' > compiletime_assert_rwonce_type(x); \ > ^ > note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:340:63: note: expanded from macro '__same_type' > #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) > ^ > include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' > #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) > ^~~~ > include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' > #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) > ^~~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' > compiletime_assert_rwonce_type(x); \ > ^ > note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:340:63: note: expanded from macro '__same_type' > #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) > ^ > include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' > #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) > ^~~~ > include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' > #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) > ^~~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE' > compiletime_assert_rwonce_type(x); \ > ^ > note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:340:63: note: expanded from macro '__same_type' > #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) > ^ > include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' > #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) > ^~~~ > include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' > #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) > ^~~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > In file included from kernel/bpf/verifier.c:27: > >> kernel/bpf/../module/internal.h:212:2: error: incomplete definition of type 'struct module' > list_for_each_entry_rcu(mod, &modules, list, > ^ ~~~ > include/linux/rculist.h:393:27: note: expanded from macro 'list_for_each_entry_rcu' > pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) > ~~~^ > include/linux/rculist.h:307:25: note: expanded from macro 'list_entry_rcu' > container_of(READ_ONCE(ptr), type, member) > ^~~ > include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE' > __READ_ONCE(x); \ > ^ > note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) > include/linux/compiler_types.h:340:63: note: expanded from macro '__same_type' > #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) > ^ > include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' > #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) > ^~~~ > include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' > #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) > ^~~~ > include/linux/printk.h:348:8: note: forward declaration of 'struct module' > struct module; > ^ > fatal error: too many errors emitted, stopping now [-ferror-limit=] > 20 errors generated. > > > vim +212 kernel/bpf/../module/internal.h > > 58d208de3e8d87 Aaron Tomlin 2022-03-22 204 > 58d208de3e8d87 Aaron Tomlin 2022-03-22 205 static inline void mod_tree_insert(struct module *mod) { } > 58d208de3e8d87 Aaron Tomlin 2022-03-22 206 static inline void mod_tree_remove_init(struct module *mod) { } > 58d208de3e8d87 Aaron Tomlin 2022-03-22 207 static inline void mod_tree_remove(struct module *mod) { } > 446d55666d5599 Christophe Leroy 2022-02-23 208 static inline struct module *mod_find(unsigned long addr, struct mod_tree_root *tree) > 58d208de3e8d87 Aaron Tomlin 2022-03-22 209 { > 58d208de3e8d87 Aaron Tomlin 2022-03-22 210 struct module *mod; > 58d208de3e8d87 Aaron Tomlin 2022-03-22 211 > 58d208de3e8d87 Aaron Tomlin 2022-03-22 @212 list_for_each_entry_rcu(mod, &modules, list, > 58d208de3e8d87 Aaron Tomlin 2022-03-22 213 lockdep_is_held(&module_mutex)) { > 58d208de3e8d87 Aaron Tomlin 2022-03-22 214 if (within_module(addr, mod)) > 58d208de3e8d87 Aaron Tomlin 2022-03-22 215 return mod; > 58d208de3e8d87 Aaron Tomlin 2022-03-22 216 } > 58d208de3e8d87 Aaron Tomlin 2022-03-22 217 > 58d208de3e8d87 Aaron Tomlin 2022-03-22 218 return NULL; > 58d208de3e8d87 Aaron Tomlin 2022-03-22 219 } > 58d208de3e8d87 Aaron Tomlin 2022-03-22 220 #endif /* CONFIG_MODULES_TREE_LOOKUP */ > b33465fe9c52a3 Aaron Tomlin 2022-03-22 221 > > :::::: The code at line 212 was first introduced by commit > :::::: 58d208de3e8d87dbe196caf0b57cc58c7a3836ca module: Move latched RB-tree support to a separate file > > :::::: TO: Aaron Tomlin > :::::: CC: Luis Chamberlain This is not a clang specific error, I see it with GCC 12.2.0: $ make -skj"$(nproc)" ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- O=build aspeed_g5_defconfig kernel/bpf/verifier.o 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) || \ | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ../include/linux/rculist.h:391:20: note: in expansion of macro 'list_entry_rcu' 391 | pos = list_entry_rcu((head)->next, typeof(*pos), member); \ | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:340:27: error: expression in static assertion is not an integer 340 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ../include/linux/rculist.h:391:20: note: in expansion of macro 'list_entry_rcu' 391 | pos = list_entry_rcu((head)->next, typeof(*pos), member); \ | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/uapi/linux/posix_types.h:5, from ../include/uapi/linux/types.h:14, from ../include/linux/types.h:6, from ../include/uapi/linux/btf.h:6, from ../kernel/bpf/verifier.c:6: ../include/linux/stddef.h:16:33: error: invalid use of undefined type 'struct module' 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ ../include/linux/container_of.h:23:28: note: in expansion of macro 'offsetof' 23 | ((type *)(__mptr - offsetof(type, member))); }) | ^~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ../include/linux/rculist.h:391:20: note: in expansion of macro 'list_entry_rcu' 391 | pos = list_entry_rcu((head)->next, typeof(*pos), member); \ | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/linux/pid.h:5, from ../include/linux/sched.h:14, from ../include/linux/sched/mm.h:7, from ../include/linux/xarray.h:19, from ../include/linux/radix-tree.h:21, from ../include/linux/idr.h:15, from ../include/linux/kernfs.h:12, from ../include/linux/sysfs.h:16, from ../include/linux/kobject.h:20, from ../include/linux/module.h:21, from ../include/linux/bpf.h:20: ../include/linux/rculist.h:392:21: error: invalid use of undefined type 'struct module' 392 | &pos->member != (head); \ | ^~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/container_of.h:19:33: note: in definition of macro 'container_of' 19 | void *__mptr = (void *)(ptr); \ | ^~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/container_of.h:19:33: note: in definition of macro 'container_of' 19 | void *__mptr = (void *)(ptr); \ | ^~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/container_of.h:19:33: note: in definition of macro 'container_of' 19 | void *__mptr = (void *)(ptr); \ | ^~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/container_of.h:19:33: note: in definition of macro 'container_of' 19 | void *__mptr = (void *)(ptr); \ | ^~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/container_of.h:19:33: note: in definition of macro 'container_of' 19 | void *__mptr = (void *)(ptr); \ | ^~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/container_of.h:19:33: note: in definition of macro 'container_of' 19 | void *__mptr = (void *)(ptr); \ | ^~~ ../include/asm-generic/rwonce.h:44:43: note: in expansion of macro '__unqual_scalar_typeof' 44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x)) | ^~~~~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:50:9: note: in expansion of macro '__READ_ONCE' 50 | __READ_ONCE(x); \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/container_of.h:19:33: note: in definition of macro 'container_of' 19 | void *__mptr = (void *)(ptr); \ | ^~~ ../include/asm-generic/rwonce.h:50:9: note: in expansion of macro '__READ_ONCE' 50 | __READ_ONCE(x); \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ../include/asm-generic/rwonce.h:44:43: note: in expansion of macro '__unqual_scalar_typeof' 44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x)) | ^~~~~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:50:9: note: in expansion of macro '__READ_ONCE' 50 | __READ_ONCE(x); \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ../include/asm-generic/rwonce.h:50:9: note: in expansion of macro '__READ_ONCE' 50 | __READ_ONCE(x); \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/container_of.h:20:54: error: invalid use of undefined type 'struct module' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:21:23: note: in expansion of macro '__same_type' 21 | __same_type(*(ptr), void), \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:21:23: note: in expansion of macro '__same_type' 21 | __same_type(*(ptr), void), \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:21:23: note: in expansion of macro '__same_type' 21 | __same_type(*(ptr), void), \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:21:23: note: in expansion of macro '__same_type' 21 | __same_type(*(ptr), void), \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:28: note: in expansion of macro '__native_word' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:21:23: note: in expansion of macro '__same_type' 21 | __same_type(*(ptr), void), \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:387:9: note: in expansion of macro '__compiletime_assert' 387 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:36:9: note: in expansion of macro 'compiletime_assert' 36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \ | ^~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:49:9: note: in expansion of macro 'compiletime_assert_rwonce_type' 49 | compiletime_assert_rwonce_type(x); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:21:23: note: in expansion of macro '__same_type' 21 | __same_type(*(ptr), void), \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ../include/asm-generic/rwonce.h:44:43: note: in expansion of macro '__unqual_scalar_typeof' 44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x)) | ^~~~~~~~~~~~~~~~~~~~~~ ../include/asm-generic/rwonce.h:50:9: note: in expansion of macro '__READ_ONCE' 50 | __READ_ONCE(x); \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/rculist.h:393:41: error: invalid use of undefined type 'struct module' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:21:23: note: in expansion of macro '__same_type' 21 | __same_type(*(ptr), void), \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ../include/asm-generic/rwonce.h:50:9: note: in expansion of macro '__READ_ONCE' 50 | __READ_ONCE(x); \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:22: note: in expansion of macro 'READ_ONCE' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ./../include/linux/compiler_types.h:340:27: error: expression in static assertion is not an integer 340 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/stddef.h:16:33: error: invalid use of undefined type 'struct module' 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ ../include/linux/container_of.h:23:28: note: in expansion of macro 'offsetof' 23 | ((type *)(__mptr - offsetof(type, member))); }) | ^~~~~~~~ ../include/linux/rculist.h:307:9: note: in expansion of macro 'container_of' 307 | container_of(READ_ONCE(ptr), type, member) | ^~~~~~~~~~~~ ../include/linux/rculist.h:393:23: note: in expansion of macro 'list_entry_rcu' 393 | pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~~~~~ ../kernel/bpf/../module/internal.h:212:9: note: in expansion of macro 'list_for_each_entry_rcu' 212 | list_for_each_entry_rcu(mod, &modules, list, | ^~~~~~~~~~~~~~~~~~~~~~~ It appears to be some sort of header inclusion order issue? Cheers, Nathan