From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6885999816018851939==" MIME-Version: 1.0 From: Andy Shevchenko To: kbuild-all@lists.01.org Subject: Re: [lee-mfd:for-mfd-next 41/41] drivers/mfd/intel_quark_i2c_gpio.c:161:25: warning: initialization discards 'const' qualifier from pointer target type Date: Fri, 26 Mar 2021 23:46:07 +0200 Message-ID: In-Reply-To: <202103270243.gR3d2xfA-lkp@intel.com> List-Id: --===============6885999816018851939== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Sat, Mar 27, 2021 at 02:43:06AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-m= fd-next > head: 43e72121b5f667b10ba5adae96880e388dda55d1 > commit: 43e72121b5f667b10ba5adae96880e388dda55d1 [41/41] mfd: intel_quark= _i2c_gpio: Don't play dirty trick with const > config: x86_64-randconfig-a015-20210326 (attached as .config) > compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 > reproduce (this is a W=3D1 build): > # https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git/com= mit/?id=3D43e72121b5f667b10ba5adae96880e388dda55d1 > git remote add lee-mfd https://git.kernel.org/pub/scm/linux/kerne= l/git/lee/mfd.git > git fetch --no-tags lee-mfd for-mfd-next > git checkout 43e72121b5f667b10ba5adae96880e388dda55d1 > # save the attached .config to linux build tree > make W=3D1 ARCH=3Dx86_64 = > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > All warnings (new ones prefixed by >>): > = > drivers/mfd/intel_quark_i2c_gpio.c: In function 'intel_quark_i2c_setup= ': > >> drivers/mfd/intel_quark_i2c_gpio.c:161:25: warning: initialization dis= cards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] > 161 | struct resource *res =3D intel_quark_i2c_res; > | ^~~~~~~~~~~~~~~~~~~ > drivers/mfd/intel_quark_i2c_gpio.c: In function 'intel_quark_gpio_setu= p': > drivers/mfd/intel_quark_i2c_gpio.c:192:25: warning: initialization dis= cards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] > 192 | struct resource *res =3D intel_quark_gpio_res; > | ^~~~~~~~~~~~~~~~~~~~ > vim +/const +161 drivers/mfd/intel_quark_i2c_gpio.c Exactly the point of the last patch. Maintainers should consider to merge for-fixes into their for-next branches. -- = With Best Regards, Andy Shevchenko --===============6885999816018851939==--