Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6192313rwn; Mon, 12 Sep 2022 23:43:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR7h17Nf1CeUPhUQtAxVSupRAXWQwzVzTMJ438Hw5pZ42dr+UYJpuvWs57lj7/sDKRuP8jOK X-Received: by 2002:a17:907:8a1f:b0:77d:8e2:66bc with SMTP id sc31-20020a1709078a1f00b0077d08e266bcmr6793081ejc.189.1663051398287; Mon, 12 Sep 2022 23:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663051398; cv=none; d=google.com; s=arc-20160816; b=CBZbNLD3aqbF3eCrc2KT1KASGdQ9dwthzr10cBb4d4jdAaoYR1kvpk03CoQ3QIa1w0 j7/dRPVFOf9jzBswvEc8H49kz6HIvpBFCENA9G1AWZAy1MZpLeKvgKUVbDoE9+b0XuKd oBfVrqZqQRQ2BkQpFgGydJmX53z9EDVRkRRBESjs6HOUIjtTEpsDWjsY7t9K9GJdzrcB 1ncRYxQjHubzVDMXHC6g/CavEVm+Qe4+TiwLqKCIaTjnuJINIZPd/9awu6JDcZ3vpJnF ZGlyhX2Ipq+TlQYpC8kN3CaynLAR4jgPvwkvJYRvO4BuS/OIvpLNobCz/GFDwla9Y9WL XmYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=j5WM216PyCCqk4PhkqdjycvX8PdTgzH6wmMNZRQk83o=; b=CuW2X6DZk3XhBuAXG5b2T65li2SgD97Dsy6CLaChoV10Z6/IAfVljpABAoq4WjOSdv SFsgvYqAwuo9ckbpvlAOdQr/ZJKExXflkqsJ54ZwDF1v27eRCu2TGhmvouA5t4YKmW4J k5Z6cOC5ad5PpWSzPLYNsDFRYa/KNrwe2ckNLXvxxJX5BQSrS8j8sa5PKHOCZ6fWPCZn KwI4C3Dg94dYthA2PV5pKdIJ7hAxnNSz6cqlsa3IgavMmRg6V/g014BpbJ3JvVOuBHLR pRQhuAOT4TEaI+B0WRWyrX/1y2J47sPhDpuUIdNl98LypVaXBnJk6iBQXXKj4z0gG5/t gQVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Jco+LU9T; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd40-20020a17090796a800b007306ac0faa0si7227746ejc.615.2022.09.12.23.42.38; Mon, 12 Sep 2022 23:43:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Jco+LU9T; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230089AbiIMG36 (ORCPT + 99 others); Tue, 13 Sep 2022 02:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230112AbiIMG36 (ORCPT ); Tue, 13 Sep 2022 02:29:58 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C637F101D1; Mon, 12 Sep 2022 23:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663050596; x=1694586596; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ikP/DswIzxgBJQ51v92pm0x/nKKPwvvC69In5vmplKA=; b=Jco+LU9TFnbsFXQdO9zPu2TTF9I7vwEtrEq1tCcjsff5Y3SyAtFZhWF1 kbPqpbGMMT2/6XnFcAx/buxpipJbIzPKxRSJMjrOY/J/EuA5OHrb58iH5 OllXNd02FCEUX/jH0kGhecLOUkz2e1EWpsPND4AxDlbFZS22HBgDIyNGQ uLNUxxVFEMUdCg8EkHtFt954umYyhtA/2Wgjp6lNSTUq+Bur1cIyx5P+t Dc65KoSi+ttqBJiAoBeUbL84EZIKv0yhsXttesBMSuTl+tShcKIRaUoSo oCVwVCkS4mUGOHZLj6t8RVfBkc5zoLiya/LAOyyLI7ulUWTYp1eg794PB w==; X-IronPort-AV: E=McAfee;i="6500,9779,10468"; a="296786595" X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="296786595" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2022 23:29:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="684733613" Received: from lkp-server02.sh.intel.com (HELO 4011df4f4fd3) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 12 Sep 2022 23:29:49 -0700 Received: from kbuild by 4011df4f4fd3 with local (Exim 4.96) (envelope-from ) id 1oXzQa-0003JY-2i; Tue, 13 Sep 2022 06:29:48 +0000 Date: Tue, 13 Sep 2022 14:29:01 +0800 From: kernel test robot To: sean.wang@mediatek.com, marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com Cc: kbuild-all@lists.01.org, sean.wang@mediatek.com, Soul.Huang@mediatek.com, YN.Chen@mediatek.com, Leon.Yen@mediatek.com, Eric-SY.Chang@mediatek.com, Deren.Wu@mediatek.com, km.lin@mediatek.com, robin.chiu@mediatek.com, Eddie.Chen@mediatek.com, ch.yeh@mediatek.com, posh.sun@mediatek.com, ted.huang@mediatek.com, Stella.Chang@mediatek.com, Tom.Chou@mediatek.com, steve.lee@mediatek.com, jsiuda@google.com, frankgor@google.com, abhishekpandit@google.com, michaelfsun@google.com, abhishekpandit@chromium.org, mcchou@chromium.org, shawnku@google.com, linux-bluetooth@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Jing Cai Subject: Re: [PATCH 4/4] Bluetooth: btusb: mediatek: add MediaTek devcoredump support Message-ID: <202209131404.9rjV6blJ-lkp@intel.com> References: <540fc6d93481e72e18b51f82f022ab34d57d5caa.1663020936.git.objelf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <540fc6d93481e72e18b51f82f022ab34d57d5caa.1663020936.git.objelf@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, Thank you for the patch! Yet something to improve: [auto build test ERROR on bluetooth/master] [also build test ERROR on bluetooth-next/master linus/master v6.0-rc5 next-20220912] [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/sean-wang-mediatek-com/Bluetooth-btusb-mediatek-use-readx_poll_timeout-instead-of-open-coding/20220913-062200 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git master config: arc-randconfig-r043-20220912 (https://download.01.org/0day-ci/archive/20220913/202209131404.9rjV6blJ-lkp@intel.com/config) compiler: arc-elf-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/d478461e2fd5fdd8d505c00c7864a421170a54bb git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review sean-wang-mediatek-com/Bluetooth-btusb-mediatek-use-readx_poll_timeout-instead-of-open-coding/20220913-062200 git checkout d478461e2fd5fdd8d505c00c7864a421170a54bb # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/bluetooth/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/bluetooth/btmtk.c: In function 'btmtk_coredump_notify': >> drivers/bluetooth/btmtk.c:111:14: error: 'HCI_DEVCOREDUMP_ACTIVE' undeclared (first use in this function); did you mean 'BTMTK_COREDUMP_ACTIVE'? 111 | case HCI_DEVCOREDUMP_ACTIVE: | ^~~~~~~~~~~~~~~~~~~~~~ | BTMTK_COREDUMP_ACTIVE drivers/bluetooth/btmtk.c:111:14: note: each undeclared identifier is reported only once for each function it appears in >> drivers/bluetooth/btmtk.c:114:14: error: 'HCI_DEVCOREDUMP_TIMEOUT' undeclared (first use in this function); did you mean 'HCI_LE_CONN_TIMEOUT'? 114 | case HCI_DEVCOREDUMP_TIMEOUT: | ^~~~~~~~~~~~~~~~~~~~~~~ | HCI_LE_CONN_TIMEOUT >> drivers/bluetooth/btmtk.c:115:14: error: 'HCI_DEVCOREDUMP_ABORT' undeclared (first use in this function) 115 | case HCI_DEVCOREDUMP_ABORT: | ^~~~~~~~~~~~~~~~~~~~~ >> drivers/bluetooth/btmtk.c:116:14: error: 'HCI_DEVCOREDUMP_DONE' undeclared (first use in this function) 116 | case HCI_DEVCOREDUMP_DONE: | ^~~~~~~~~~~~~~~~~~~~ drivers/bluetooth/btmtk.c: In function 'btmtk_register_coredump': >> drivers/bluetooth/btmtk.c:376:9: error: implicit declaration of function 'hci_devcoredump_register' [-Werror=implicit-function-declaration] 376 | hci_devcoredump_register(hdev, btmtk_coredump, btmtk_coredump_hdr, | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/bluetooth/btmtk.c: In function 'btmtk_process_coredump': >> drivers/bluetooth/btmtk.c:393:23: error: implicit declaration of function 'hci_devcoredump_init' [-Werror=implicit-function-declaration] 393 | err = hci_devcoredump_init(hdev, 1024000); | ^~~~~~~~~~~~~~~~~~~~ >> drivers/bluetooth/btmtk.c:397:44: error: 'struct hci_dev' has no member named 'dump' 397 | schedule_delayed_work(&hdev->dump.dump_timeout, | ^~ >> drivers/bluetooth/btmtk.c:402:23: error: implicit declaration of function 'hci_devcoredump_append' [-Werror=implicit-function-declaration] 402 | err = hci_devcoredump_append(hdev, skb); | ^~~~~~~~~~~~~~~~~~~~~~ >> drivers/bluetooth/btmtk.c:409:25: error: implicit declaration of function 'hci_devcoredump_complete' [-Werror=implicit-function-declaration] 409 | hci_devcoredump_complete(hdev); | ^~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +111 drivers/bluetooth/btmtk.c 107 108 static void btmtk_coredump_notify(struct hci_dev *hdev, int state) 109 { 110 switch (state) { > 111 case HCI_DEVCOREDUMP_ACTIVE: 112 coredump_info.state = BTMTK_COREDUMP_ACTIVE; 113 break; > 114 case HCI_DEVCOREDUMP_TIMEOUT: > 115 case HCI_DEVCOREDUMP_ABORT: > 116 case HCI_DEVCOREDUMP_DONE: 117 coredump_info.state = BTMTK_COREDUMP_INIT; 118 btmtk_reset_sync(coredump_info.hdev); 119 break; 120 } 121 } 122 -- 0-DAY CI Kernel Test Service https://01.org/lkp