Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp447818rwb; Sat, 17 Sep 2022 08:04:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Ov/a+xqdv0h2DybMPOmAjMrDbHq1PVSdxkFgHihz4ZmnSrS6STgNfgFGpBJTI5qQpFXQQ X-Received: by 2002:a17:90b:4a50:b0:203:1204:5bc4 with SMTP id lb16-20020a17090b4a5000b0020312045bc4mr21601590pjb.79.1663427062971; Sat, 17 Sep 2022 08:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663427062; cv=none; d=google.com; s=arc-20160816; b=lZXLPv5zWcsaLjlfK30Myd93nLoyyUL+hk+uHEHgiKn2vjZYs9JIE4ZR4Xk+8/azbl B1C21WmifTr9KQi9nGzj7pjo/vqXdHkK/zOpdOH7XPQSUmJtsUMGClAvAW56yD0rynb6 4kk/q7T3dqXBdllGeq8+S7EdMeelH7Dh8GEgUxXxtbd0YTddZNyqLy4fHGyJw2crDJSe vK1jpBpUHZU+bIK2r1Dd6lO6fCHZinHvuPMNaRNL7psXynWf3B47PDCiZM0NJQG+n0+0 /2Zsq4bPjPNNbNKNEvdOJ5ew+gFxMUKBdPvZXKacMzuhtszk3xRpZRHNzcUMJM5U2zLZ z5fA== 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=xDzhpGo68VtaKg84TaLXRxgEg6LbRiojn823wT2GGsM=; b=CCsYx/h8Cm237KFZKpfZIxFmqqyXjSOVMfte9HnfloRxQ9ep0dWRjPj3cxGi0H/ZKz 1tCalmKhB+TwFT8Fh5oKW4ssM3kX2Kuzg6TpAmG3CrBDaN56SJ9C+6+QNA1Hve6TnYau WobSDWx2Jy8NaltimrdG2moZj5Ln+YHH2gaXnMQb3zZ5IoggIwKKjD8YPQvcYGc8oVXy ZXZi8zvc1mk1M9jdzLmB75tLhdbYw1d6KPEPtewxs2uYre0QxusnHtlpGqbgjpxnmPWh /kdgsmQl1wULIm6exNl7A7OZUJGci0BzzGzOw4KH+8FPhFptSOQJZTnksMn2T+lNLApe RvlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gJzW3Ja4; 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 p2-20020a170902e74200b00176a0d8780csi7568760plf.285.2022.09.17.08.03.54; Sat, 17 Sep 2022 08:04:22 -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=gJzW3Ja4; 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 S229741AbiIQOuE (ORCPT + 64 others); Sat, 17 Sep 2022 10:50:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbiIQOuD (ORCPT ); Sat, 17 Sep 2022 10:50:03 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 681671277C for ; Sat, 17 Sep 2022 07:50: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=1663426202; x=1694962202; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Cr1wgj8QaEilsSF87VZTrjUdwycUY+q/4Sn13bLXrf4=; b=gJzW3Ja4AF8eUvX/ORJBSl/mNz7jT/81hC26A4L6rH7+RNoW8Xn61nwC Qt7L4IFwlEkgBNRrqY6lbRm5UhJ3TDeg17moXSm2nMg+d4rWKmzRRTx73 vEKXczESNTDDeNr4KhVqvyp+WRBN+IDJmfnbI1OP7Nqw56gl5YzJXbE32 Y4p8RjDqv1CoDyQgj1ZE1RMoqLyOPJ35isHTZXbWgD+h7I/AIZH5RkDw8 diJFrTpOamiJm8IpOCsqNOmgpx6MFgJpS1Zt/wlmjvWcyotsTT0E4QKqI LW4pIMYvudHJk2mZfy2YzdFOyyp2TkQJhU2uWZq1WOFzS8kbl8SsaiG7j g==; X-IronPort-AV: E=McAfee;i="6500,9779,10473"; a="299150589" X-IronPort-AV: E=Sophos;i="5.93,323,1654585200"; d="scan'208";a="299150589" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2022 07:50:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,323,1654585200"; d="scan'208";a="569144060" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 17 Sep 2022 07:50:00 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1oZZ8p-0000PX-1f; Sat, 17 Sep 2022 14:49:59 +0000 Date: Sat, 17 Sep 2022 22:49:06 +0800 From: kernel test robot To: Jun Yu , ath11k@lists.infradead.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-wireless@vger.kernel.org, Jun Yu Subject: Re: [PATCH] wifi: ath11k: retrieve MAC address from system firmware if provided Message-ID: <202209172236.KWe4R2Dm-lkp@intel.com> References: <20220914215408.372520-1-junyuu@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220914215408.372520-1-junyuu@chromium.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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-wireless@vger.kernel.org Hi Jun, Thank you for the patch! Yet something to improve: [auto build test ERROR on kvalo-ath/ath-next] [also build test ERROR on wireless/main wireless-next/main linus/master v6.0-rc5 next-20220916] [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/Jun-Yu/wifi-ath11k-retrieve-MAC-address-from-system-firmware-if-provided/20220915-055714 base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath-next config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220917/202209172236.KWe4R2Dm-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/7a1539aed9ed31bd3b93c177abda0a2f4fea3945 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jun-Yu/wifi-ath11k-retrieve-MAC-address-from-system-firmware-if-provided/20220915-055714 git checkout 7a1539aed9ed31bd3b93c177abda0a2f4fea3945 # 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 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/net/wireless/ath/ath11k/mac.c:8999:44: error: too many arguments to function call, expected 2, have 3 device_get_mac_address(ab->dev, mac_addr, sizeof(ab->mac_addr)); ~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~ include/linux/etherdevice.h:35:5: note: 'device_get_mac_address' declared here int device_get_mac_address(struct device *dev, char *addr); ^ 1 error generated. vim +8999 drivers/net/wireless/ath/ath11k/mac.c 8979 8980 int ath11k_mac_register(struct ath11k_base *ab) 8981 { 8982 struct ath11k *ar; 8983 struct ath11k_pdev *pdev; 8984 int i; 8985 int ret; 8986 u8 mac_addr[ETH_ALEN] = {0}; 8987 8988 if (test_bit(ATH11K_FLAG_REGISTERED, &ab->dev_flags)) 8989 return 0; 8990 8991 /* Initialize channel counters frequency value in hertz */ 8992 ab->cc_freq_hz = IPQ8074_CC_FREQ_HERTZ; 8993 ab->free_vdev_map = (1LL << (ab->num_radios * TARGET_NUM_VDEVS(ab))) - 1; 8994 8995 ret = ath11k_peer_rhash_tbl_init(ab); 8996 if (ret) 8997 return ret; 8998 > 8999 device_get_mac_address(ab->dev, mac_addr, sizeof(ab->mac_addr)); 9000 9001 for (i = 0; i < ab->num_radios; i++) { 9002 pdev = &ab->pdevs[i]; 9003 ar = pdev->ar; 9004 if (ab->pdevs_macaddr_valid) { 9005 ether_addr_copy(ar->mac_addr, pdev->mac_addr); 9006 } else { 9007 if (is_zero_ether_addr(mac_addr)) 9008 ether_addr_copy(ar->mac_addr, ab->mac_addr); 9009 else 9010 ether_addr_copy(ar->mac_addr, mac_addr); 9011 ar->mac_addr[4] += i; 9012 } 9013 9014 idr_init(&ar->txmgmt_idr); 9015 spin_lock_init(&ar->txmgmt_idr_lock); 9016 9017 ret = __ath11k_mac_register(ar); 9018 if (ret) 9019 goto err_cleanup; 9020 9021 init_waitqueue_head(&ar->txmgmt_empty_waitq); 9022 } 9023 9024 return 0; 9025 9026 err_cleanup: 9027 for (i = i - 1; i >= 0; i--) { 9028 pdev = &ab->pdevs[i]; 9029 ar = pdev->ar; 9030 __ath11k_mac_unregister(ar); 9031 } 9032 9033 ath11k_peer_rhash_tbl_destroy(ab); 9034 9035 return ret; 9036 } 9037 -- 0-DAY CI Kernel Test Service https://01.org/lkp