public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "mike.seo" <mikeseohyungjin@gmail.com>, linux-usb@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH] r8152: Add mac address pass-thru for lg laptops
Date: Tue, 1 Oct 2024 03:14:09 +0800	[thread overview]
Message-ID: <202410010249.Gzfm9BQC-lkp@intel.com> (raw)
In-Reply-To: <ZvpImQ_8jh5fyorl@mikeseo-0-1>

Hi mike.seo,

kernel test robot noticed the following build warnings:

[auto build test WARNING on westeri-thunderbolt/next]
[also build test WARNING on linus/master v6.12-rc1 next-20240930]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/mike-seo/r8152-Add-mac-address-pass-thru-for-lg-laptops/20240930-144644
base:   https://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt.git next
patch link:    https://lore.kernel.org/r/ZvpImQ_8jh5fyorl%40mikeseo-0-1
patch subject: [PATCH] r8152: Add mac address pass-thru for lg laptops
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20241001/202410010249.Gzfm9BQC-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241001/202410010249.Gzfm9BQC-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410010249.Gzfm9BQC-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In function 'rtl8152_supports_lg_macpassthru',
       inlined from 'rtl8152_probe_once.isra' at drivers/net/usb/r8152.c:9881:23:
>> drivers/net/usb/r8152.c:9800:14: warning: argument 2 null where non-null expected [-Wnonnull]
    9800 |         if (!strncmp("LG Electronics", board, sizeof("LG Electronics"))) {
         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/usb/r8152.c:9800:14: note: in a call to built-in function '__builtin_strcmp'


vim +9800 drivers/net/usb/r8152.c

  9793	
  9794	static bool rtl8152_supports_lg_macpassthru(struct usb_device *udev)
  9795	{
  9796		int product_id = le16_to_cpu(udev->descriptor.idProduct);
  9797		int vendor_id = le16_to_cpu(udev->descriptor.idVendor);
  9798		const char *board = dmi_get_system_info(DMI_BOARD_VENDOR);
  9799	
> 9800		if (!strncmp("LG Electronics", board, sizeof("LG Electronics"))) {
  9801			if (vendor_id == VENDOR_ID_REALTEK && product_id == 0x8153)
  9802				return 1;
  9803		}
  9804		return 0;
  9805	}
  9806	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

      parent reply	other threads:[~2024-09-30 19:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-30  6:43 [PATCH] r8152: Add mac address pass-thru for lg laptops mike.seo
2024-09-30 13:19 ` Greg KH
2024-09-30 19:14 ` kernel test robot [this message]

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=202410010249.Gzfm9BQC-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=mikeseohyungjin@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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