From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Mosberger Date: Thu, 31 Aug 2000 17:43:24 +0000 Subject: Re: [Linux-ia64] new toolchain snapshots Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org >>>>> On Thu, 31 Aug 2000 14:44:59 +0200 (MET DST), Dan Pop said: Dan> On Thu, 31 Aug 2000, Keith Owens wrote: >> I'm getting a lot of warnings for format %p with the new >> toolchain on kernel 2.4.0-test7, e.g. >> >> pci-dma.c:100: warning: void format, char arg (arg 2) >> >> static char *io_tlb_start, *io_tlb_end; printk("Placing software >> IO TLB between 0x%p - 0x%p\n", io_tlb_start, io_tlb_end); >> >> What is the correct way to handle these? Cast all pointers to >> (void *) for printing or is there a compiler option I can use to >> make %p accept any pointer, i.e. the old behaviour? Dan> The *correct* way to fix it is to cast every argument Dan> corresponding to a %p to void *, because this is what the C Dan> standard requires for printf. Geez, gotta love ANSI C... I'll fix the ia64 specific kernel files. --david