From patchwork Mon Oct 8 19:14:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 148442 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4021153lji; Mon, 8 Oct 2018 12:14:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV62M/33hV3YC0Hm/5C1ag2h0fBZ5AhOV2Mi9aE2+dHTqv75ziADcHJngqf5sad39XVrKZbaq X-Received: by 2002:a17:902:6b46:: with SMTP id g6-v6mr24622133plt.19.1539026098788; Mon, 08 Oct 2018 12:14:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539026098; cv=none; d=google.com; s=arc-20160816; b=D/gfuzDMi31/CBQthbTbVWeQ5lFyLXkEuOmx0dJ6Q0DySukf1hHxTZVNemCTGtnwZn 7i60HLzelUx+PeuqT3FxXbFM3qs6A4P/scgIcbxSGj6694RF7QGewy6bCOHXJv6YlPZE ZbjnIjL5W0srbKOzNTDRwYy51naOj3QgerDYF/J9iWWVg/jCQ6CZD295mT/YYL4jqZS8 VQcw6QHEKg/DNK7PhCHrBkGawkTcY1jszRkV00wiQEJCKN+pqB4Mdyclqv/GQFZUOQG7 vZkgk0JB3BCArbQNtUCK1tYAWIFiJiaGq098h4FS3smAwYKwn8YarbrKpRXvOaYCQnnO +e2w== 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 j16-v6si17036564pgm.501.2018.10.08.12.14.58; Mon, 08 Oct 2018 12:14:58 -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 S1728135AbeJIC2K (ORCPT + 32 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(-) -- 2.17.1 Reviewed-by: Matthias Brugger 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; };