From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BC85FC6FA82 for ; Tue, 13 Sep 2022 10:57:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qUoPzEtThAWjsYUPgqVWVm3cY7uRUzVgyIgIHSxL3DY=; b=lxDIl14JCPvkvs3zTSvXHYCa6G 7ycj586XIe3meUJnXwGlQrb/dFyQ6PZcyBnAd3NIFyaDk8XDmFN7tPRoh0b3wXa/Fif+FVBpryxqO xZoJP9MzMmnlva62qIwFSpH+L4oWIP4EvdLc22McpXgG6XlIcm1Nwhx17+TDCnE5D92CMBgtSv5lC ZyYEylytnZAQcbVkQjq80xXY5r7A4qfOCCVQymOTnt2GBQkZuK0EtJ23yocCFQEl2q81pdECaela8 tvcQJDbeii9pfHQLQfDurM6oOjHI4HCTs/FypshfW1lW7WwCtNLJrdZLcpV/t+s8rf5RsQ6QxGzI4 1171eNNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oY3bU-0072qK-ND; Tue, 13 Sep 2022 10:57:20 +0000 Received: from mga12.intel.com ([192.55.52.136]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oY3bM-0072Y2-9Y for linux-mediatek@lists.infradead.org; Tue, 13 Sep 2022 10:57:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663066632; x=1694602632; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=11l4HL2ZNwzx83esXqcj5RkTzUWCjv48wB1HSJzPoHY=; b=VYhUSg5cgGeZkXBfpEgEioMrELi82d2LMOgWJXSWQ54EkTPa00YZ6FAs FbZJye1I3DfupxXSBPA172I7upJmChx+R5N79PQSdNy7hBQIdWIMmdHzd h/mva888TDYYLkGqRcEGIo8sEGcQj4Zp3TxW9dshIJRsIiIvTDab+S19E 8m21grQoou5fWe1tteet24CyGJusAU2OcwuyMkwHmeCyIgOMs3dSU+0iK InHvQbvotqnQvGfFgevAEJK5PlpOQHt7bWEEAHxO2vzxBardWQmzRYobQ m1Qm5iuWXmcteo41scXxa0Egg6+b39FuirQKj7Els/ubFq+7FHOta8jnh w==; X-IronPort-AV: E=McAfee;i="6500,9779,10468"; a="277839560" X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="277839560" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2022 03:57:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="861511474" Received: from lkp-server02.sh.intel.com (HELO 4011df4f4fd3) ([10.239.97.151]) by fmsmga006.fm.intel.com with ESMTP; 13 Sep 2022 03:57:01 -0700 Received: from kbuild by 4011df4f4fd3 with local (Exim 4.96) (envelope-from ) id 1oY3bB-0003WI-0V; Tue, 13 Sep 2022 10:57:01 +0000 Date: Tue, 13 Sep 2022 18:56:32 +0800 From: kernel test robot To: sean.wang@mediatek.com, marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com Cc: llvm@lists.linux.dev, 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: <202209131807.OuwXBmKi-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220913_035712_491430_4ED613A2 X-CRM114-Status: GOOD ( 12.14 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.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: i386-randconfig-a016-20220912 (https://download.01.org/0day-ci/archive/20220913/202209131807.OuwXBmKi-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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=clang make.cross W=1 O=build_dir ARCH=i386 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:111:7: error: use of undeclared identifier 'HCI_DEVCOREDUMP_ACTIVE'; did you mean 'BTMTK_COREDUMP_ACTIVE'? case HCI_DEVCOREDUMP_ACTIVE: ^~~~~~~~~~~~~~~~~~~~~~ BTMTK_COREDUMP_ACTIVE drivers/bluetooth/btmtk.c:27:2: note: 'BTMTK_COREDUMP_ACTIVE' declared here BTMTK_COREDUMP_ACTIVE, ^ >> drivers/bluetooth/btmtk.c:114:7: error: use of undeclared identifier 'HCI_DEVCOREDUMP_TIMEOUT' case HCI_DEVCOREDUMP_TIMEOUT: ^ >> drivers/bluetooth/btmtk.c:115:7: error: use of undeclared identifier 'HCI_DEVCOREDUMP_ABORT' case HCI_DEVCOREDUMP_ABORT: ^ >> drivers/bluetooth/btmtk.c:116:7: error: use of undeclared identifier 'HCI_DEVCOREDUMP_DONE' case HCI_DEVCOREDUMP_DONE: ^ >> drivers/bluetooth/btmtk.c:376:2: error: implicit declaration of function 'hci_devcoredump_register' is invalid in C99 [-Werror,-Wimplicit-function-declaration] hci_devcoredump_register(hdev, btmtk_coredump, btmtk_coredump_hdr, ^ >> drivers/bluetooth/btmtk.c:393:9: error: implicit declaration of function 'hci_devcoredump_init' is invalid in C99 [-Werror,-Wimplicit-function-declaration] err = hci_devcoredump_init(hdev, 1024000); ^ >> drivers/bluetooth/btmtk.c:397:32: error: no member named 'dump' in 'struct hci_dev' schedule_delayed_work(&hdev->dump.dump_timeout, ~~~~ ^ >> drivers/bluetooth/btmtk.c:402:9: error: implicit declaration of function 'hci_devcoredump_append' is invalid in C99 [-Werror,-Wimplicit-function-declaration] err = hci_devcoredump_append(hdev, skb); ^ drivers/bluetooth/btmtk.c:402:9: note: did you mean 'hci_devcoredump_init'? drivers/bluetooth/btmtk.c:393:9: note: 'hci_devcoredump_init' declared here err = hci_devcoredump_init(hdev, 1024000); ^ >> drivers/bluetooth/btmtk.c:409:4: error: implicit declaration of function 'hci_devcoredump_complete' is invalid in C99 [-Werror,-Wimplicit-function-declaration] hci_devcoredump_complete(hdev); ^ drivers/bluetooth/btmtk.c:409:4: note: did you mean 'hci_devcoredump_append'? drivers/bluetooth/btmtk.c:402:9: note: 'hci_devcoredump_append' declared here err = hci_devcoredump_append(hdev, skb); ^ 9 errors generated. 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