Re: [PATCH] module: fix elf_validity_check() warns seen on 32-bit platforms

From: Shuah Khan
Date: Thu Oct 14 2021 - 15:57:49 EST


On 10/14/21 1:51 PM, Luis Chamberlain wrote:
On Thu, Oct 14, 2021 at 12:10:44PM -0600, Shuah Khan wrote:
Fix the following warnings introduced by

commit: 8b1185a4427b ("module: change to print useful messages from elf_validity_check()")

warning: format '%llu' expects argument of type 'long long unsigned int',
but argument 3 has type 'Elf32_Off' {aka 'unsigned int'}

Fix it by tweaking messages to not print ELF64* fields.

Fixes: 8b1185a4427b ("module: change to print useful messages from elf_validity_check()")
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>

Actually can I trouble you just fold this in with your older patch, I can just
drop your old patch and merge this one. No point in merging two patches
if we can just have one.


Yes. I can do that.

thanks,
-- Shuah