module: merge repetitive strings in module_sig_check()
authorSergey Shtylyov <s.shtylyov@omprussia.ru>
Sat, 31 Oct 2020 20:06:45 +0000 (23:06 +0300)
committerJessica Yu <jeyu@kernel.org>
Wed, 4 Nov 2020 14:31:19 +0000 (15:31 +0100)
commit705e9195187d85249fbb0eaa844b1604a98fbc9a
tree3d4187ddc116e0ee8f90e5236680ccccefbcf9e5
parent5e8ed280dab9eeabc1ba0b2db5dbe9fe6debb6b5
module: merge repetitive strings in module_sig_check()

The 'reason' variable in module_sig_check() points to 3 strings across
the *switch* statement, all needlessly starting with the same text.
Let's put the starting text into the pr_notice() call -- it saves 21
bytes of the object code (x86 gcc 10.2.1).

Suggested-by: Joe Perches <joe@perches.com>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
kernel/module.c