Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Aug 2023 03:41:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 273193] KASSERT - embedding a #include directive within macro arguments is not supported
Message-ID:  <bug-273193-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273193

            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=20=20=20=20
root@freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 1400094
1400094

# git log -n1 --oneline=20
214e3e09b338 (HEAD -> main, origin/main, origin/HEAD) fwget: fix installing
multiple firmware files

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D 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 >=3D z %ju\n", __func__,
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=3D]
Building
/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/module=
s/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 >=3D 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 >=3D z %ju\n", __func__,
        ^
Building
/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/module=
s/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 >=3D 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/module=
s/cxgbe/if_cxgbev/if_cxgbev.ko.debug
Building
/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/module=
s/em/e1000_82542.o
Building
/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/modules/usr/src/sys/module=
s/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/module=
s/fdc/fdc_isa.o
*** [mem.o] Error code 1

make[5]: stopped in /usr/src/sys/modules/cxgbe/iw_cxgbe
.ERROR_TARGET=3D'mem.o'
.ERROR_META_FILE=3D'/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/module=
s/usr/src/sys/modules/cxgbe/iw_cxgbe/mem.o.meta'
.MAKE.LEVEL=3D'5'
MAKEFILE=3D''
.MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes ve=
rbose'
       10.83 real        41.22 user         3.29 sys

make[1]: stopped in /usr/src

make: stopped in /usr/src

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273193-227>