[PATCH v2 0/2] suppress warning about unused nowarn variable

From: Corentin Labbe
Date: Tue Jun 06 2017 - 08:20:19 EST


Hello

This patch serie suppress 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]

Changes since v1:
- renamed out_unreg_usage_links to out_unreg_modinfo_attrs
- added extra newline
- added missing call to del_usage_link() in case of add_usage_link() error
- added patch #1

Corentin Labbe (2):
kernel/module.c: Invert add_usage_link and del_usage_link functions
kernel/module.c: suppress warning about unused nowarn variable

kernel/module.c | 30 ++++++++++++++++++++----------
1 file changed, 20 insertions(+), 10 deletions(-)

--
2.13.0