All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [wsa:coccinelle/of_device_get_match_data 1/19] drivers/clk/meson/meson-aoclk.c:44:14: warning: assignment discards 'const' qualifier from pointer target type
Date: Mon, 20 Sep 2021 08:14:51 +0800	[thread overview]
Message-ID: <202109200845.wmz0IyKN-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2006 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git coccinelle/of_device_get_match_data
head:   855d01e7ecabcc51ac572795173d15205ecc208b
commit: fea5468896584af5f4049eab22c3f42c1943d8bc [1/19] clk: meson: aoclk: don't cast result of of_device_get_match_data()
config: arm64-randconfig-r032-20210919 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git/commit/?id=fea5468896584af5f4049eab22c3f42c1943d8bc
        git remote add wsa https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git
        git fetch --no-tags wsa coccinelle/of_device_get_match_data
        git checkout fea5468896584af5f4049eab22c3f42c1943d8bc
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm64 

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/clk/meson/meson-aoclk.c: In function 'meson_aoclkc_probe':
>> drivers/clk/meson/meson-aoclk.c:44:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      44 |         data = of_device_get_match_data(dev);
         |              ^


vim +/const +44 drivers/clk/meson/meson-aoclk.c

    35	
    36	int meson_aoclkc_probe(struct platform_device *pdev)
    37	{
    38		struct meson_aoclk_reset_controller *rstc;
    39		struct meson_aoclk_data *data;
    40		struct device *dev = &pdev->dev;
    41		struct regmap *regmap;
    42		int ret, clkid;
    43	
  > 44		data = of_device_get_match_data(dev);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 42536 bytes --]

                 reply	other threads:[~2021-09-20  0:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202109200845.wmz0IyKN-lkp@intel.com \
    --to=lkp@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.