From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754070AbcBAQpG (ORCPT ); Mon, 1 Feb 2016 11:45:06 -0500 Received: from smtp.opengridcomputing.com ([72.48.136.20]:49786 "EHLO smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752576AbcBAQpE (ORCPT ); Mon, 1 Feb 2016 11:45:04 -0500 From: "Steve Wise" To: "'Arnd Bergmann'" , "'Doug Ledford'" , "'Sean Hefty'" , "'Hal Rosenstock'" Cc: "'Steve Wise'" , , , References: <2278867.O0SM8nbQp0@wuerfel> In-Reply-To: <2278867.O0SM8nbQp0@wuerfel> Subject: RE: [PATCH] infiniband: cxgb4: use %pR format string for printing resources Date: Mon, 1 Feb 2016 10:45:04 -0600 Message-ID: <025701d15d0f$e67ed760$b37c8620$@opengridcomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKWhIJcTC4eq7VlzfJYzRX39OBNhZ2NFovg Content-Language: en-us Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: [PATCH] infiniband: cxgb4: use %pR format string for printing resources > > The cxgb4 prints an MMIO resource using the "0x%x" and "%p" format > strings on the length and start, respective, but that > triggers a compiler warning when using a 64-bit resource_size_t > on a 32-bit architecture: > > drivers/infiniband/hw/cxgb4/device.c: In function 'c4iw_rdev_open': > drivers/infiniband/hw/cxgb4/device.c:807:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] > (void *)pci_resource_start(rdev->lldi.pdev, 2), > > This changes the format string to use %pR instead, which pretty-prints > the resource, avoids the warning and is shorter. > > Signed-off-by: Arnd Bergmann > --- > This is an old warning I see rarely on ARM randconfig builds. Acked-by: Steve Wise