Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3956119imm; Mon, 8 Oct 2018 12:16:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV63JEmUo/M/G6i3wRm6uhFE/WX/uyLexvokdOfI26Xy4WYX2JdMoYSJbGzLZ1x1/Dlnqkn5c X-Received: by 2002:a17:902:6546:: with SMTP id d6-v6mr25310723pln.139.1539026188917; Mon, 08 Oct 2018 12:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539026188; cv=none; d=google.com; s=arc-20160816; b=C//ITmB2ZBOQlZVRDCl7vCZ3bA3A72nQtFfqNxRp5rINW9A1iWwS5MKMHIvQyzY8py Xe5OjVNT16tqyx3ZiKcEH4iDK0dIGki6G/SfsaYPNgZEWWU7736kdgcfYUq32nuaON4C ysRkEJ2F4SU9WSo+K4X9d/tGv884imdFdQKU0X0QoW23yyMWN7s4KS31sftMJpeZuSEg k1eaSube6eFK/LvGI/j4AG3htDpL0LYgkqsoPqhbF/LhEoyR3xlWh1uzvCdXQyyx0kUA mZ1lmDFcz5bymMpwJsGROaBVOdFZjRUevz0VJqX0rUrToD+nyCHWIRvQs2JtEcJDS/WS /v6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=0DFpLkI1lNkAOGQBFjmq2KvrwZ3ezAavaUuWVCM404M=; b=DhDLh5HgLgUz9tK21UZ2qYVAaQ9fXn5ZMXxfO8A5fQWqG4H8drb4lyaupbUiGtdXMB iu+CQmYwwBxJEMRKo6wpyssyoCgI2DzNOHyXMHciJ1s6BeQ5Zgwi7fkfEQoSEq2Isi0f qYO/Pk+0I53YcIp1xYLyiaSyNE8U7aunqAKItMxuzyRpnjhksIujiY/BIv+8dwHQPiEr FeDvQupwoZsZGmnvngS2YA/tU09FAUKsEtm1cPuDgDYtDHINyQNQEFs1yLojC2JTU5xS pVm1PF/YiUXDTnK/PUfcNFv8IDw64AOdAEY2Ghdrf7oTj9CU96td0lE/lJ6TeVCLe7EK AWEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fxqIgHHL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si18741333plz.220.2018.10.08.12.16.14; Mon, 08 Oct 2018 12:16:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fxqIgHHL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728112AbeJIC2K (ORCPT + 99 others); Mon, 8 Oct 2018 22:28:10 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:46646 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728039AbeJIC2J (ORCPT ); Mon, 8 Oct 2018 22:28:09 -0400 Received: by mail-pl1-f194.google.com with SMTP id v5-v6so10473346plz.13 for ; Mon, 08 Oct 2018 12:14:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0DFpLkI1lNkAOGQBFjmq2KvrwZ3ezAavaUuWVCM404M=; b=fxqIgHHLnh41AnjmBb2pMLDToDRT17Jxa32+2Cy+zp7fIx7L+N/JTOfoNEcgkrw5G5 nLpTAIvb7j2PKfuMe2N3HDUZIQXF3/Ahs/ZOxVUy4V7hXfqd5CThL4dMsHjc/tcHCpWH QSfI14FmQ5nKO3vuYZJgQ9Zaf5iG3S9yiGyFQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0DFpLkI1lNkAOGQBFjmq2KvrwZ3ezAavaUuWVCM404M=; b=PkViRPJjCGQfwAUR69ijvEBsd+lE6jNElx44Ig3TV5N+KxbOulfZ5wK7UDkesiZHdn YwVv1Q1hMz1MFch4iaxz3qcca+JIzEMAApm+oJRJa/IZiIwgnqwEM0mpb3SKbekbg7NS 9DV4iAhQhR3cUqIkb50/Sx3r4JqaYJUjsP7Q9qbCHpDjjG63+ewuRgzkldfhM8sUULWm OnNYunbtqlcyARYEk8i2mCFNNf6uPqdrGjpUAZ/rdxBPbT+MQmPwfc0uZP5Zkilo/pAD g0HsexnMNAdZUGghWJpyLx293+QajktpBvHXgCYgqBPz5C5/JKcQK22mKxdi6jmgVHPF eZvw== X-Gm-Message-State: ABuFfogrRr4M2kTGDXy1XKbvAJS0O7RSShZx8twqnZ+ADbPAJbAQfSP9 mj66tN8P7umQFVZTR1alTNI3 X-Received: by 2002:a17:902:509:: with SMTP id 9-v6mr25516482plf.155.1539026094911; Mon, 08 Oct 2018 12:14:54 -0700 (PDT) Received: from localhost.localdomain ([2405:204:73c6:20ea:9fd:1785:d893:1e98]) by smtp.gmail.com with ESMTPSA id a15-v6sm15648035pff.8.2018.10.08.12.14.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Oct 2018 12:14:54 -0700 (PDT) From: Manivannan Sadhasivam To: sean.wang@mediatek.com, linus.walleij@linaro.org, matthias.bgg@gmail.com, robh+dt@kernel.org Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, amit.kucheria@linaro.org, Manivannan Sadhasivam Subject: [PATCH 4/5] pinctrl: mediatek: pinctrl-mtk-common-v2: Make eint_m u16 Date: Tue, 9 Oct 2018 00:44:10 +0530 Message-Id: <20181008191411.32555-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181008191411.32555-1-manivannan.sadhasivam@linaro.org> References: <20181008191411.32555-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For SoC's which lacks EINT support, U16_MAX is assigned to both eint_m and eint_n through macro NO_EINT_SUPPORT. This will generate integer overflow warning because eint_m is declared as u8 type. Hence modify the eint_m type to u16. Signed-off-by: Manivannan Sadhasivam --- drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h index 991c1c56670c..6d24522739d9 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h @@ -154,7 +154,7 @@ struct mtk_func_desc { * @eitn_n: the eint number for this pin */ struct mtk_eint_desc { - u8 eint_m; + u16 eint_m; u16 eint_n; }; -- 2.17.1