module: merge repetitive strings in module_sig_check()
stable inclusion from stable-5.10.26 commit 8587715b65faae25b07db16d07d09b5831f44742 bugzilla: 51363 -------------------------------- [ Upstream commit 705e9195 ] 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: NJoe Perches <joe@perches.com> Reviewed-by: NMiroslav Benes <mbenes@suse.cz> Signed-off-by: NSergey Shtylyov <s.shtylyov@omprussia.ru> Signed-off-by: NJessica Yu <jeyu@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: N Weilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录