Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp3032337qtg; Tue, 4 Apr 2023 18:03:17 -0700 (PDT) X-Google-Smtp-Source: AKy350b0zC+1MleCsy3SP1DXOctzA1PuFWHf47+M9vfv4Hly1hx2Xwyzg/izO+d25+1DSquFStAR X-Received: by 2002:a17:902:d2c3:b0:19c:be03:d1ba with SMTP id n3-20020a170902d2c300b0019cbe03d1bamr5180983plc.6.1680656597381; Tue, 04 Apr 2023 18:03:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680656597; cv=none; d=google.com; s=arc-20160816; b=xHVaAw7fywVIoz5At6Bizg1QOdPxTCPZ1DUMF2jjMsyy3nZwmPQH0T7E5pw0j1MXzD VBYKZiqxQzS8txbCgoWJ9bjdsRzddL+k0xsVa0pDONO+kchf8kQiv8h7R9OCEE+jef5O HuJVvct1istH1CCuF1hBDcdi0cxQz9snzNR+QROV1Qow4BxYaVkhcU0bBevx6GiGW2la gWX1pjtcPVMAdJcJdmjq4mqSo3nt8nhmCoqTxOBC9WZIrmfontcuVwNDyFRQwP75pSCl RXx6zQqVQnuSsIK13bkdqZJ0Gbr9udxBDaMQffYKpl4UPRxUEFKFerg/W7pxU7nGUXuF T06g== 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=LPphf9EJQ/1lNPkrf+oa8I/o4MsmyTu/Ij9rnxmYJuQ=; b=rmi4/Ju2E8csGBYPPG8Twvvysh787HTs9DzVlIccHFzm2ecVD19AIFi7nvseAm4xlS AKhlsHVSBtcnIyZJDFcQK+eiGbRg17icAV8T7sElwhkC9AaOBsFP4FPgBasr6WjiWZ6b V2oHVKKy5v+hNB59bePXuIAlI3hOsvS+WJXKzUfZAzmJRql7mCJLRBwApoH6hoLlsHNO ipb4XukTXfQWA/fv9kc0wxwSARysgN/+fX9vmmxrVCnuvjSYB1BnfpDkaxvHuxvCUPT3 5gkebDkPn5Ey3fGBmmKjUoHmSBcK8yICQExKoVkTBYwexwSjJAF3TpMg0YIpj1Pq7NSu j2Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Vb0z7AKN; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 c16-20020a170902d49000b001a1d096714dsi11747426plg.620.2023.04.04.18.02.42; Tue, 04 Apr 2023 18:03:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=Vb0z7AKN; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 S235443AbjDEA7E (ORCPT + 59 others); Tue, 4 Apr 2023 20:59:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjDEA7D (ORCPT ); Tue, 4 Apr 2023 20:59:03 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DADD1BDB for ; Tue, 4 Apr 2023 17:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680656342; x=1712192342; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=x1L7LOkF2wLKWWv1RDFx3tipAAKEUKAHWT2Y0z2x5x8=; b=Vb0z7AKNOU+CCuZ38uGNaNSiagXsJ2SlmiGtjys5lv1YnU+eh2zfhY9Y VqUDJXmAVYV0TS1bCrEXCN+ro+7BatvdCd2jDBZgSydXRcmU3IhmF7Wvk koCGl1sgwxMIx7Ehc/9zSgjhFmmcQNqptvct6YEhSDH1BR8egZbUNIqwe cylAKcmWoeS1pXzkkPSf2D+INH/i9JXSDrynnJ7SysuREBvBCYc+5Qz/v aKZxRh6aGtowhVuO1z8c6ZRz6+bCyH2I5onD9JMNcowqSXv6lyaGN6UlO mgu7Sg8cz3COPaWIccmOZHVF8mhiVV9/DvIpkOmlSzQI1YEdaZ1L7/gyH w==; X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="339835059" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="339835059" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2023 17:58:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="755838896" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="755838896" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 04 Apr 2023 17:58:51 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pjrUB-000Q9U-0B; Wed, 05 Apr 2023 00:58:51 +0000 Date: Wed, 5 Apr 2023 08:58:45 +0800 From: kernel test robot To: Ryder Lee , Felix Fietkau , linux-wireless@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , linux-mediatek@lists.infradead.org, Ryder Lee , Bo Jiao Subject: Re: [PATCH 2/3] wifi: mt76: mt7996: add full system reset knobs into debugfs Message-ID: <202304050840.BZZpVG7z-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable 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-wireless@vger.kernel.org Hi Ryder, kernel test robot noticed the following build errors: [auto build test ERROR on wireless-next/main] [also build test ERROR on wireless/main linus/master v6.3-rc5 next-20230404] [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/Ryder-Lee/wifi-mt76-mt7996-add-full-system-reset-knobs-into-debugfs/20230405-040602 base: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main patch link: https://lore.kernel.org/r/cb71efc424029e909866e1c86cce712dbf2cc9ef.1680638324.git.ryder.lee%40mediatek.com patch subject: [PATCH 2/3] wifi: mt76: mt7996: add full system reset knobs into debugfs config: x86_64-randconfig-a002-20230403 (https://download.01.org/0day-ci/archive/20230405/202304050840.BZZpVG7z-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/8764f35bb4f80294bf2164552514cfd312c5feb3 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Ryder-Lee/wifi-mt76-mt7996-add-full-system-reset-knobs-into-debugfs/20230405-040602 git checkout 8764f35bb4f80294bf2164552514cfd312c5feb3 # 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=x86_64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/wireless/mediatek/mt76/mt7996/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304050840.BZZpVG7z-lkp@intel.com/ All error/warnings (new ones prefixed by >>): >> drivers/net/wireless/mediatek/mt76/mt7996/mcu.c:3742:5: warning: no previous prototype for function 'mt7996_mcu_trigger_assert' [-Wmissing-prototypes] int mt7996_mcu_trigger_assert(struct mt7996_dev *dev) ^ drivers/net/wireless/mediatek/mt76/mt7996/mcu.c:3742:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int mt7996_mcu_trigger_assert(struct mt7996_dev *dev) ^ static 1 warning generated. -- >> drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c:114:9: error: implicit declaration of function 'mt7996_mcu_trigger_assert' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ret = mt7996_mcu_trigger_assert(dev); ^ 1 error generated. vim +/mt7996_mcu_trigger_assert +114 drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c 45 46 DEFINE_DEBUGFS_ATTRIBUTE(fops_implicit_txbf, mt7996_implicit_txbf_get, 47 mt7996_implicit_txbf_set, "%lld\n"); 48 49 /* test knob of system error recovery */ 50 static ssize_t 51 mt7996_sys_recovery_set(struct file *file, const char __user *user_buf, 52 size_t count, loff_t *ppos) 53 { 54 struct mt7996_phy *phy = file->private_data; 55 struct mt7996_dev *dev = phy->dev; 56 bool band = phy->mt76->band_idx; 57 char buf[16]; 58 int ret = 0; 59 u16 val; 60 61 if (count >= sizeof(buf)) 62 return -EINVAL; 63 64 if (copy_from_user(buf, user_buf, count)) 65 return -EFAULT; 66 67 if (count && buf[count - 1] == '\n') 68 buf[count - 1] = '\0'; 69 else 70 buf[count] = '\0'; 71 72 if (kstrtou16(buf, 0, &val)) 73 return -EINVAL; 74 75 switch (val) { 76 /* 77 * 0: grab firmware current SER state. 78 * 1: trigger & enable system error L1 recovery. 79 * 2: trigger & enable system error L2 recovery. 80 * 3: trigger & enable system error L3 rx abort. 81 * 4: trigger & enable system error L3 tx abort 82 * 5: trigger & enable system error L3 tx disable. 83 * 6: trigger & enable system error L3 bf recovery. 84 * 7: trigger & enable system error L4 mdp recovery. 85 * 8: trigger & enable system error full recovery. 86 * 9: trigger firmware crash. 87 */ 88 case UNI_CMD_SER_QUERY: 89 ret = mt7996_mcu_set_ser(dev, UNI_CMD_SER_QUERY, 0, band); 90 break; 91 case UNI_CMD_SER_SET_RECOVER_L1: 92 case UNI_CMD_SER_SET_RECOVER_L2: 93 case UNI_CMD_SER_SET_RECOVER_L3_RX_ABORT: 94 case UNI_CMD_SER_SET_RECOVER_L3_TX_ABORT: 95 case UNI_CMD_SER_SET_RECOVER_L3_TX_DISABLE: 96 case UNI_CMD_SER_SET_RECOVER_L3_BF: 97 case UNI_CMD_SER_SET_RECOVER_L4_MDP: 98 ret = mt7996_mcu_set_ser(dev, UNI_CMD_SER_SET, BIT(val), band); 99 if (ret) 100 return ret; 101 102 ret = mt7996_mcu_set_ser(dev, UNI_CMD_SER_TRIGGER, val, band); 103 break; 104 105 /* enable full chip reset */ 106 case UNI_CMD_SER_SET_RECOVER_FULL: 107 mt76_set(dev, MT_WFDMA0_MCU_HOST_INT_ENA, MT_MCU_CMD_WDT_MASK); 108 dev->recovery.state |= MT_MCU_CMD_WDT_MASK; 109 mt7996_reset(dev); 110 break; 111 112 /* WARNING: trigger firmware crash */ 113 case UNI_CMD_SER_SET_SYSTEM_ASSERT: > 114 ret = mt7996_mcu_trigger_assert(dev); 115 if (ret) 116 return ret; 117 break; 118 default: 119 break; 120 } 121 122 return ret ? ret : count; 123 } 124 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests