Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp429412ybz; Fri, 17 Apr 2020 03:51:15 -0700 (PDT) X-Google-Smtp-Source: APiQypJrsJ/HJL3+EYRIQv5K3433C4fCtFcPxF0xnpQakNXz3ws4gEYDFPaIhFNbwsMx9LmtpUsa X-Received: by 2002:aa7:c901:: with SMTP id b1mr2243567edt.277.1587120674869; Fri, 17 Apr 2020 03:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587120674; cv=none; d=google.com; s=arc-20160816; b=Jn8SIqEuWqZbJRldUbyMtVtV+7OQmly7eqqKT7WQ1kJVJzW9WxrcrgVPoPsksf/YIa s8ojnX4EerpEQq8qtFCS1iyUOHkKoQ+Com9ynn3pDeDXHnxUL7A8V+YxG+ztaPMGRYk9 7OR4WwENZUw3R635cTNs/AIOk04GkGfK8ZlQvoKxYvoSOQcRexsbk/08dMkvN7xObTNe mKZh8prKORHZSjhu+0hiy6grGgk+oR3YEEfgDLUZMAAVA7+sp+mTV8IQ1Kg1ZzTO51lB Xlsi4W6lmcj/PvokLdIUAV5WiJB9Ey1t9dLNMlxiN9RYIiUZ+mLLawXCkWE0XxQUNghA 9jnw== 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:mime-version :message-id:date:subject:cc:to:from; bh=g8R2rQDtxM5/uHpdnd7/3txT6FoST1hQfVf2QBqwNKM=; b=UiTBcefCU99TmD3D1acZKP69Zc9Wp8tNZodSkcnPyseZHhws8a4qhokLlX5kVl4bPa XZBmLSfR0A34cjh0l0nXjrxFxeJWDnsU59PMFbplYM+SmnQTDGrbIf0lmwQkdGzBw+vn S0YBQMwiMK83beOfjFdeYvWaw7QVuUVuQsHsXWJkRk3sGrXllnx0EwfYfU8iU6POo36i xweaXJxrpTgmJzCjrEYA3kOChMa9RjRkd/My4t6KSElIwsImNlhrDDf2pl9Y5XS5txAd oR+Zj09PfgUVgdfprIirEYF5kXv2frtCTKeJZOyGlw7TNcPPAg5BrRkqUOgC1LdGRs28 RZLA== 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 z13si12137412eju.18.2020.04.17.03.50.51; Fri, 17 Apr 2020 03:51:14 -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 S1729512AbgDQKtz (ORCPT + 99 others); Fri, 17 Apr 2020 06:49:55 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2399 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729301AbgDQKtz (ORCPT ); Fri, 17 Apr 2020 06:49:55 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 85CFC75ABBDD60E2745D; Fri, 17 Apr 2020 18:49:49 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Apr 2020 18:49:39 +0800 From: Jason Yan To: , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] pinctrl: rza1: fix wrong array assignment of rza1l_swio_entries Date: Fri, 17 Apr 2020 19:16:04 +0800 Message-ID: <20200417111604.19143-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The rza1l_swio_entries refered to the wrong array rza1h_swio_pins, which was intended to be rza1l_swio_pins. So let's fix it. This is detected by 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 --- drivers/pinctrl/pinctrl-rza1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-rza1.c b/drivers/pinctrl/pinctrl-rza1.c index da2d8365c690..ff4a7fb518bb 100644 --- a/drivers/pinctrl/pinctrl-rza1.c +++ b/drivers/pinctrl/pinctrl-rza1.c @@ -418,7 +418,7 @@ static const struct rza1_bidir_entry rza1l_bidir_entries[RZA1_NPORTS] = { }; static const struct rza1_swio_entry rza1l_swio_entries[] = { - [0] = { ARRAY_SIZE(rza1h_swio_pins), rza1h_swio_pins }, + [0] = { ARRAY_SIZE(rza1l_swio_pins), rza1l_swio_pins }, }; /* RZ/A1L (r7s72102x) pinmux flags table */ -- 2.21.1