Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755347AbdC1Kor (ORCPT ); Tue, 28 Mar 2017 06:44:47 -0400 Received: from mail1.bemta5.messagelabs.com ([195.245.231.137]:34329 "EHLO mail1.bemta5.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754970AbdC1Kob (ORCPT ); Tue, 28 Mar 2017 06:44:31 -0400 X-Brightmail-Tracker: H4sIAAAAAAAAA1WSa0hTYRjH956zc3YUjx2ntrfVCkdiF7SGSa8 lFUVxoAsWfZDo4rFO22JT2Zk3CFJEvHUl0xqhZUlgdrMPpqnItKtRpOJqdNG5slYaXjJLrc5x avbtx/N7nv/zfHgoXHmWVFN8upW3JHImLekr319bERm+eJ0zbuX47XB0rttNorKW5wRqLv8EU FlHJ4E+Ohsw9NBxBkfvvz8AaKQjD0OvB0cI1F53kURDJ1oAenWzUYHcl59hyJPtIlGF4yWGch paxFr3SRI5z38iNijZ9w0Ktqq0CrC1trcKtvPuXPZK/WeMra7MJ9k3nfUka2/OE+WPTAU7VL0 w1ncPYUxMSEqPJwy5vT1Ycp9/+qijC88EHf4FwIdSMhUAfmncLDHJ6GDp129A4iAmFrYPexQF wJfCmXcEHLiej0kikImGo67vU01rYMGlQsLLW+Cj4pOTPXImFE4MFYo9FEWLQfZxUspRMlkYz G0dnOz3YXbC1pr7pMSA0cDhrOu4xDijgk532WQOZBh4tf4F7uVg+LnnN+HlRfDGL/dUfT388q 5f7uUV0NXjAl7Wwcripqn6avinq5+Q7sGZpfBW3QrvqhBYVNitkJhmAuCTC275aaCyzbrC9m/ CNmvCNmviEpBXgiUCb0nlLeG66IgEi1FvsJo5oylctzIqwswLAqfnTVyCEHEwyVwNxGc5JpOB e8B1aocdzKMwbTD9IdIZp/RPSDqUYeAEwwFLiokX7GABRWkh/SBGdAEWXs+nHzaaxI+b1pDy0 wbRWyRNC8mcWTDqveopCFGr6BOSYCRhSEmcGZv+1TagUQfSQCaTKf2SeYvZaP3fe4CKAtpA+r GU4mdMtM6ke8TFmLhY5V1s5f4pdSYoaqU0sXc2yirKnx+9WrMuVPezvjHncNvWeH25pjJ7edh vITvu7NimiZ2Y+4g94FvG5d3q+LWn5PIFIY7o471h25j5qWUvsgm/MZYmoiZs1auMpc6sYJ/g PlMaUbI3KP9JjKOk68/8cZk9b9e17a0DtWlNz5o0ofuSPQ1RdLNjjlYuGDjdMtwicH8B5ErJD 6YDAAA= X-Env-Sender: stwiss.opensource@diasemi.com X-Msg-Ref: server-15.tower-180.messagelabs.com!1490697764!77189686!1 X-Originating-IP: [94.185.165.51] X-StarScan-Received: X-StarScan-Version: 9.2.3; banners=-,-,- X-VirusChecked: Checked From: Steve Twiss To: Geert Uytterhoeven , Lee Jones CC: kbuild test robot , Steve Twiss , "kbuild-all@01.org" , LINUX-KERNEL , DEVICETREE , Dmitry Torokhov , Eduardo Valentin , Guenter Roeck , LINUX-INPUT , LINUX-PM , LINUX-WATCHDOG , Liam Girdwood , Mark Brown , "Mark Rutland" , Rob Herring , "Support Opensource" , Wim Van Sebroeck , Zhang Rui Subject: RE: [PATCH V6 4/7] mfd: da9061: MFD core support Thread-Topic: [PATCH V6 4/7] mfd: da9061: MFD core support Thread-Index: AQHSpuEdWMPV5xErkU+Bn+ir7CQouaGotLkAgAElaICAAAQ0gIAAMOZw Date: Tue, 28 Mar 2017 10:42:42 +0000 Message-ID: <6ED8E3B22081A4459DAC7699F3695FB7018CD69ECA@SW-EX-MBX02.diasemi.com> References: <539b8756120ab3558c906f7457e65f94dbe37425.1490608293.git.stwiss.opensource@diasemi.com> <201703272258.hWlipe1g%fengguang.wu@intel.com> <20170328082141.u2rgnhei5yhhzxdn@dell> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.20.26.77] x-kse-attachmentfiltering-interceptor-info: protection disabled x-kse-serverinfo: sw-ex-cashub02.diasemi.com, 9 x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: Clean, bases: 28/03/2017 07:44:00 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v2SAjJLG010212 Content-Length: 1366 Lines: 39 On 28 March 2017 09:37, Geert Uytterhoeven wrote: > Subject: Re: [PATCH V6 4/7] mfd: da9061: MFD core support > > Hi Lee, > > On Tue, Mar 28, 2017 at 10:21 AM, Lee Jones wrote: > >> [auto build test WARNING on ljones-mfd/for-mfd-next] > >> [also build test WARNING on v4.11-rc4 next-20170327] > >> base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next > >> config: x86_64-randconfig-x009-201713 (attached as .config) > >> compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 > >> reproduce: > >> # save the attached .config to linux build tree > >> make ARCH=x86_64 > >> > >> All warnings (new ones prefixed by >>): > >> > >> drivers//mfd/da9062-core.c: In function 'da9062_i2c_probe': > >> >> drivers//mfd/da9062-core.c:845:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] > >> chip->chip_type = (int)match->data; > >> ^ > > > > Please use longs or enums. > > Enums would still give a warning on 64-bit. > The simple fix is change the cast from (int) to (uintptr_t). Hi Lee and Geert, How about this? Fix by redefining the enum chip_type to be an int. Then, just use substitution: #define COMPAT_TYPE_DA9061 1 #define COMPAT_TYPE_DA9062 2 That would be simple. Are there any reasons this would not be acceptable? Regards, Steve