kernel/module.c: suppress warning about unused nowarn variable
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Tue, 6 Jun 2017 12:17:39 +0000 (14:17 +0200)
committerJessica Yu <jeyu@kernel.org>
Mon, 26 Jun 2017 15:23:19 +0000 (17:23 +0200)
commit1ba5c08b58a0c21fca222f1bf2fde184aa26103f
tree958a979940db979133f522dde5c722575109d957
parent3e2e857f9c3a19d55ee0ba7b428b8be5008960bf
kernel/module.c: suppress warning about unused nowarn variable

This patch fix the following warning:
kernel/module.c: In function 'add_usage_links':
kernel/module.c:1653:6: warning: variable 'nowarn' set but not used [-Wunused-but-set-variable]

[jeyu: folded in first patch since it only swapped the function order
so that del_usage_links can be called from add_usage_links]
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
kernel/module.c