[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <zuZBGnW2fdIaA_VWDHq0rHzzxfyAt-imVmN8LoVry5hU1U_Yr41geYn7f2Edk8jB6cAUDsUknMjbnXUFPdcykyG_QVezsIriBeN5NO5drlo=@proton.me>
Date: Tue, 10 Jun 2025 03:38:39 +0000
From: TheComputerGuy <rosscomputerguy@...ton.me>
To: "miquel.raynal@...tlin.com" <miquel.raynal@...tlin.com>, "richard@....at" <richard@....at>, "vigneshr@...com" <vigneshr@...com>, "linux-mtd@...ts.infradead.org" <linux-mtd@...ts.infradead.org>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: PROBLEM: VMU driver fails to compile in 6.12.32
When compiling kernel 6.12.32 with GCC 14 and utilizing the "dreamcast_defconfig", I noticed the "drivers/mtd/maps/vmu-flash.c" file fails to compile. The error is:
In file included from ../drivers/mtd/maps/vmu-flash.c:12:../include/linux/maple.h:80:23: error: field 'dev' has incomplete type
80 | struct device dev;
| ^~~
../include/linux/maple.h:85:30: error: field 'drv' has incomplete type
85 | struct device_driver drv;
| ^~~
In file included from ../include/linux/init.h:5,
from ../drivers/mtd/maps/vmu-flash.c:8:
../drivers/mtd/maps/vmu-flash.c: In function 'probe_maple_vmu':
./../include/linux/compiler_types.h:477:27: error: expression in static assertion is not an integer
477 | #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/maple.h:99:25: note: in expansion of macro 'container_of'
99 | #define to_maple_dev(n) container_of(n, struct maple_device, dev)
| ^~~~~~~~~~~~
../drivers/mtd/maps/vmu-flash.c:775:37: note: in expansion of macro 'to_maple_dev'
775 | struct maple_device *mdev = to_maple_dev(dev);
| ^~~~~~~~~~~~
./../include/linux/compiler_types.h:477:27: error: expression in static assertion is not an integer
477 | #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/container_of.h:34:56: note: in expansion of macro 'container_of'
34 | const typeof(*(ptr)) *: ((const type *)container_of(ptr, type, member)),\
| ^~~~~~~~~~~~
../include/linux/maple.h:100:28: note: in expansion of macro 'container_of_const'
100 | #define to_maple_driver(n) container_of_const(n, struct maple_driver, drv)
| ^~~~~~~~~~~~~~~~~~
../drivers/mtd/maps/vmu-flash.c:776:37: note: in expansion of macro 'to_maple_driver'
776 | struct maple_driver *mdrv = to_maple_driver(dev->driver);
| ^~~~~~~~~~~~~~~
../drivers/mtd/maps/vmu-flash.c: In function 'remove_maple_vmu':
./../include/linux/compiler_types.h:477:27: error: expression in static assertion is not an integer
477 | #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/maple.h:99:25: note: in expansion of macro 'container_of'
99 | #define to_maple_dev(n) container_of(n, struct maple_device, dev)
| ^~~~~~~~~~~~
../drivers/mtd/maps/vmu-flash.c:787:37: note: in expansion of macro 'to_maple_dev'
787 | struct maple_device *mdev = to_maple_dev(dev);
| ^~~~~~~~~~~~
make[5]: *** [../scripts/Makefile.build:229: drivers/mtd/maps/vmu-flash.o] Error 1
make[4]: *** [../scripts/Makefile.build:478: drivers/mtd/maps] Error 2
make[3]: *** [../scripts/Makefile.build:478: drivers/mtd] Error 2
make[3]: *** Waiting for unfinished jobs....
../drivers/atm/eni.c:161:13: error: conflicting types for 'dump_mem'; have 'void(struct eni_dev *)' 161 | static void dump_mem(struct eni_dev *eni_dev)
| ^~~~~~~~
In file included from ../include/linux/kdebug.h:5,
from ../arch/sh/include/asm/hw_breakpoint.h:9,
from ../arch/sh/include/asm/processor_32.h:16,
from ../arch/sh/include/asm/processor.h:173,
from ../arch/sh/include/asm/thread_info.h:25,
from ../include/linux/thread_info.h:60,
from ../include/asm-generic/preempt.h:5,
from ./arch/sh/include/generated/asm/preempt.h:1,
from ../include/linux/preempt.h:79,
from ../include/linux/spinlock.h:56,
from ../include/linux/mmzone.h:8,
from ../include/linux/gfp.h:7,
from ../include/linux/umh.h:4,
from ../include/linux/kmod.h:9,
from ../include/linux/module.h:17,
from ../drivers/atm/eni.c:7:
../arch/sh/include/asm/kdebug.h:16:13: note: previous declaration of 'dump_mem' with type 'void(const char *, const char *, long unsigned int, long unsigned int)'
16 | extern void dump_mem(const char *str, const char *loglvl,
| ^~~~~~~~
make[4]: *** [../scripts/Makefile.build:229: drivers/atm/eni.o] Error 1
make[3]: *** [../scripts/Makefile.build:478: drivers/atm] Error 2
make[2]: *** [../scripts/Makefile.build:478: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
tar: Substituting -9223372036854775807 for unknown date format '1980\345\271\264 1\346\234\210 1\346\227\245 \347\201\253\346\233\234\346\227\245 00:00:00 UTC'
CC [M] kernel/kheaders.o
make[1]: *** [/home/ross/nixpkgs/linux-6.12.32/Makefile:1945: .] Error 2
make: *** [../Makefile:224: __sub-make] Error 2
Powered by blists - more mailing lists