All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-tdx:guest-filter 1/28] drivers/usb/core/sysfs.c:1164:31: warning: unused variable 'intf'
@ 2022-08-17  9:56 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-08-17  9:56 UTC (permalink / raw)
  To: Kuppuswamy Sathyanarayanan; +Cc: kbuild-all, linux-kernel, Dan Williams

tree:   https://github.com/intel/tdx.git guest-filter
head:   c8ae661a124d107ccb71713b70010f1bf237b7a2
commit: 43ef78fa0be78320a27a01cee80aeb3e235ab426 [1/28] driver core: Move the "authorized" attribute from USB/Thunderbolt to core
config: i386-defconfig (https://download.01.org/0day-ci/archive/20220817/202208170707.wGu4vJaH-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/tdx/commit/43ef78fa0be78320a27a01cee80aeb3e235ab426
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest-filter
        git checkout 43ef78fa0be78320a27a01cee80aeb3e235ab426
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/usb/core/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/usb/core/sysfs.c: In function 'interface_authorized_show':
>> drivers/usb/core/sysfs.c:1164:31: warning: unused variable 'intf' [-Wunused-variable]
    1164 |         struct usb_interface *intf = to_usb_interface(dev);
         |                               ^~~~


vim +/intf +1164 drivers/usb/core/sysfs.c

49e7cc84a86784 Sarah Sharp                2008-10-06  1156  
310d2b4124c073 Stefan Koch                2015-08-25  1157  /*
310d2b4124c073 Stefan Koch                2015-08-25  1158   * interface_authorized_show - show authorization status of an USB interface
310d2b4124c073 Stefan Koch                2015-08-25  1159   * 1 is authorized, 0 is deauthorized
310d2b4124c073 Stefan Koch                2015-08-25  1160   */
310d2b4124c073 Stefan Koch                2015-08-25  1161  static ssize_t interface_authorized_show(struct device *dev,
310d2b4124c073 Stefan Koch                2015-08-25  1162  		struct device_attribute *attr, char *buf)
310d2b4124c073 Stefan Koch                2015-08-25  1163  {
310d2b4124c073 Stefan Koch                2015-08-25 @1164  	struct usb_interface *intf = to_usb_interface(dev);
310d2b4124c073 Stefan Koch                2015-08-25  1165  
43ef78fa0be783 Kuppuswamy Sathyanarayanan 2021-08-14  1166  	return sysfs_emit(buf, "%u\n", dev->authorized);
310d2b4124c073 Stefan Koch                2015-08-25  1167  }
310d2b4124c073 Stefan Koch                2015-08-25  1168  

:::::: The code at line 1164 was first introduced by commit
:::::: 310d2b4124c073a2057ef9d952d4d938e9b1dfd9 usb: interface authorization: SysFS part of USB interface authorization

:::::: TO: Stefan Koch <stefan.koch10@gmail.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [intel-tdx:guest-filter 1/28] drivers/usb/core/sysfs.c:1164:31: warning: unused variable 'intf'
@ 2022-08-16 23:08 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-08-16 23:08 UTC (permalink / raw)
  To: kbuild

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

:::::: 
:::::: Manual check reason: "commit no functional change"
:::::: 

BCC: lkp(a)intel.com
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
CC: Dan Williams <dan.j.williams@intel.com>

tree:   https://github.com/intel/tdx.git guest-filter
head:   c8ae661a124d107ccb71713b70010f1bf237b7a2
commit: 43ef78fa0be78320a27a01cee80aeb3e235ab426 [1/28] driver core: Move the "authorized" attribute from USB/Thunderbolt to core
:::::: branch date: 2 hours ago
:::::: commit date: 3 hours ago
config: i386-defconfig (https://download.01.org/0day-ci/archive/20220817/202208170707.wGu4vJaH-lkp(a)intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/tdx/commit/43ef78fa0be78320a27a01cee80aeb3e235ab426
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest-filter
        git checkout 43ef78fa0be78320a27a01cee80aeb3e235ab426
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/usb/core/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/usb/core/sysfs.c: In function 'interface_authorized_show':
>> drivers/usb/core/sysfs.c:1164:31: warning: unused variable 'intf' [-Wunused-variable]
    1164 |         struct usb_interface *intf = to_usb_interface(dev);
         |                               ^~~~


vim +/intf +1164 drivers/usb/core/sysfs.c

49e7cc84a86784 Sarah Sharp                2008-10-06  1156  
310d2b4124c073 Stefan Koch                2015-08-25  1157  /*
310d2b4124c073 Stefan Koch                2015-08-25  1158   * interface_authorized_show - show authorization status of an USB interface
310d2b4124c073 Stefan Koch                2015-08-25  1159   * 1 is authorized, 0 is deauthorized
310d2b4124c073 Stefan Koch                2015-08-25  1160   */
310d2b4124c073 Stefan Koch                2015-08-25  1161  static ssize_t interface_authorized_show(struct device *dev,
310d2b4124c073 Stefan Koch                2015-08-25  1162  		struct device_attribute *attr, char *buf)
310d2b4124c073 Stefan Koch                2015-08-25  1163  {
310d2b4124c073 Stefan Koch                2015-08-25 @1164  	struct usb_interface *intf = to_usb_interface(dev);
310d2b4124c073 Stefan Koch                2015-08-25  1165  
43ef78fa0be783 Kuppuswamy Sathyanarayanan 2021-08-14  1166  	return sysfs_emit(buf, "%u\n", dev->authorized);
310d2b4124c073 Stefan Koch                2015-08-25  1167  }
310d2b4124c073 Stefan Koch                2015-08-25  1168  

:::::: The code at line 1164 was first introduced by commit
:::::: 310d2b4124c073a2057ef9d952d4d938e9b1dfd9 usb: interface authorization: SysFS part of USB interface authorization

:::::: TO: Stefan Koch <stefan.koch10@gmail.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-17  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-17  9:56 [intel-tdx:guest-filter 1/28] drivers/usb/core/sysfs.c:1164:31: warning: unused variable 'intf' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2022-08-16 23:08 kernel test robot

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.