From patchwork Wed Sep 26 19:38:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 147662 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1122497lji; Wed, 26 Sep 2018 12:39:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV611lkl4ukuvz8q20tZ9DEDac8yIFKC0tsEZmLSBFok2wfqB7Dgg9L7KFlfhQreH6wI3CEHb X-Received: by 2002:a62:1dc2:: with SMTP id d185-v6mr7720359pfd.219.1537990745715; Wed, 26 Sep 2018 12:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537990745; cv=none; d=google.com; s=arc-20160816; b=sPRFjej3Ri+BsS3SnmJJV3h3Fe87b3dgUGXCh6REbVUwWHLdxweA6vYwAtFiAlU96F xmlj54bPLiL66S4+7Ilksq0ffGmjd/Nv69PEcNdK/Kv6pQny5bJVAXbcYaKaBoTy2bCj be88mWMyVmdafmk2oUApeTvZhsuaaMx+nvPeXYvsXAy7UnfHCGCoG80SZ8uyyMhyMBMv GGlqMdDadX9e1RePydwJkptrsSFXjyqai4NbGUbJw2v0JPAS3ScsidEzwUHzX/4gMn7y fXjjbwmuepMiPsAURXtEqyYt4E1p8dMgDVhL/+p+G3T4dOd0C//in/psp2lnDiF4KbeQ DR5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=UV/5aKuv8Sx2zAwhRX1tJeKZSLIOPzPpkTVAjbd1XBc=; b=rfB7GGB6nCUaQH9bVBSEPgxelcRvEkh8cbbNMmZ6OLeHAj9iDlI5LavQIldDMK5d78 dH5fjOgqnsuZN92PYhkPg4KH488Jk4wVqMfzlNRx++cl/+tmghEIa1TTV7fzkeSm+LQU nORcWhi2NxHngFEwdKJDAsMzXoq39Iz1w5JvtIKA/+DYcMvVhYpeW53jfHEZLzTbwPEZ SH7B2xlhCxb8tk/JwL4ql56AGyKU12fS7HiKhELFvjbUyntiCaLzfHl74sqoU8JnK7X+ O3PhglocDox8yAARgLBLrl1Oxrog0H3c9+nVbxQUy1WBW3TNH4JLK2ArXQGsx+uRgbw/ Fa6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h29-v6si5950260pgi.445.2018.09.26.12.39.05; Wed, 26 Sep 2018 12:39:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726623AbeI0Bxe (ORCPT + 5 others); Wed, 26 Sep 2018 21:53:34 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:43735 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbeI0Bxe (ORCPT ); Wed, 26 Sep 2018 21:53:34 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MFshF-1fyvRK0r9z-00HNTr; Wed, 26 Sep 2018 21:38:21 +0200 From: Arnd Bergmann To: Sean Wang , Linus Walleij , Matthias Brugger Cc: Arnd Bergmann , linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: mediatek: mark dummy helpers as 'static inline' Date: Wed, 26 Sep 2018 21:38:09 +0200 Message-Id: <20180926193818.2481220-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:U4TWxtICXljj/5j09tCKrv67Z85xP2cxpkeXlSTGbXjqP+u0d6H fcKJlK8i2GgNBaNfDoKQBEfypHR6YfYAdicoobLlFxO7rJDvex+E8KNqgykzskywRnt71HJ l01N/s/DiJPbXj0xTUhSZLtRDVAKTmC3UAmB7jB6O0zhPHH8Q9jtqDGBpVv1Xwy+4vqfHDT ZsRhx5sEZLuzGY6YSJLcA== X-UI-Out-Filterresults: notjunk:1; V01:K0:cwENl99UqBw=:yFNVMb058SugpmC5fH4kv9 tZaTD8m93KP9FfaaAJ98TFP7f8ExZXdWxxr+CYmOtDyJGin9U+E8RYShA0DZljB8qKB+7w2ID NsKqStQYNFXbF9RP/ez5/uDIPzIyfhpQwTGOzk7rcZNAHMyS+lqsqwpeGtwkdQkM0k3vbVua+ MBZarDGcT30qB0KqDASIlSohHWI5hpIy0TIUw3G3gXsO49nsVAFcfMWaBtCRu+jb50w7PlUPf OIolECIWbsaENcQ2mioJ7pKpH8XY17ck0BcipXFPNaBCfiTH6VBh8uHtHOI4extawgo4RuxfL ixHs7ISoIawJdgEvAf4macFjli3pd42e9DeaOBGHkPUFClXoEY1njetHL07Q26xuJaad3UTS3 8UYChwH30yYj72Lx/F0KnW/kGuOx7yrmR4Tse+IekFNjsQkkZ9m7V1+K+8Pr8yNI4bmWSc8gV WaqOdsNdgCt5Yi+9F41JsBvhcxysjs9j4rxIGamFb7vSC0HJNx8FL7/I0SygZsK8VS/RYmgOs O301Gr6RkiHEptS9iolmpmO8n38xBNRJBIUlPKMo4WJ2C0SKIyfQNMTcyCqyRXV2ipkMNdh40 i9UI+nC4/3XsqR3LtdPuNDteBrST0RVoG+H+odW16xflu1jvzyaf/qSOIMzIp8Z+zr/jhfKlp fzf2dLAxuIOOM9J1kYuycHyDTFgVecMaohDPEdZACjy31oUIvbNYygHEIOFUQ4HfSoS4= Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org mtk_eint_set_debounce and mtk_eint_find_irq are defined as stub functions in a header file, but without marking them as 'static inline', we get a copy for each file that includes the header: drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.o: In function `mtk_eint_set_debounce': pinctrl-mtk-common-v2.c:(.text+0x134): multiple definition of `mtk_eint_set_debounce' drivers/pinctrl/mediatek/pinctrl-moore.o:pinctrl-moore.c:(.text+0x7d0): first defined here drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.o: In function `mtk_eint_find_irq': pinctrl-mtk-common-v2.c:(.text+0x13c): multiple definition of `mtk_eint_find_irq' Fixes: e46df235b4e6 ("pinctrl: mediatek: refactor EINT related code for all MediaTek pinctrl can fit") Signed-off-by: Arnd Bergmann --- drivers/pinctrl/mediatek/mtk-eint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.18.0 Acked-by: Sean Wang diff --git a/drivers/pinctrl/mediatek/mtk-eint.h b/drivers/pinctrl/mediatek/mtk-eint.h index c286a9b940f2..48468d0fae68 100644 --- a/drivers/pinctrl/mediatek/mtk-eint.h +++ b/drivers/pinctrl/mediatek/mtk-eint.h @@ -92,13 +92,13 @@ static inline int mtk_eint_do_resume(struct mtk_eint *eint) return -EOPNOTSUPP; } -int mtk_eint_set_debounce(struct mtk_eint *eint, unsigned long eint_n, +static inline int mtk_eint_set_debounce(struct mtk_eint *eint, unsigned long eint_n, unsigned int debounce) { return -EOPNOTSUPP; } -int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n) +static inline int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n) { return -EOPNOTSUPP; }