]> www.infradead.org Git - users/jedix/linux-maple.git/commit
module: fix build error when CONFIG_SYSFS is disabled
authorBixuan Cui <cuibixuan@huawei.com>
Wed, 2 Jun 2021 03:53:29 +0000 (13:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 Jun 2021 08:17:07 +0000 (18:17 +1000)
commit3b0c6724067f875f534c59f0bee5432dc865bb4f
tree889ea9d45fc503a2d03a616debd6255707f34ea5
parent8d4c2ba2600b6df4945570d9f46884a6afbce1df
module: fix build error when CONFIG_SYSFS is disabled

Fix build error when disable CONFIG_SYSFS:
kernel/module.c:2805:8: error: implicit declaration of function `sect_empty'; did you mean `desc_empty'? [-Werror=implicit-function-declaration]
 2805 |   if (!sect_empty(sechdr) && sechdr->sh_type == SHT_NOTE &&

Link: https://lkml.kernel.org/r/20210525105049.34804-1-cuibixuan@huawei.com
Fixes: 9ee6682aa528 ("module: add printk formats to add module build ID to stacktraces")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Acked-by: Jessica Yu <jeyu@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
kernel/module.c