Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp418690ybz; Fri, 17 Apr 2020 03:37:44 -0700 (PDT) X-Google-Smtp-Source: APiQypJAzlw/QX+qCXXeLfG2t71mxX9t/tReosntCmwoKXhVzlQk7yqE37gE7moB5BlZe1j7Mz4G X-Received: by 2002:a17:907:435d:: with SMTP id oc21mr2458631ejb.100.1587119864073; Fri, 17 Apr 2020 03:37:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587119864; cv=none; d=google.com; s=arc-20160816; b=FxDBDAAy76sOFtFhbbeitUPR7VMIEmL3uvwSDTfhOoJdEzhIWIZc+beuBS4yyGn35G CMlvesZofZs/A8nyBcNmwS2iyRQ5nh4kQn+mhKrVu1NT16Ck7dG+QexaeHln5xua7bO0 dwQU4fgrTWBszP7GMp3hYnvmXdHiIulaby0VMbp+RxBTQ9bwSOix7thbutFTQFEGt0I7 tpulQTnFYyNZJm0xeHrjRURR7oaq0j7vA5Jl5n0Qz3Mz3Xpkv0DIyAvvoyd7SJF/klsZ 87TPa1m5kvX5j1sODjyZFCKe1hQJloTa3WX2mqs4zfybAyn5LyX0XzQPZ7Ju98mHfAT3 6biQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=XZuFgDi+HKHE/FOd2Y/aWYXNlCUnW8gwXMJbPq4axb4=; b=uRukJclMLp/27bAGWjqQfpEJLpd0WmwkfcTCWabLxQwRnDOyid4ykZvsZeJeFc9LOW vnmeP+X0ECL2EdvJpmyWQNl6esgEL3o1z/YTRtaL6W8CEOVQmPGseMqj+E2oGnNi7O6m twJgHT0VhBXotioTDw7RflDdKQpbPEn9DjXGm/4KJViYRJqVCsZiQGx5ehCfu380i+N+ UbkTbo+1xGa7Pxss4R5mLGRtHyAA0i1vt4yMRHXm951GjR2C03Fw7QnuG0xlt4TW9qjY n+/mBGaUH+N2YHA86aPoNGJxOeQR6qefgFBObOVdQCtsDhMFseEPmVoYUCyT78hTYj2w 3WAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 n19si6186324edq.264.2020.04.17.03.37.21; Fri, 17 Apr 2020 03:37:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729419AbgDQKfq (ORCPT + 99 others); Fri, 17 Apr 2020 06:35:46 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:57632 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726469AbgDQKfp (ORCPT ); Fri, 17 Apr 2020 06:35:45 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3298B398AFE379EAA7D0; Fri, 17 Apr 2020 18:35:43 +0800 (CST) Received: from [127.0.0.1] (10.166.213.7) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Apr 2020 18:35:36 +0800 Subject: Re: [PATCH] pinctrl: rza1: remove unused 'rza1l_swio_pins' To: Geert Uytterhoeven CC: Linus Walleij , Nishka Dasgupta , Linux-Renesas , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Hulk Robot , Chris Brandt References: <20200417092042.11994-1-yanaijie@huawei.com> From: Jason Yan Message-ID: <76de8e85-d9a5-c58f-206e-15da59ee110e@huawei.com> Date: Fri, 17 Apr 2020 18:35:36 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.166.213.7] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/4/17 17:31, Geert Uytterhoeven 写道: > Hi Jason, > > On Fri, Apr 17, 2020 at 10:54 AM Jason Yan wrote: >> Fix the following gcc warning: >> >> drivers/pinctrl/pinctrl-rza1.c:401:35: warning: ‘rza1l_swio_pins’ >> defined but not used [-Wunused-const-variable=] >> static const struct rza1_swio_pin rza1l_swio_pins[] = { >> ^~~~~~~~~~~~~~~ >> >> Reported-by: Hulk Robot >> Signed-off-by: Jason Yan > > Thanks for your patch! > >> --- a/drivers/pinctrl/pinctrl-rza1.c >> +++ b/drivers/pinctrl/pinctrl-rza1.c >> @@ -398,15 +398,6 @@ static const struct rza1_bidir_pin rza1l_bidir_pins_p9[] = { >> { .pin = 5, .func = 3 }, >> }; >> >> -static const struct rza1_swio_pin rza1l_swio_pins[] = { >> - { .port = 2, .pin = 8, .func = 2, .input = 0 }, >> - { .port = 5, .pin = 6, .func = 3, .input = 0 }, >> - { .port = 6, .pin = 6, .func = 3, .input = 0 }, >> - { .port = 6, .pin = 10, .func = 3, .input = 0 }, >> - { .port = 7, .pin = 10, .func = 2, .input = 0 }, >> - { .port = 8, .pin = 2, .func = 3, .input = 0 }, >> -}; >> - >> static const struct rza1_bidir_entry rza1l_bidir_entries[RZA1_NPORTS] = { >> [1] = { ARRAY_SIZE(rza1l_bidir_pins_p1), rza1l_bidir_pins_p1 }, >> [3] = { ARRAY_SIZE(rza1l_bidir_pins_p3), rza1l_bidir_pins_p3 }, > > rza1l_swio_pins[] is unused because rza1l_swio_entries[] refers to the > wrong array. So I'd rather see a patch to fix that instead. > Thanks for the explanation, I will send a new one. > Thanks! > > Gr{oetje,eeting}s, > > Geert >