From patchwork Tue Jan 10 22:53:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 713468 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3tynPh0yjXz9t1L for ; Wed, 11 Jan 2017 09:53:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="T/lemS5r"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756039AbdAJWxn (ORCPT ); Tue, 10 Jan 2017 17:53:43 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:59588 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756079AbdAJWxm (ORCPT ); Tue, 10 Jan 2017 17:53:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Date:Sender:Message-Id:Content-Type:Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From; bh=/0pTjcpeq4I4xOrd3ZO1h0DAxBVfLRyc6TdaMD1lRGk=; b=T/lemS5rZDXU8n5R8ftburtnGzBjOkAgPquLIjxVEbbM7uaRTG5loyjC3IkTQumFdxFggPDD6VmrmPUP24cmUY66eP0ya48o6np5XRfy10POIqjY+cdvQtLkiLqiO096D2c9MBbnkZhPJUAqvLvPKOKsMG8C/70fTDyq37IVTec=; Received: from e0022681537dd.dyn.armlinux.org.uk ([2001:4d48:ad52:3201:222:68ff:fe15:37dd]:51140 helo=rmk-PC.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1cR5IH-0006mv-Ht; Tue, 10 Jan 2017 22:53:29 +0000 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1cR5IG-0008Gw-HV; Tue, 10 Jan 2017 22:53:28 +0000 From: Russell King To: Linus Walleij Cc: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , linux-arm-kernel@lists.infradead.org, Alexandre Courbot , linux-gpio@vger.kernel.org Subject: [PATCH] gpio: mvebu: fix warning when building on 64-bit MIME-Version: 1.0 Content-Disposition: inline Message-Id: Date: Tue, 10 Jan 2017 22:53:28 +0000 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Casting a pointer to an int is not portable, and provokes a compiler warning. Cast to unsigned long instead to avoid the warning. drivers/gpio/gpio-mvebu.c: In function 'mvebu_gpio_probe': drivers/gpio/gpio-mvebu.c:662:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] soc_variant = (int) match->data; ^ This will be needed when building gpio-mvebu for Armada 7k/8k ARM64 SoCs. Signed-off-by: Russell King --- Linus, I don't think this is necessary to push into -rc, as its not yet used on ARM64 - GPIO support is not yet present in the DTS files, and the Kconfig doesn't allow the driver to be built on ARM64. Hence, please queue for the next merge window as a low priority fix. Thanks. drivers/gpio/gpio-mvebu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c index 1ed6132b993c..a649556ac3ca 100644 --- a/drivers/gpio/gpio-mvebu.c +++ b/drivers/gpio/gpio-mvebu.c @@ -659,7 +659,7 @@ static int mvebu_gpio_probe(struct platform_device *pdev) match = of_match_device(mvebu_gpio_of_match, &pdev->dev); if (match) - soc_variant = (int) match->data; + soc_variant = (unsigned long) match->data; else soc_variant = MVEBU_GPIO_SOC_VARIANT_ORION;