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 3/4] net/mlx5e: Use auxiliary_device driver data helpers
Date: Wed, 22 Dec 2021 17:56:35 +0800	[thread overview]
Message-ID: <202112221705.OaQ9zc1H-lkp@intel.com> (raw)
In-Reply-To: <20211221235852.323752-4-david.e.box@linux.intel.com>

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

Hi "David,

I love your patch! Perhaps something to improve:

[auto build test WARNING on rdma/for-next]
[also build test WARNING on staging/staging-testing linus/master v5.16-rc6 next-20211221]
[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/David-E-Box/driver_core-Auxiliary-drvdata-helper-cleanup/20211222-080023
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20211222/202112221705.OaQ9zc1H-lkp(a)intel.com/config)
compiler: arceb-elf-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://github.com/0day-ci/linux/commit/1b4157338957cb848baaecc20e2cd01271bb1324
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review David-E-Box/driver_core-Auxiliary-drvdata-helper-cleanup/20211222-080023
        git checkout 1b4157338957cb848baaecc20e2cd01271bb1324
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/infiniband/hw/irdma/ drivers/infiniband/hw/mlx5/ drivers/net/ethernet/mellanox/mlx5/core/ drivers/vdpa/mlx5/

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/net/ethernet/mellanox/mlx5/core/en_main.c: In function 'mlx5e_resume':
   drivers/net/ethernet/mellanox/mlx5/core/en_main.c:5392:35: error: implicit declaration of function 'auxiliary_get_drvdata' [-Werror=implicit-function-declaration]
    5392 |         struct mlx5e_priv *priv = auxiliary_get_drvdata(adev);
         |                                   ^~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/mellanox/mlx5/core/en_main.c:5392:35: warning: initialization of 'struct mlx5e_priv *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   drivers/net/ethernet/mellanox/mlx5/core/en_main.c: In function 'mlx5e_suspend':
   drivers/net/ethernet/mellanox/mlx5/core/en_main.c:5415:35: warning: initialization of 'struct mlx5e_priv *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    5415 |         struct mlx5e_priv *priv = auxiliary_get_drvdata(adev);
         |                                   ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/mellanox/mlx5/core/en_main.c: In function 'mlx5e_probe':
   drivers/net/ethernet/mellanox/mlx5/core/en_main.c:5459:9: error: implicit declaration of function 'auxiliary_set_drvdata' [-Werror=implicit-function-declaration]
    5459 |         auxiliary_set_drvdata(adev, priv);
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/mellanox/mlx5/core/en_main.c: In function 'mlx5e_remove':
   drivers/net/ethernet/mellanox/mlx5/core/en_main.c:5507:35: warning: initialization of 'struct mlx5e_priv *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    5507 |         struct mlx5e_priv *priv = auxiliary_get_drvdata(adev);
         |                                   ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +5392 drivers/net/ethernet/mellanox/mlx5/core/en_main.c

  5388	
  5389	static int mlx5e_resume(struct auxiliary_device *adev)
  5390	{
  5391		struct mlx5_adev *edev = container_of(adev, struct mlx5_adev, adev);
> 5392		struct mlx5e_priv *priv = auxiliary_get_drvdata(adev);
  5393		struct net_device *netdev = priv->netdev;
  5394		struct mlx5_core_dev *mdev = edev->mdev;
  5395		int err;
  5396	
  5397		if (netif_device_present(netdev))
  5398			return 0;
  5399	
  5400		err = mlx5e_create_mdev_resources(mdev);
  5401		if (err)
  5402			return err;
  5403	
  5404		err = mlx5e_attach_netdev(priv);
  5405		if (err) {
  5406			mlx5e_destroy_mdev_resources(mdev);
  5407			return err;
  5408		}
  5409	
  5410		return 0;
  5411	}
  5412	

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

  reply	other threads:[~2021-12-22  9:56 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-21 23:58 [PATCH 0/4] driver_core: Auxiliary drvdata helper cleanup David E. Box
2021-12-21 23:58 ` [PATCH 1/4] RDMA/irdma: Use auxiliary_device driver data helpers David E. Box
2021-12-22  7:34   ` kernel test robot
2021-12-22 12:27   ` Cezary Rojewski
2021-12-22 12:27     ` Cezary Rojewski
2021-12-21 23:58 ` [PATCH 2/4] soundwire: intel: " David E. Box
2021-12-22 11:18   ` Andy Shevchenko
2021-12-22 11:18     ` Andy Shevchenko
2021-12-22 11:18     ` Andy Shevchenko
2021-12-21 23:58 ` [PATCH 3/4] net/mlx5e: " David E. Box
2021-12-22  9:56   ` kernel test robot [this message]
2021-12-21 23:58 ` [PATCH 4/4] vdpa/mlx5: " David E. Box
2021-12-22 12:08   ` kernel test robot
2021-12-22  0:09 ` [PATCH 0/4] driver_core: Auxiliary drvdata helper cleanup Jason Gunthorpe
2021-12-22  0:09   ` Jason Gunthorpe
2021-12-22  0:09   ` Jason Gunthorpe
2021-12-22  0:48   ` David E. Box
2021-12-22 17:18     ` Jason Gunthorpe
2021-12-22 17:18       ` Jason Gunthorpe
2021-12-22 17:18       ` Jason Gunthorpe
2021-12-22 12:34 ` Cezary Rojewski
2021-12-22 12:34   ` Cezary Rojewski

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=202112221705.OaQ9zc1H-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.