[lkml]   [2019]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3] kbuild: check uniqueness of module names
Hi Masahiro,

On Sat, 18 May 2019 01:07:15 +0900 Masahiro Yamada <> wrote:
> It checks not only real modules, but also built-in modules (i.e.
> controlled by tristate CONFIG option, but currently compiled with =y).
> Non-unique names for built-in modules also cause problems because
> /sys/modules/ would fall over.
> I tested allmodconfig on the latest kernel, and it detected the
> following:

A powerpc ppc64_defconfig produces:

warning: same basename if the following are built as modules:

Which is a false positive since
arch/powerpc/platforms/powermac/Makefile has

# CONFIG_NVRAM is an arch. independent tristate symbol, for pmac32 we really
# need this to be a bool. Cheat here and pretend CONFIG_NVRAM=m is really
obj-$(CONFIG_NVRAM:m=y) += nvram.o

Which means that this nvram.o will never be built as a module.
Stephen Rothwell
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2019-05-20 01:53    [W:0.064 / U:1.980 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site