]> git.baikalelectronics.ru Git - kernel.git/commit
arch_numa: fix common code printing of phys_addr_t
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 28 Jan 2021 03:55:33 +0000 (19:55 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 19 Feb 2021 07:18:04 +0000 (23:18 -0800)
commitb0c54f67c4fbd39b1c7f8d9a273c0b87c13cf7db
treeebc388250b5e75ce12fcf3129601f7e5bad2d65d
parent9c74860f20f6ef158e824cb3a1fca63574162f28
arch_numa: fix common code printing of phys_addr_t

Fix build warnings in the arch_numa common code:

../include/linux/kern_levels.h:5:18: warning: format '%Lx' expects argument of type 'long long unsigned int', but argument 3 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=]
../drivers/base/arch_numa.c:360:56: note: format string is defined here
  360 |    pr_warn("Warning: invalid memblk node %d [mem %#010Lx-%#010Lx]\n",
../drivers/base/arch_numa.c:435:39: note: format string is defined here
  435 |  pr_info("Faking a node at [mem %#018Lx-%#018Lx]\n", start, end - 1);

Fixes: 7dd8ca8e6cc0 ("numa: Move numa implementation to common code")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
drivers/base/arch_numa.c