public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kiran K <kiran.k@intel.com>, linux-bluetooth@vger.kernel.org
Cc: kbuild-all@lists.01.org, tedd.an@intel.com,
	luiz.von.dentz@intel.com, chethan.tumkur.narayan@intel.com,
	ravishankar.srivatsa@intel.com, Kiran K <kiran.k@intel.com>
Subject: Re: [PATCH v1] Bluetooth: btintel: Support Digital(N) + RF(N-1) combination
Date: Wed, 16 Jun 2021 22:40:33 +0800	[thread overview]
Message-ID: <202106162200.lBzyuHb9-lkp@intel.com> (raw)
In-Reply-To: <20210609114029.1656-1-kiran.k@intel.com>

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

Hi Kiran,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on bluetooth-next/master]
[also build test WARNING on bluetooth/master v5.13-rc6 next-20210616]
[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/Kiran-K/Bluetooth-btintel-Support-Digital-N-RF-N-1-combination/20210616-183512
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.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/6e8c708932770f46284508ca6f027fa39393389e
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Kiran-K/Bluetooth-btintel-Support-Digital-N-RF-N-1-combination/20210616-183512
        git checkout 6e8c708932770f46284508ca6f027fa39393389e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.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/bluetooth/btintel.c:486:6: warning: no previous prototype for 'btintel_parse_version_tlv' [-Wmissing-prototypes]
     486 | void btintel_parse_version_tlv(struct hci_dev *hdev, struct sk_buff *skb,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~


vim +/btintel_parse_version_tlv +486 drivers/bluetooth/btintel.c

   485	
 > 486	void btintel_parse_version_tlv(struct hci_dev *hdev, struct sk_buff *skb,
   487				       struct intel_version_tlv *version)
   488	{
   489		/* Consume Command Complete Status field */
   490		skb_pull(skb, sizeof(__u8));
   491	
   492		/* Event parameters contatin multiple TLVs. Read each of them
   493		 * and only keep the required data. Also, it use existing legacy
   494		 * version field like hw_platform, hw_variant, and fw_variant
   495		 * to keep the existing setup flow
   496		 */
   497		while (skb->len) {
   498			struct intel_tlv *tlv;
   499	
   500			tlv = (struct intel_tlv *)skb->data;
   501			switch (tlv->type) {
   502			case INTEL_TLV_CNVI_TOP:
   503				version->cnvi_top = get_unaligned_le32(tlv->val);
   504				break;
   505			case INTEL_TLV_CNVR_TOP:
   506				version->cnvr_top = get_unaligned_le32(tlv->val);
   507				break;
   508			case INTEL_TLV_CNVI_BT:
   509				version->cnvi_bt = get_unaligned_le32(tlv->val);
   510				break;
   511			case INTEL_TLV_CNVR_BT:
   512				version->cnvr_bt = get_unaligned_le32(tlv->val);
   513				break;
   514			case INTEL_TLV_DEV_REV_ID:
   515				version->dev_rev_id = get_unaligned_le16(tlv->val);
   516				break;
   517			case INTEL_TLV_IMAGE_TYPE:
   518				version->img_type = tlv->val[0];
   519				break;
   520			case INTEL_TLV_TIME_STAMP:
   521				version->timestamp = get_unaligned_le16(tlv->val);
   522				break;
   523			case INTEL_TLV_BUILD_TYPE:
   524				version->build_type = tlv->val[0];
   525				break;
   526			case INTEL_TLV_BUILD_NUM:
   527				version->build_num = get_unaligned_le32(tlv->val);
   528				break;
   529			case INTEL_TLV_SECURE_BOOT:
   530				version->secure_boot = tlv->val[0];
   531				break;
   532			case INTEL_TLV_OTP_LOCK:
   533				version->otp_lock = tlv->val[0];
   534				break;
   535			case INTEL_TLV_API_LOCK:
   536				version->api_lock = tlv->val[0];
   537				break;
   538			case INTEL_TLV_DEBUG_LOCK:
   539				version->debug_lock = tlv->val[0];
   540				break;
   541			case INTEL_TLV_MIN_FW:
   542				version->min_fw_build_nn = tlv->val[0];
   543				version->min_fw_build_cw = tlv->val[1];
   544				version->min_fw_build_yy = tlv->val[2];
   545				break;
   546			case INTEL_TLV_LIMITED_CCE:
   547				version->limited_cce = tlv->val[0];
   548				break;
   549			case INTEL_TLV_SBE_TYPE:
   550				version->sbe_type = tlv->val[0];
   551				break;
   552			case INTEL_TLV_OTP_BDADDR:
   553				memcpy(&version->otp_bd_addr, tlv->val, tlv->len);
   554				break;
   555			default:
   556				/* Ignore rest of information */
   557				break;
   558			}
   559			/* consume the current tlv and move to next*/
   560			skb_pull(skb, tlv->len + sizeof(*tlv));
   561		}
   562	}
   563	EXPORT_SYMBOL_GPL(btintel_parse_version_tlv);
   564	

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

  parent reply	other threads:[~2021-06-16 14:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-09 11:40 [PATCH v1] Bluetooth: btintel: Support Digital(N) + RF(N-1) combination Kiran K
2021-06-09 12:07 ` [v1] " bluez.test.bot
2021-06-09 19:12 ` [PATCH v1] " Marcel Holtmann
2021-06-09 22:32   ` Luiz Augusto von Dentz
2021-06-10  7:39     ` Marcel Holtmann
2021-07-13  3:16     ` K, Kiran
2021-06-16 14:40 ` kernel test robot [this message]
2021-06-16 16:08 ` 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=202106162200.lBzyuHb9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chethan.tumkur.narayan@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kiran.k@intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.von.dentz@intel.com \
    --cc=ravishankar.srivatsa@intel.com \
    --cc=tedd.an@intel.com \
    /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