Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932430AbbLRP3s (ORCPT ); Fri, 18 Dec 2015 10:29:48 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:60294 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753250AbbLRP3q (ORCPT ); Fri, 18 Dec 2015 10:29:46 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Linus Walleij , "linux-gpio@vger.kernel.org" , Ludovic Desroches , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] pinctrl: at91-pio4: use %pr format string for resource Date: Fri, 18 Dec 2015 16:29:16 +0100 Message-ID: <2376227.VpCVZMP4nr@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <5199877.GVYeflqET9@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:Tc2Ou75YsBiSgCHKuq6EBr0xP/uGaMX3uwJ1SxEYHRsvdm2T2Xh 8n85V4ytcWtcy+Fb2mYADkpBJ5HPWo0kBLPIX2E9WjJhL82o3aYr1FZ72toWpcVCxrU72Be LDS+6o2H4AEgHhzE5MXK8OvM9qmoRotyEEdQqBdBy6iwUnSt/VrFfoPgeIzKcOqhc7dP10a RFqiq0TOf6QVzph4/F+8A== X-UI-Out-Filterresults: notjunk:1;V01:K0:v2/htqdgfO8=:QEixR9IGKbZP/s0Xk38EFW ZXMPUWmtJLy1/owMhuxO31YX/6r3UDktM4QHx+LtaneXogEnI0FPsvvGDfM5nHFFE+5a/908N mZ38BT7z74/w7Qtsa5kFLmjq/3dDXmELOONk43Jd5v73fwkneonHHQxzlkT1fLwK5hKN0MzFF Xw6W6Npdi+Z2wHt1F9bTm+TE94Omj/tgClA448yjXrTRl5yQ3KvSld4baAW8OoZY/Mm1+yZ9L DO9SUTq7AHuHRaDvMv6o5qUnsmO6c1eeggq1pYWgq2fv5AvYE9ahRmJw27chUX+IRyfgA4yrD awXvuATtsk7Sk7RVtXMN+o1lXCN2nXuUboozFNgFdjEtgL1Cnh2kUHj3E0I5KQ8ZZQVxcivvn gAAhZ5jwrBi4iBaylGat2PUQOsB1EVjpTHSb/OwC+6Gpaucvfo0aIDVnSJNkCNRqp5IOYBSB0 HM/+8ln3WgwR/4LtO2EpQyIyk7nidRAZmuoEn0jmSabi/8uc6WAGnw6xmedmvmRkCDXCqI6UH riSrEXst5+p7WCvQasQeEyp+iYNAs0cYmsAmflod9OcjJiisyIRDktSXGc+aZoaecqRGBzha+ YpM6SMCGhl6AgKksaUSlcKWPjGL5zGK4s3cqqGCEux8AODrNATk0pEDHzJzL5S2JL/J2ItUwx lNDglOvBfYY5BBBpj+P879kjE61KW0AvBkCHRDZqsHppHnavddzNDmsN2NpwLWe2meUwS8dme dJra5QXZgVNg+Sc1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1310 Lines: 30 On Monday 30 November 2015 09:47:03 Linus Walleij wrote: > On Wed, Nov 18, 2015 at 4:21 PM, Arnd Bergmann wrote: > > > resource_size_t may be defined as 32 or 64 bit depending on configuration, > > so it cannot be printed using the normal format strings, as gcc correctly > > warns: > > > > pinctrl-at91-pio4.c: In function 'atmel_pinctrl_probe': > > pinctrl-at91-pio4.c:1003:41: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=] > > dev_dbg(dev, "bank %i: hwirq=%u\n", i, res->start); > > > > This changes the format string to use the special "%pr" format > > string that prints a resource, and changes the arguments so we > > the resource structure directly. > > > > Signed-off-by: Arnd Bergmann > > --- > > v2: don't break ordering of arguments, that part was correct already, unlike > > what I said in v1. > > Patch applied with Ludovic's review tag. I don't see this in linux-next, did the commit get lost accidentally? Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/