public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Charles Keepax <ckeepax@opensource.cirrus.com>, lee.jones@linaro.org
Cc: kbuild-all@lists.01.org, broonie@kernel.org,
	patches@opensource.cirrus.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] mfd: mfd-core: Add mechanism for removal of a subset of children
Date: Tue, 12 May 2020 05:57:43 +0800	[thread overview]
Message-ID: <202005120523.7nicQvIl%lkp@intel.com> (raw)
In-Reply-To: <20200511155333.2183-1-ckeepax@opensource.cirrus.com>

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

Hi Charles,

I love your patch! Perhaps something to improve:

[auto build test WARNING on ljones-mfd/for-mfd-next]
[also build test WARNING on v5.7-rc5 next-20200511]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Charles-Keepax/mfd-mfd-core-Add-mechanism-for-removal-of-a-subset-of-children/20200512-032030
base:   https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
config: s390-randconfig-r034-20200511 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/mfd/mfd-core.c: In function 'mfd_remove_devices_fn':
>> drivers/mfd/mfd-core.c:290:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     290 |  int tag = (int)data;
         |            ^
   drivers/mfd/mfd-core.c: In function 'mfd_remove_devices_by_tag':
>> drivers/mfd/mfd-core.c:310:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     310 |  device_for_each_child_reverse(parent, (void *)tag,
         |                                        ^

vim +290 drivers/mfd/mfd-core.c

   285	
   286	static int mfd_remove_devices_fn(struct device *dev, void *data)
   287	{
   288		struct platform_device *pdev;
   289		const struct mfd_cell *cell;
 > 290		int tag = (int)data;
   291	
   292		if (dev->type != &mfd_dev_type)
   293			return 0;
   294	
   295		pdev = to_platform_device(dev);
   296		cell = mfd_get_cell(pdev);
   297	
   298		if (tag && cell->tag != tag)
   299			return 0;
   300	
   301		regulator_bulk_unregister_supply_alias(dev, cell->parent_supplies,
   302						       cell->num_parent_supplies);
   303	
   304		platform_device_unregister(pdev);
   305		return 0;
   306	}
   307	
   308	void mfd_remove_devices_by_tag(struct device *parent, int tag)
   309	{
 > 310		device_for_each_child_reverse(parent, (void *)tag,
   311					      mfd_remove_devices_fn);
   312	}
   313	EXPORT_SYMBOL(mfd_remove_devices_by_tag);
   314	

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

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

  parent reply	other threads:[~2020-05-11 21:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-11 15:53 [PATCH 1/2] mfd: mfd-core: Add mechanism for removal of a subset of children Charles Keepax
2020-05-11 15:53 ` [PATCH v2 2/2] mfd: madera: Improve handling of regulator unbinding Charles Keepax
2020-05-11 21:57 ` kbuild test robot [this message]
2020-05-13 10:18 ` [PATCH 1/2] mfd: mfd-core: Add mechanism for removal of a subset of children Charles Keepax

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=202005120523.7nicQvIl%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=broonie@kernel.org \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=kbuild-all@lists.01.org \
    --cc=lee.jones@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.cirrus.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox