Re: %pa format specifier issues

2013-03-05 Thread Dave Hansen
On 03/05/2013 06:19 PM, Stephen Boyd wrote: >> > >> > Am I doing something really stupid here? >> > >> > This is using a 32-bit i386 kernel. >> > >>From reading the patch I thought you had to pass the address via > reference. Otherwise you get the warning like you mention here, and then > probably

Re: %pa format specifier issues

2013-03-05 Thread Stephen Boyd
On 03/05/13 17:18, Dave Hansen wrote: > I went to go use the shiny new %pa specifier: > > void test_printk_pa(void) > { > phys_addr_t p = 0x1234; > printk("p: %pa\n", p); > } > > but gcc is spewing out warnings at me: > >> arch/x86/mm/physaddr.c: In function ‘test_printk_pa’: >> arc

%pa format specifier issues

2013-03-05 Thread Dave Hansen
I went to go use the shiny new %pa specifier: void test_printk_pa(void) { phys_addr_t p = 0x1234; printk("p: %pa\n", p); } but gcc is spewing out warnings at me: > arch/x86/mm/physaddr.c: In function ‘test_printk_pa’: > arch/x86/mm/physaddr.c:95:2: warning: format ‘%p’ expects ar