[Bug 273193] KASSERT - embedding a #include directive within macro arguments is not supported
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 273193] KASSERT - embedding a #include directive within macro arguments is not supported"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 273193] KASSERT - embedding a #include directive within macro arguments is not supported"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Aug 2023 03:41:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273193 Bug ID: 273193 Summary: KASSERT - embedding a #include directive within macro arguments is not supported Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: kenrap@kennethraplee.com # uname -aKU FreeBSD freebsd 14.0-ALPHA1 FreeBSD 14.0-ALPHA1 amd64 1400094 #7 main-n264755-bf46512a54cd: Tue Aug 15 22:50:07 PDT 2023 root@freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 1400094 1400094 # git log -n1 --oneline 214e3e09b338 (HEAD -> main, origin/main, origin/HEAD) fwget: fix installing multiple firmware files ================================================ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:43: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/hrtimer.h:32: /usr/src/sys/compat/linuxkpi/common/include/linux/ktime.h:34:2: error: embedding a #include directive within macro arguments is not supported #include <linux/jiffies.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:43: /usr/src/sys/compat/linuxkpi/common/include/linux/hrtimer.h:33:2: error: embedding a #include directive within macro arguments is not supported #include <linux/timer.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:44:2: error: embedding a #include directive within macro arguments is not supported #include <linux/mm_types.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:45:2: error: embedding a #include directive within macro arguments is not supported #include <linux/pid.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:46:2: error: embedding a #include directive within macro arguments is not supported #include <linux/slab.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:47:2: error: embedding a #include directive within macro arguments is not supported #include <linux/string.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:48:2: error: embedding a #include directive within macro arguments is not supported #include <linux/spinlock.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:49:2: error: embedding a #include directive within macro arguments is not supported #include <linux/time.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:51:2: error: embedding a #include directive within macro arguments is not supported #include <linux/sched/mm.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:53:2: error: embedding a #include directive within macro arguments is not supported #include <asm/atomic.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:49:2: error: embedding a #include directive within macro arguments is not supported #include <linux/types.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:50:2: error: embedding a #include directive within macro arguments is not supported #include <linux/typecheck.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:51:2: error: embedding a #include directive within macro arguments is not supported #include <linux/jiffies.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:52:2: error: embedding a #include directive within macro arguments is not supported #include <linux/log2.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:53:2: error: embedding a #include directive within macro arguments is not supported #include <linux/kconfig.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:55:2: error: embedding a #include directive within macro arguments is not supported #include <asm/byteorder.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:56:2: error: embedding a #include directive within macro arguments is not supported #include <asm/cpufeature.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:57:2: error: embedding a #include directive within macro arguments is not supported #include <asm/processor.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/mem.c:39: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kref.h:37: /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:58:2: error: embedding a #include directive within macro arguments is not supported #include <asm/uaccess.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] Building /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/ext2fs/ext2_bmap.o In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/provider.c:42: In file included from /usr/src/sys/ofed/include/rdma/ib_verbs.h:45: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:38: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kobject.h:34: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:43: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/hrtimer.h:32: /usr/src/sys/compat/linuxkpi/common/include/linux/ktime.h:34:2: error: embedding a #include directive within macro arguments is not supported #include <linux/jiffies.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/provider.c:42: In file included from /usr/src/sys/ofed/include/rdma/ib_verbs.h:45: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:38: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kobject.h:34: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:43: /usr/src/sys/compat/linuxkpi/common/include/linux/hrtimer.h:33:2: error: embedding a #include directive within macro arguments is not supported #include <linux/timer.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here 20 errors generated. KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ Building /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/crypto/ed25519_ref10.o In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/provider.c:42: In file included from /usr/src/sys/ofed/include/rdma/ib_verbs.h:45: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:38: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kobject.h:34: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:48: /usr/src/sys/compat/linuxkpi/common/include/linux/sched.h:44:2: error: embedding a #include directive within macro arguments is not supported #include <linux/mm_types.h> ^ /usr/src/sys/compat/linuxkpi/common/include/linux/math64.h:151:2: note: expansion of macro 'KASSERT' requested here KASSERT(rem < z, ("%s: rem %ju >= z %ju\n", __func__, ^ In file included from /usr/src/sys/dev/cxgbe/iw_cxgbe/provider.c:42: In file included from /usr/src/sys/ofed/include/rdma/ib_verbs.h:45: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:38: Building /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/cxgbe/if_cxgbev/if_cxgbev.ko.debug Building /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/em/e1000_82542.o Building /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/fib_dxr/opt_inet.h Building /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/zstd_fast.o Building /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/fdc/fdc_isa.o *** [mem.o] Error code 1 make[5]: stopped in /usr/src/sys/modules/cxgbe/iw_cxgbe .ERROR_TARGET='mem.o' .ERROR_META_FILE='/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/cxgbe/iw_cxgbe/mem.o.meta' .MAKE.LEVEL='5' MAKEFILE='' .MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose' 10.83 real 41.22 user 3.29 sys make[1]: stopped in /usr/src make: stopped in /usr/src -- You are receiving this mail because: You are the assignee for the bug.