Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1951608ybk; Thu, 21 May 2020 20:50:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuQJq2KirpKVAtpu7Ms8qJ/YhwRrcDgSIX38zO2coDwDH/l/mzEnwKCmyK9W0O9TkA4mpf X-Received: by 2002:a17:906:eb43:: with SMTP id mc3mr6727739ejb.549.1590119434037; Thu, 21 May 2020 20:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590119434; cv=none; d=google.com; s=arc-20160816; b=eDB0xP2jR5MLUL7AvxO6+WsoiC1KAcIlIewseXvURoUghdf/OiBS1HM1L+qAJdkEiT IBYExZOgeUsDet8pF6bm1zM3JrhMgIafIKiGOMY9MV72Znd6abM1rcE2Da+nt/kTU2Rn V7MPTV5i4wfA8phvCDb2aiQ3RiDmifaZ9MTbFcR7zLgWjZIN6J786I2V/Dbvbk2YA9Hy I+0GtFbb6OBo/Lx4eckZkNszy3y01hh2yTMrRRjmkICoQARZXNRzJT9eT3G73d162mQl CNFmx1jVRS5JmebJTY4y/e7xvemy8ME3nBW96OTpKxGQOsEinpWerpbEYD4z4O1+qy2h txAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=qqzYKpH1g6ArmkEJheDJ3sL6TLaotYDjkwpjMyGPaV8=; b=FfLbstsC3+RkQu2ivXnTe3cih4xknhzQFaiznZrNh9pxSFLB5eqyte4Lgn7KQy9fXk PFupD+/kXe0eXkDOCUBJDR52pp04CeXwUGZR8JxTw6BSKuMyyTgYKJT0JtXO2P/WgwbS 4RNbyvYzHbPzYQSMe1FOF/G3C9FuDQ6QNg0nmlKn2C0qGXILKdLaB662F2tNq0SedbfN wyvABXq+fcUtLPuLqqsVxv1pX4jvYAGUkmeFKX2W08jmS3L5gwodM66kTcPEoUw0RMHj i9uS4V9ByZQ++sJpwXwJS43y5w+Qhov7E47Lg0UBSKrcq30wcdhTS7t/Skp/xDwA5i3m VEVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do2si4891571ejc.178.2020.05.21.20.50.10; Thu, 21 May 2020 20:50:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728136AbgEVDtY convert rfc822-to-8bit (ORCPT + 99 others); Thu, 21 May 2020 23:49:24 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:40355 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727836AbgEVDtY (ORCPT ); Thu, 21 May 2020 23:49:24 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.69 with qID 04M3n7nhD009640, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexmb06.realtek.com.tw[172.21.6.99]) by rtits2.realtek.com.tw (8.15.2/2.66/5.86) with ESMTPS id 04M3n7nhD009640 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 22 May 2020 11:49:07 +0800 Received: from RTEXMB04.realtek.com.tw (172.21.6.97) by RTEXMB06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Fri, 22 May 2020 11:49:07 +0800 Received: from RTEXMB04.realtek.com.tw (172.21.6.97) by RTEXMB04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Fri, 22 May 2020 11:49:06 +0800 Received: from RTEXMB04.realtek.com.tw ([fe80::8001:f5f5:a41e:f8d4]) by RTEXMB04.realtek.com.tw ([fe80::8001:f5f5:a41e:f8d4%3]) with mapi id 15.01.1779.005; Fri, 22 May 2020 11:49:06 +0800 From: Tony Chuang To: "Sang, Oliver" , Kalle Valo , lkp CC: Andy Huang , "kbuild-all@lists.01.org" , "linux-wireless@vger.kernel.org" Subject: RE: [kbuild-all] Re: [linux-next:master 2957/8703] drivers/net/wireless/realtek/rtw88/rtw8822c.c:1039:2: warning: missing braces around initializer Thread-Topic: [kbuild-all] Re: [linux-next:master 2957/8703] drivers/net/wireless/realtek/rtw88/rtw8822c.c:1039:2: warning: missing braces around initializer Thread-Index: AQHWKazTyqacfl17Z0yHcQkIk0aUJKivJHXggALZVgCAAYZcUA== Date: Fri, 22 May 2020 03:49:06 +0000 Message-ID: <06f65d3990b94913a087a215e188cf1a@realtek.com> References: <202005141308.j8dUPd66%lkp@intel.com> <87blmljuqz.fsf@kamboji.qca.qualcomm.com> <08fd8d04c2d84d58ac751371cd1c4c1f@realtek.com> In-Reply-To: Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.68.175] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > > > Kalle Valo writes: > > > > > > > > + linux-wireless > > > > > > kbuild test robot writes: > > > > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > > > master > > > > head: e098d7762d602be640c53565ceca342f81e55ad2 > > > > commit: 5ad4d8957b69f3ebf95ac02212c388bda75aeb30 [2957/8703] > > > rtw88: > > > > set power trim according to efuse PG values > > > > config: i386-randconfig-a002-20200514 (attached as .config) > > > > compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3 > > > > reproduce: > > > > git checkout 5ad4d8957b69f3ebf95ac02212c388bda75aeb30 > > > > # save the attached .config to linux build tree > > > > make ARCH=i386 > > > > > > > > If you fix the issue, kindly add following tag as appropriate > > > > Reported-by: kbuild test robot > > > > > > > > All warnings (new ones prefixed by >>, old ones prefixed by <<): > > > > > > > > drivers/net/wireless/realtek/rtw88/rtw8822c.c: In function > > > 'rtw8822c_power_trim': > > > >>> drivers/net/wireless/realtek/rtw88/rtw8822c.c:1039:2: warning: > > > >> missing braces around initializer [-Wmissing-braces] > > > > s8 bb_gain[2][8] = {0}; > > > > ^ > > > > drivers/net/wireless/realtek/rtw88/rtw8822c.c:1039:2: warning: (near > > > > initialization for 'bb_gain[0]') [-Wmissing-braces] > > > > > > Tony, please check this and fix it. If it's a false warning please let > > > us know. > > > > > > > I tried to re-pro by: > > git checkout 5ad4d8957b69f3ebf95ac02212c388bda75aeb30 > > # save the attached .config to linux build tree > > make ARCH=i386 > > > > But cannot see it. And I checked the code, looks fine to me. > > It seems to be a false warning. > > Hi, what's your compiler? we can reproduce by gcc-4.9 and follow above steps. > > From https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119 , the warning > should be only on old compilers. > If made below change, the warning will disappear. > @@ -1036,7 +1036,7 @@ static void rtw8822c_set_power_trim(struct > rtw_dev *rtwdev, s8 bb_gain[2][8]) > static void rtw8822c_power_trim(struct rtw_dev *rtwdev) > { > u8 pg_pwr = 0xff, i, path, idx; > - s8 bb_gain[2][8] = {0}; > + s8 bb_gain[2][8] = {}; > u16 rf_efuse_2g[3] = {PPG_2GL_TXAB, PPG_2GM_TXAB, > PPG_2GH_TXAB}; > > Similar fix could be seen, as an example, on > https://lkml.org/lkml/2017/9/12/159 > Oh, my gcc version is 5.5.0 20171010. OK, then I know it should be fixed for old gcc versions. Thanks! Yen-Hsuan