linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PROBLEM: VMU driver fails to compile in 6.12.32
@ 2025-06-10  3:38 TheComputerGuy
  2025-06-10  5:19 ` Bagas Sanjaya
  0 siblings, 1 reply; 2+ messages in thread
From: TheComputerGuy @ 2025-06-10  3:38 UTC (permalink / raw)
  To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com,
	linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PROBLEM: VMU driver fails to compile in 6.12.32
  2025-06-10  3:38 PROBLEM: VMU driver fails to compile in 6.12.32 TheComputerGuy
@ 2025-06-10  5:19 ` Bagas Sanjaya
  0 siblings, 0 replies; 2+ messages in thread
From: Bagas Sanjaya @ 2025-06-10  5:19 UTC (permalink / raw)
  To: TheComputerGuy, miquel.raynal@bootlin.com, richard@nod.at,
	vigneshr@ti.com, Linux MTD, Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

On Tue, Jun 10, 2025 at 03:38:39AM +0000, TheComputerGuy wrote:
> 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:

Can you post the full config? Or can you reproduce with minimum config that
triggers it?

Confused...

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-10  5:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10  3:38 PROBLEM: VMU driver fails to compile in 6.12.32 TheComputerGuy
2025-06-10  5:19 ` Bagas Sanjaya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).