From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
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 [thread overview]
Message-ID: <YF5WHxABAlm0tcXm@smile.fi.intel.com> (raw)
In-Reply-To: <202103270243.gR3d2xfA-lkp@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1983 bytes --]
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-mfd-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=1 build):
> # https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git/commit/?id=43e72121b5f667b10ba5adae96880e388dda55d1
> git remote add lee-mfd https://git.kernel.org/pub/scm/linux/kernel/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=1 ARCH=x86_64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> 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 discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
> 161 | struct resource *res = intel_quark_i2c_res;
> | ^~~~~~~~~~~~~~~~~~~
> drivers/mfd/intel_quark_i2c_gpio.c: In function 'intel_quark_gpio_setup':
> drivers/mfd/intel_quark_i2c_gpio.c:192:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
> 192 | struct resource *res = 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
prev parent reply other threads:[~2021-03-26 21:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-26 18:43 [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 kernel test robot
2021-03-26 21:46 ` Andy Shevchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YF5WHxABAlm0tcXm@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.