All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v2 03/18] dmaengine: idxd: add 'struct idxd_dev' as wrapper for conf_dev
Date: Thu, 15 Jul 2021 10:09:11 +0800	[thread overview]
Message-ID: <202107151049.guHqzAuV-lkp@intel.com> (raw)
In-Reply-To: <162630483962.631529.16161733492554636688.stgit@djiang5-desk3.ch.intel.com>

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

Hi Dave,

I love your patch! Perhaps something to improve:

[auto build test WARNING on vkoul-dmaengine/next]
[also build test WARNING on v5.14-rc1 next-20210714]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Dave-Jiang/Fix-idxd-sub-drivers-setup/20210715-072229
base:   https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
config: x86_64-randconfig-a006-20210714 (attached as .config)
compiler: gcc-10 (Debian 10.2.1-6) 10.2.1 20210110
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/b3be8eaa8a16899b6c4084b14d5a2173b43299e5
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Dave-Jiang/Fix-idxd-sub-drivers-setup/20210715-072229
        git checkout b3be8eaa8a16899b6c4084b14d5a2173b43299e5
        # 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/dma/idxd/init.c: In function 'idxd_alloc':
>> drivers/dma/idxd/init.c:498:47: warning: implicit conversion from 'enum idxd_type' to 'enum idxd_dev_type' [-Wenum-conversion]
     498 |  idxd_dev_set_type(&idxd->idxd_dev, idxd->data->type);
         |                                     ~~~~~~~~~~^~~~~~


vim +498 drivers/dma/idxd/init.c

   483	
   484	static struct idxd_device *idxd_alloc(struct pci_dev *pdev, struct idxd_driver_data *data)
   485	{
   486		struct device *dev = &pdev->dev;
   487		struct device *conf_dev;
   488		struct idxd_device *idxd;
   489		int rc;
   490	
   491		idxd = kzalloc_node(sizeof(*idxd), GFP_KERNEL, dev_to_node(dev));
   492		if (!idxd)
   493			return NULL;
   494	
   495		conf_dev = idxd_confdev(idxd);
   496		idxd->pdev = pdev;
   497		idxd->data = data;
 > 498		idxd_dev_set_type(&idxd->idxd_dev, idxd->data->type);
   499		idxd->id = ida_alloc(&idxd_ida, GFP_KERNEL);
   500		if (idxd->id < 0)
   501			return NULL;
   502	
   503		device_initialize(conf_dev);
   504		conf_dev->parent = dev;
   505		conf_dev->bus = &dsa_bus_type;
   506		conf_dev->type = idxd->data->dev_type;
   507		rc = dev_set_name(conf_dev, "%s%d", idxd->data->name_prefix, idxd->id);
   508		if (rc < 0) {
   509			put_device(conf_dev);
   510			return NULL;
   511		}
   512	
   513		spin_lock_init(&idxd->dev_lock);
   514		spin_lock_init(&idxd->cmd_lock);
   515	
   516		return idxd;
   517	}
   518	

---
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: 44956 bytes --]

  reply	other threads:[~2021-07-15  2:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-14 23:20 [PATCH v2 00/18] Fix idxd sub-drivers setup Dave Jiang
2021-07-14 23:20 ` [PATCH v2 01/18] dmaengine: idxd: add driver register helper Dave Jiang
2021-07-14 23:20 ` [PATCH v2 02/18] dmaengine: idxd: add driver name Dave Jiang
2021-07-14 23:20 ` [PATCH v2 03/18] dmaengine: idxd: add 'struct idxd_dev' as wrapper for conf_dev Dave Jiang
2021-07-15  2:09   ` kernel test robot [this message]
2021-07-14 23:20 ` [PATCH v2 04/18] dmaengine: idxd: remove IDXD_DEV_CONF_READY Dave Jiang
2021-07-14 23:20 ` [PATCH v2 05/18] dmaengine: idxd: move wq_enable() to device.c Dave Jiang
2021-07-14 23:20 ` [PATCH v2 06/18] dmaengine: idxd: move wq_disable() " Dave Jiang
2021-07-14 23:21 ` [PATCH v2 07/18] dmaengine: idxd: remove bus shutdown Dave Jiang
2021-07-14 23:21 ` [PATCH v2 08/18] dmaengine: idxd: remove iax_bus_type prototype Dave Jiang
2021-07-14 23:21 ` [PATCH v2 09/18] dmaengine: idxd: fix bus_probe() and bus_remove() for dsa_bus Dave Jiang
2021-07-14 23:21 ` [PATCH v2 10/18] dmaengine: idxd: move probe() bits for idxd 'struct device' to device.c Dave Jiang
2021-07-14 23:21 ` [PATCH v2 11/18] dmaengine: idxd: idxd: move remove() " Dave Jiang
2021-07-14 23:21 ` [PATCH v2 12/18] dmanegine: idxd: open code the dsa_drv registration Dave Jiang
2021-07-14 23:21 ` [PATCH v2 13/18] dmaengine: idxd: add type to driver in order to allow device matching Dave Jiang
2021-07-14 23:21 ` [PATCH v2 14/18] dmaengine: idxd: create idxd_device sub-driver Dave Jiang
2021-07-14 23:21 ` [PATCH v2 15/18] dmaengine: idxd: create dmaengine driver for wq 'device' Dave Jiang
2021-07-14 23:21 ` [PATCH v2 16/18] dmaengine: idxd: create user " Dave Jiang
2021-07-14 23:21 ` [PATCH v2 17/18] dmaengine: dsa: move dsa_bus_type out of idxd driver to standalone Dave Jiang
2021-07-14 23:22 ` [PATCH v2 18/18] dmaengine: idxd: move dsa_drv support to compatible mode Dave Jiang

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=202107151049.guHqzAuV-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.