History

Disable SLUB_TINY for build testing

... and don't error out so hard on missing module descriptions. Before commit 6c6c1fc09de3 ("modpost: require a MODULE_DESCRIPTION()") we used to warn about missing module descriptions, but only when building with extra warnigns (ie 'W=1'). After that commit the warning became an unconditional hard error. And it turns out not all modules have been converted despite the claims to the contrary. As reported by Damian Tometzki, the slub KUnit test didn't have a module description, and apparently nobody ever really noticed. The reason nobody noticed seems to be that the slub KUnit tests get disabled by SLUB_TINY, which also ends up disabling a lot of other code, both in tests and in slub itself. And so anybody doing full build tests didn't actually see this failre. So let's disable SLUB_TINY for build-only tests, since it clearly ends up limiting build coverage. Also turn the missing module descriptions error back into a warning, but let's keep it around for non-'W=1' builds.

Linus Torvalds committed 1 year ago

Commit 6f110a51 parent 16cd1c22 files · +2 −2Browse files

Unified · Split

2 files
  1. mm/Kconfig +1 −1
  2. scripts/mod/modpost.c +1 −1
mm/Kconfig+1−1
@@ -201,7 +201,7 @@ config KVFREE_RCU_BATCHED · 200 unmodified lines
201 201
202config SLUB_TINY202config SLUB_TINY
203 bool "Configure for minimal memory footprint"203 bool "Configure for minimal memory footprint"
204 depends on EXPERT204 depends on EXPERT && !COMPILE_TEST
205 select SLAB_MERGE_DEFAULT205 select SLAB_MERGE_DEFAULT
206 help206 help
207 Configures the slab allocator in a way to achieve minimal memory207 Configures the slab allocator in a way to achieve minimal memory
scripts/mod/modpost.c+1−1
@@ -1603,7 +1603,7 @@ static void read_symbols(const char *modname) · 1602 unmodified lines
1603 }1603 }
1604 1604
1605 if (!get_modinfo(&info, "description"))1605 if (!get_modinfo(&info, "description"))
1606 error("missing MODULE_DESCRIPTION() in %s\n", modname);1606 warn("missing MODULE_DESCRIPTION() in %s\n", modname);
1607 }1607 }
1608 1608
1609 for (sym = info.symtab_start; sym < info.symtab_stop; sym++) {1609 for (sym = info.symtab_start; sym < info.symtab_stop; sym++) {