* [daveh-devel:kss 24/32] arch/x86/mm/cpu_entry_area.c:97:16: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'phys_addr_t' {aka 'unsigned int'}
@ 2026-10-18 19:17 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-18 19:17 UTC (permalink / raw)
To: Dave Hansen; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git kss
head: 1b2e2aefa6c7e3d15fac1b25a971b2d2cc3b697d
commit: 2c3b2196343ffa5e0389c9a104fe9c00e0875799 [24/32] cea-estacks-shadows-debug1
config: i386-allnoconfig (https://download.01.org/0day-ci/archive/20261019/202610190326.fXFHYXZL-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261019/202610190326.fXFHYXZL-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610190326.fXFHYXZL-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:31,
from arch/x86/include/asm/bug.h:195,
from arch/x86/include/asm/alternative.h:9,
from arch/x86/include/asm/atomic.h:7,
from include/linux/atomic.h:7,
from include/linux/jump_label.h:243,
from include/linux/static_key.h:1,
from arch/x86/include/asm/nospec-branch.h:6,
from arch/x86/include/asm/irqflags.h:9,
from include/linux/irqflags.h:18,
from include/linux/spinlock.h:59,
from arch/x86/mm/cpu_entry_area.c:3:
arch/x86/mm/cpu_entry_area.c: In function 'cea_set_pte':
>> arch/x86/mm/cpu_entry_area.c:97:16: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=]
97 | printk("%s(0x%016lx, 0x%016llx, 0x%016lx)\n", __func__, va, pa, pgprot_val(flags));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
| |
| phys_addr_t {aka unsigned int}
include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
arch/x86/mm/cpu_entry_area.c:97:9: note: in expansion of macro 'printk'
97 | printk("%s(0x%016lx, 0x%016llx, 0x%016lx)\n", __func__, va, pa, pgprot_val(flags));
| ^~~~~~
arch/x86/mm/cpu_entry_area.c:97:38: note: format string is defined here
97 | printk("%s(0x%016lx, 0x%016llx, 0x%016lx)\n", __func__, va, pa, pgprot_val(flags));
| ~~~~~~^
| |
| long long unsigned int
| %016x
vim +97 arch/x86/mm/cpu_entry_area.c
78
79 void cea_set_pte(void *cea_vaddr, phys_addr_t pa, pgprot_t flags)
80 {
81 unsigned long va = (unsigned long) cea_vaddr;
82 pte_t pte = pfn_pte(pa >> PAGE_SHIFT, flags);
83
84 /*
85 * The cpu_entry_area is shared between the user and kernel
86 * page tables. All of its ptes can safely be global.
87 * _PAGE_GLOBAL gets reused to help indicate PROT_NONE for
88 * non-present PTEs, so be careful not to set it in that
89 * case to avoid confusion.
90 */
91 if (boot_cpu_has(X86_FEATURE_PGE) &&
92 (pgprot_val(flags) & _PAGE_PRESENT))
93 pte = pte_set_flags(pte, _PAGE_GLOBAL);
94
95 set_pte_vaddr(va, pte);
96
> 97 printk("%s(0x%016lx, 0x%016llx, 0x%016lx)\n", __func__, va, pa, pgprot_val(flags));
98 }
99
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-18 19:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-18 19:17 [daveh-devel:kss 24/32] arch/x86/mm/cpu_entry_area.c:97:16: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'phys_addr_t' {aka 'unsigned int'} kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.