Hi Steve, On Fri, Oct 4, 2019 at 12:15 AM Steve French <smfrench@xxxxxxxxx> wrote: > > On Thu, Oct 3, 2019 at 5:43 AM Matthias Maennich <maennich@xxxxxxxxxx> wrote: > > > > Hi Steve! > > > > On Wed, Oct 02, 2019 at 06:54:26PM -0500, Steve French wrote: > > >And running the build differently, from the root of the git tree > > >(5.4-rc1) rather than using the Ubuntu 5.4-rc1 headers also fails > > > > > >e.g. "make M=fs/cifs modules nsdeps" > > > > > >... > > > LD [M] fs/cifs/cifs.o > > > Building modules, stage 2. > > > MODPOST 1 modules > > >WARNING: module cifs uses symbol sigprocmask from namespace > > >_fs/cifs/cache.o), but does not import it. > > >... > > >WARNING: module cifs uses symbol posix_test_lock from namespace > > >cifs/cache.o), but does not import it. > > > CC [M] fs/cifs/cifs.mod.o > > > LD [M] fs/cifs/cifs.ko > > > Building modules, stage 2. > > > MODPOST 1 modules > > >./scripts/nsdeps: 34: local: ./fs/cifs/cifsfs.c: bad variable name > > >make: *** [Makefile:1710: nsdeps] Error 2 > > > > Thanks for reporting this. It appears to me you hit a bug that was > > recently discovered: when building with `make M=some/subdirectory`, > > modpost is misbehaving. Can you try whether this patch series solves > > your problems: > > https://lore.kernel.org/lkml/20191003075826.7478-1-yamada.masahiro@xxxxxxxxxxxxx/ > > In particular patch 2/6 out of the series. > > > > Cheers, > > Matthias > > > Applying just patch 2 and doing "make" from the root of the git tree > (5.4-rc1), at the tail end of the build I got > > ... > Kernel: arch/x86/boot/bzImage is ready (#87) > Building modules, stage 2. > MODPOST 5340 modules > free(): invalid pointer > Aborted (core dumped) Right. Since 2/6 depends on 1/6, applying only the second one does not work. > make[1]: *** [scripts/Makefile.modpost:94: __modpost] Error 134 > make: *** [Makefile:1303: modules] Error 2 > > With patch 2 and doing make M=fs/cifs nsdeps from the root of the git tree I get > > $ make M=fs/cifs nsdeps > Building modules, stage 2. > MODPOST 1 modules > Building modules, stage 2. > MODPOST 1 modules > ./scripts/nsdeps: 34: local: ./fs/cifs/cifsfs.c: bad variable name > make: *** [Makefile:1710: nsdeps] Error 2 > > > -- > Thanks, > > Steve -- Best Regards Masahiro Yamada