Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1306165imm; Wed, 26 Sep 2018 15:34:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV63ocu1N/fqxi2w2Higra3d2i3mHWaKJt7JTOERq4fZQyMLO1mtFRgkGdGXBeWOOTrglPAtf X-Received: by 2002:a17:902:6a:: with SMTP id 97-v6mr7774279pla.276.1538001265351; Wed, 26 Sep 2018 15:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538001265; cv=none; d=google.com; s=arc-20160816; b=VWiXrGsSFSELdtkC6bvcXSstben8XhDueX94H1gvGSffoOj3sfYXKnWCVE32BEfjIw RqnvL2baOMIWuzKO6B+RiOKZECkGOho5lP0V+ZzHKhTfXLRf+cEXQDH2a+57Zu71ncuY 2x6GnwIOc51TLqJQACNmQYn/Gk1TaEkzyadZxrSNEP22pR2+iAFRw7awa1sbGw+aFwLW GnBBFL9UWbi3nWAYBoBSKoewrV1YWdOp37K7Hpk72RqAoCqcXv7JJaAIX/pG8FASDH+w Ndwdroo9kUUMEumJEv9AMkueyFm6tv/UI1XxU5ksjp32dP+hldTNo0MZXbDVnFVEPKNC 9lFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=l+7OVH3y/aePfixzgnTSi4xBfmk5QOIuFJb0ozk2xp8=; b=Jthxd1PhCHSCdboyZYGKxqIGP9AdL+nXJu4yUIgnf0IESuQLY05eLFCCVwZR4qp6Pb 9AdHe28H96vxjFd2LU59lQyBvt4rSmK1qr39Ibrk2qqHPBLTowu09Qfw2j1fD8dwWaXV 80qQ990KxURbgwlSP6d/0focTjf++hMltCEMaRW3WJEzO3SIyJULd0Q2/CWlZG6SxXuE M7J+e6ra4TwwA2PZcdvTxSIy1OwHMihERIrHpf5T5c5CgNW5gSPa4NUgNiMrjCX4N2ED PQYhTL/qHIMVetsQnp11VUvN2tlzi6UpTNLz0/3J64USer9IPjd19ka5ppnKIo1dB6N5 AUbw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1-v6si204614pld.277.2018.09.26.15.34.10; Wed, 26 Sep 2018 15:34:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726539AbeI0EtL (ORCPT + 99 others); Thu, 27 Sep 2018 00:49:11 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:55927 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726049AbeI0EtL (ORCPT ); Thu, 27 Sep 2018 00:49:11 -0400 X-UUID: c3ba819f430640d7b0b6e44870344225-20180927 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1635596465; Thu, 27 Sep 2018 06:33:55 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 27 Sep 2018 06:33:53 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 27 Sep 2018 06:33:53 +0800 Message-ID: <1538001233.30348.20.camel@mtkswgap22> Subject: Re: [PATCH] pinctrl: mediatek: mark dummy helpers as 'static inline' From: Sean Wang To: Arnd Bergmann CC: Linus Walleij , Matthias Brugger , , , , Date: Thu, 27 Sep 2018 06:33:53 +0800 In-Reply-To: <20180926193818.2481220-1-arnd@arndb.de> References: <20180926193818.2481220-1-arnd@arndb.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-TM-SNTS-SMTP: 96382A5D435B95B3C81DEBD9C66DA93A3ADA607BF9289CDF4DA644BAE10235C72000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, 2018-09-26 at 21:38 +0200, Arnd Bergmann wrote: > 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 Thank for the fixes for that I miss to mark the two functions as 'static inline'. The other functions in the same header file seem fine. Acked-by: Sean Wang > --- > drivers/pinctrl/mediatek/mtk-eint.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > 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; > }