Skip to contentSkip to conversation

linux-next: build warning after merge of the vfs tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Sep 6, 2018 – Sep 7, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

security/selinux/hooks.c:2835:12: warning: 'selinux_sb_remount' defined but not used [-Wunused-function]
static int selinux_sb_remount(struct super_block *sb, void *data, size_t data_size)

            ^~~~~~~~~~~~~~~~~~

Introduced by commit

dfcf373eab92 ("vfs: Remove unused code after filesystem context changes")

[For some reason this warning only appeared after I merged the net-next tree.]

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 10 lines · Stephen Rothwell

After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

security/selinux/hooks.c:2835:12: warning: 'selinux_sb_remount' defined but not used [-Wunused-function]
static int selinux_sb_remount(struct super_block *sb, void *data, size_t data_size)

            ^~~~~~~~~~~~~~~~~~

Introduced by commit

dfcf373eab92 ("vfs: Remove unused code after filesystem context changes")

Sorry, I forgot to remove the function. It's no longer used, with the checks being done in selinux_validate_for_sb_reconfigure() now, called indirectly from the ->fs_context_validate() hook.

David