All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [jgunthorpe:iommufd 7/8] drivers/iommu/iommufd/device.c:121:40: warning: variable 'ioaspt' set but not used
Date: Thu, 18 Nov 2021 02:17:22 +0800	[thread overview]
Message-ID: <202111180215.paDbJJ65-lkp@intel.com> (raw)

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

tree:   https://github.com/jgunthorpe/linux iommufd
head:   4d06b5807e799e0293171d872d8c1a40f3b466c5
commit: 1f7a895af0da6f3df99882a45562e0fcd4812365 [7/8] mad musings
config: arc-allyesconfig (attached as .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/jgunthorpe/linux/commit/1f7a895af0da6f3df99882a45562e0fcd4812365
        git remote add jgunthorpe https://github.com/jgunthorpe/linux
        git fetch --no-tags jgunthorpe iommufd
        git checkout 1f7a895af0da6f3df99882a45562e0fcd4812365
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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/iommu/iommufd/device.c: In function 'iommufd_device_attach_sw':
>> drivers/iommu/iommufd/device.c:121:40: warning: variable 'ioaspt' set but not used [-Wunused-but-set-variable]
     121 |         struct iommufd_ioas_pagetable *ioaspt;
         |                                        ^~~~~~


vim +/ioaspt +121 drivers/iommu/iommufd/device.c

   118	
   119	static int iommufd_device_attach_sw(struct iommufd_device *idev, u32 *pt_id)
   120	{
 > 121		struct iommufd_ioas_pagetable *ioaspt;
   122		struct iommufd_object *obj;
   123	
   124		obj = iommufd_get_object(idev->ictx, *pt_id,
   125					 IOMMUFD_OBJ_IOAS_PAGETABLE);
   126		if (IS_ERR(obj))
   127			return PTR_ERR(obj);
   128		ioaspt = container_of(obj, struct iommufd_ioas_pagetable, obj);
   129		iommufd_put_object_keep_user(obj);
   130		//idev->ioaspt = ioaspt;
   131		return 0;
   132	}
   133	

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Jason Gunthorpe <jgg@nvidia.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [jgunthorpe:iommufd 7/8] drivers/iommu/iommufd/device.c:121:40: warning: variable 'ioaspt' set but not used
Date: Thu, 18 Nov 2021 02:17:22 +0800	[thread overview]
Message-ID: <202111180215.paDbJJ65-lkp@intel.com> (raw)

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

tree:   https://github.com/jgunthorpe/linux iommufd
head:   4d06b5807e799e0293171d872d8c1a40f3b466c5
commit: 1f7a895af0da6f3df99882a45562e0fcd4812365 [7/8] mad musings
config: arc-allyesconfig (attached as .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/jgunthorpe/linux/commit/1f7a895af0da6f3df99882a45562e0fcd4812365
        git remote add jgunthorpe https://github.com/jgunthorpe/linux
        git fetch --no-tags jgunthorpe iommufd
        git checkout 1f7a895af0da6f3df99882a45562e0fcd4812365
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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/iommu/iommufd/device.c: In function 'iommufd_device_attach_sw':
>> drivers/iommu/iommufd/device.c:121:40: warning: variable 'ioaspt' set but not used [-Wunused-but-set-variable]
     121 |         struct iommufd_ioas_pagetable *ioaspt;
         |                                        ^~~~~~


vim +/ioaspt +121 drivers/iommu/iommufd/device.c

   118	
   119	static int iommufd_device_attach_sw(struct iommufd_device *idev, u32 *pt_id)
   120	{
 > 121		struct iommufd_ioas_pagetable *ioaspt;
   122		struct iommufd_object *obj;
   123	
   124		obj = iommufd_get_object(idev->ictx, *pt_id,
   125					 IOMMUFD_OBJ_IOAS_PAGETABLE);
   126		if (IS_ERR(obj))
   127			return PTR_ERR(obj);
   128		ioaspt = container_of(obj, struct iommufd_ioas_pagetable, obj);
   129		iommufd_put_object_keep_user(obj);
   130		//idev->ioaspt = ioaspt;
   131		return 0;
   132	}
   133	

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

             reply	other threads:[~2021-11-17 18:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17 18:17 kernel test robot [this message]
2021-11-17 18:17 ` [jgunthorpe:iommufd 7/8] drivers/iommu/iommufd/device.c:121:40: warning: variable 'ioaspt' set but not used kernel test robot

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=202111180215.paDbJJ65-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.