Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751484AbdHWXaT (ORCPT ); Wed, 23 Aug 2017 19:30:19 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51566 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbdHWXaS (ORCPT ); Wed, 23 Aug 2017 19:30:18 -0400 Date: Wed, 23 Aug 2017 16:30:23 -0700 From: Greg Kroah-Hartman To: Kishon Vijay Abraham I Cc: Arnd Bergmann , John Crispin , Harvey Hunt , linux-kernel@vger.kernel.org Subject: Re: [PATCH] phy: ralink: fix 64-bit build warning Message-ID: <20170823233023.GA7482@kroah.com> References: <20170823134019.927267-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 898 Lines: 24 On Wed, Aug 23, 2017 at 07:50:46PM +0530, Kishon Vijay Abraham I wrote: > Greg, > > On Wednesday 23 August 2017 07:09 PM, Arnd Bergmann wrote: > > Casting between an 'int' and a pointer causes a warning on > > 64-bit architectures in compile-testing this driver: > > > > drivers/phy/ralink/phy-ralink-usb.c: In function 'ralink_usb_phy_probe': > > drivers/phy/ralink/phy-ralink-usb.c:195:13: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] > > > > This changes the code to cast to uintptr_t instead. This is > > guaranteed to do what we want on all architectures and avoids > > the warning. > > > > Fixes: 2411a736ff09 ("phy: ralink-usb: add driver for Mediatek/Ralink") > > Signed-off-by: Arnd Bergmann > > Can you pick this patch to fix the compiler warning. Can you resend it to me in a format that I can apply it in? thanks, greg k-h