Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp427501imm; Fri, 28 Sep 2018 00:29:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV61rZqwW4Ujs0dQzUpqKTfe83PAgE2tXlwlOJgzWfMnHAUZeySVsMppOlqXNYMWMTE6Mujt7 X-Received: by 2002:a62:6a01:: with SMTP id f1-v6mr15288903pfc.156.1538119771751; Fri, 28 Sep 2018 00:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538119771; cv=none; d=google.com; s=arc-20160816; b=ycGS7jgP71ciGR8J2L99Ka4tN7cTQ5J38fHxzKI+MgIDqhp/GlDzlfHpFTRhlfM2Y/ JuOW2N8hWxiwnMS85OBQ02IfrrCfa3X5gYHPGbgBEiygj8poyZWmoJlhcoGGH2uPZxL/ zz58usjvw2DU15FP42PKSMN526TndTDqhzy+bvKAZRztBHM4Sd5ndqEcHaslyvfDvg63 U24TGcbptoEV//I3CPgM8q/ZWCcojMtGK1EoKniUS+ZVFM3sdM2/Rt89W5hWaqT3rYDH qwYZokO9MZWpWTp072pRjmxpMw/Sugwe2ioGnIfGaEfH8e2W/jYnBw+UsMaSY1WPC6pJ iIrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2Nijw2aHwQv8PU4BQQ4Gl3dziJr1LOgbV0erSMgWGY4=; b=wZ+aJ7IIGun1oaDGgCGbEh2Lnk/vp+xlQU57DpOnFnGIbeVVdeThNz7wnwumnf+gwj MfESaPnYsLS575dUZNkx9A+YHXqPDLZidRkN2ikAr2jvjPPdq4TmYCWBeTiKv6j0mfjt H+0qrRGLYBLp3O/p2Z16QjHCYi/Kt57/Z+QivM7HMiEk6OOMx3rBS4mWDBVgh23RJBmO 4Tzwi3xUY28X+IIpZ+OAy2i0QnZEy9mVwzX7p8VbmhtVslKT+MC1dN/lAn5F+QxoU98k E6OKyO5ZgqDhyEeVivcaXJWLRPcC69jZ+P/WsIy5bKaaLmlMv2qix57I8CXjcSTJ6XQw Z3KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="bl5Uz/oq"; 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 y6-v6si4538774pfy.140.2018.09.28.00.29.14; Fri, 28 Sep 2018 00:29:31 -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="bl5Uz/oq"; 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 S1728921AbeI1NuM (ORCPT + 99 others); Fri, 28 Sep 2018 09:50:12 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:36660 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726106AbeI1NuM (ORCPT ); Fri, 28 Sep 2018 09:50:12 -0400 Received: by mail-qk1-f194.google.com with SMTP id a85-v6so3267989qkg.3 for ; Fri, 28 Sep 2018 00:27:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2Nijw2aHwQv8PU4BQQ4Gl3dziJr1LOgbV0erSMgWGY4=; b=bl5Uz/oqzj+KMX1zioUyg+OekSXYQX+WGKEgtPKTJuSrXKS5FAF/cUbahC7iE1W16D QmuW/+vZ0nl7gfiKiuz/sjLMQ6V3UOFx54IQ5h0w3BWPWIcmq/hKwdJpgEtUY1UaZglJ hsmcKRGw98rg0VukbVNyKMFwA4na8LFU8NbvE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2Nijw2aHwQv8PU4BQQ4Gl3dziJr1LOgbV0erSMgWGY4=; b=dYzGTWF+U5sJazvHUVnpIdfTLymDDEt9HC/Ra2iCVkuUdtRf1eV+fPfrzd0qQkZmo7 4f81xMo20MSEQYqjRtzxshGoFT4lT3HK4n6H2cCTqiMgtkyo70bKProLtfhfZMd+50xi h12XDXCIRc+DgojeikfNktJ3S7vImW+2REnWu+7qrT5Xpa6KGK3IFvQhfR6s6XaI68+s MrC+yX+70CLeD+HOqWsfJJ8LPUdG87KCrWMX80EidemZzca6xf3FTseCaSQ/kaCGPpmL bwgYPWgbeu64bkA3fjwwame1citOUSdS2v6Lqoy1soJFWJkngWkUg4hyVdvEN+PSqHh3 PjGg== X-Gm-Message-State: ABuFfoi6wc7jsMPnKQXTIkqgBW83vaxotZ1m2WNqEAP9klp9muq3h+Tl XZUz8tIMReqyv9gtH7B1AyoLIJYfRpwB8iNLD3iTJRas X-Received: by 2002:a37:4150:: with SMTP id o77-v6mr10967953qka.78.1538119668359; Fri, 28 Sep 2018 00:27:48 -0700 (PDT) MIME-Version: 1.0 References: <20180926193818.2481220-1-arnd@arndb.de> In-Reply-To: <20180926193818.2481220-1-arnd@arndb.de> From: Linus Walleij Date: Fri, 28 Sep 2018 09:27:36 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: mediatek: mark dummy helpers as 'static inline' To: Arnd Bergmann Cc: Sean Wang , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , "open list:GPIO SUBSYSTEM" , Linux ARM , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 26, 2018 at 9:38 PM 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 Patch applied with Sean's ACK. Yours, Linus Walleij