linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: tjiang@codeaurora.org, marcel@holtmann.org,
	johan.hedberg@gmail.com, luiz.dentz@gmail.com
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	bgodavar@codeaurora.org, c-hbandi@codeaurora.org,
	hemantg@codeaurora.org, mka@chromium.org
Subject: Re: [PATCH v1] Bluetooth: btusb: Add support for variant WCN6855 by using  different nvm
Date: Tue, 12 Oct 2021 14:30:47 +0800	[thread overview]
Message-ID: <202110121417.vkluWk9l-lkp@intel.com> (raw)
In-Reply-To: <7bdbdd186289635cd481562642f35cb8@codeaurora.org>

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

Hi,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on bluetooth-next/master]
[also build test WARNING on linux/master linus/master v5.15-rc5 next-20211011]
[cannot apply to bluetooth/master]
[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/tjiang-codeaurora-org/Bluetooth-btusb-Add-support-for-variant-WCN6855-by-using-different-nvm/20211011-184940
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: openrisc-randconfig-s032-20211011 (attached as .config)
compiler: or1k-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://github.com/0day-ci/linux/commit/ac46dc5565c49861c2439a5534e2e64ff819eb60
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review tjiang-codeaurora-org/Bluetooth-btusb-Add-support-for-variant-WCN6855-by-using-different-nvm/20211011-184940
        git checkout ac46dc5565c49861c2439a5534e2e64ff819eb60
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=openrisc SHELL=/bin/bash drivers/bluetooth/

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


sparse warnings: (new ones prefixed by >>)
   drivers/bluetooth/btusb.c:1900:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1900:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1900:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1900:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1904:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1904:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1904:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1904:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1908:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1908:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1908:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1908:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1912:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1912:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1912:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1912:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1916:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1916:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1916:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1916:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1922:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1922:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1922:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:1922:18: sparse: sparse: cast to restricted __le16
   drivers/bluetooth/btusb.c:3359:28: sparse: sparse: cast to restricted __le32
   drivers/bluetooth/btusb.c:3359:28: sparse: sparse: cast to restricted __le32
   drivers/bluetooth/btusb.c:3359:28: sparse: sparse: cast to restricted __le32
   drivers/bluetooth/btusb.c:3359:28: sparse: sparse: cast to restricted __le32
   drivers/bluetooth/btusb.c:3359:28: sparse: sparse: cast to restricted __le32
   drivers/bluetooth/btusb.c:3359:28: sparse: sparse: cast to restricted __le32
   drivers/bluetooth/btusb.c:3388:18: sparse: sparse: restricted __le16 degrades to integer
>> drivers/bluetooth/btusb.c:3392:28: sparse: sparse: restricted __le32 degrades to integer
>> drivers/bluetooth/btusb.c:3392:28: sparse: sparse: restricted __le32 degrades to integer

vim +3392 drivers/bluetooth/btusb.c

  3381	
  3382	static void btusb_generate_qca_nvm_name(char *fwname,
  3383						size_t max_size,
  3384						struct qca_version *ver)
  3385	{
  3386		u32 rom_version = le32_to_cpu(ver->rom_version);
  3387	
  3388		if (((ver->flag >> 8) & 0xff) == QCA_FLAG_MULTI_NVM) {
  3389			u16 board_id = le16_to_cpu(ver->board_id);
  3390			const char *variant;
  3391	
> 3392			switch (ver->ram_version) {
  3393			case WCN6855_2_0_RAM_VERSION_GF:
  3394			case WCN6855_2_1_RAM_VERSION_GF:
  3395				variant = "_gf";
  3396				break;
  3397			default:
  3398				variant = "";
  3399				break;
  3400			}
  3401	
  3402			/* if boardid equal 0, use default nvm without suffix */
  3403			if (board_id == 0x0) {
  3404				snprintf(fwname, max_size, "qca/nvm_usb_%08x%s.bin",
  3405					rom_version, variant);
  3406			} else {
  3407				snprintf(fwname, max_size, "qca/nvm_usb_%08x%s_%04x.bin",
  3408					rom_version, variant, board_id);
  3409			}
  3410		} else {
  3411			snprintf(fwname, max_size, "qca/nvm_usb_%08x.bin",
  3412				rom_version);
  3413		}
  3414	

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

      reply	other threads:[~2021-10-12  6:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-11 10:48 [PATCH v1] Bluetooth: btusb: Add support for variant WCN6855 by using different nvm tjiang
2021-10-12  6:30 ` 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=202110121417.vkluWk9l-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bgodavar@codeaurora.org \
    --cc=c-hbandi@codeaurora.org \
    --cc=hemantg@codeaurora.org \
    --cc=johan.hedberg@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    --cc=mka@chromium.org \
    --cc=tjiang@codeaurora.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).