Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3893403ybb; Tue, 31 Mar 2020 14:16:57 -0700 (PDT) X-Google-Smtp-Source: APiQypIgmhomgHVHYCEdpWP0FwdNeMila+HAw/mMNStFfpmlxSZRgatRyi4nANg9Ja5+61s6j++1 X-Received: by 2002:aca:534d:: with SMTP id h74mr594074oib.173.1585689417271; Tue, 31 Mar 2020 14:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585689417; cv=none; d=google.com; s=arc-20160816; b=M08Sd5oYEiXoVti5kgGdbvjWBhf7ClIEK7uT4p5lQtRJyX6A9J+3k13U1Q5kzhR+eU +b1jIYO7eGMu01+A44ev1gzdqKkyek+8mxQWOrlbpNQhmmwSbUgEVZ1bbdOI6VGdywHP pxSWQm7QFwYj2kWsTZvO/OFkm5RxV3gr2q2kGqvXDeSAlvLRC+Pbb5tBkMBPWJhRdwlB kcdDbvUfiLXUS/TV0irDdj443R9MVDM1vfdDVt7QUjEjBsx+zbWP8CLZzsQKHzU/HHt3 CmW5OEhW9OCVeKIonE280WnVfgUBkFnLPCRkaGEK6kCYzio2COcwvXaoFKKYKDgZTEtW 6bww== 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=plo7g0nZ/ha8wrr8qd/itw1kOrwOyLKjvvPvelL1hx0=; b=yfjwDAh0kYfOvNvq7E1cxwn+60dm/6uPBwPjtegpCPxKPmhHgJktiyLHOZeAfco2BY 7T+cq2Tcx3ybhZiIKSt1KN2wTPy1QXImhRF4B4t3Vby8PWQjhvtdRifeiS93GFPNIYaz cRRULg5jUSAxaxWSEqAUrqaaXoT3gKPSJ/EpMsLQp7Vx5XEUcrjCykHq8vMfteBliYgx mW66Hxb1rOk07zytAl9318bINLOCHKWQsH9dJv0d1EGNNrC9BeJHWIYULgcxVuirxLHV xGMXq6Ve9zFPExJxOUcLT/58cHZ1CU0/o8NYT+H2EKmBd50pLCSwKhmnI8KBci/pJze+ xWdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1MYy8H73; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si43142oif.164.2020.03.31.14.16.44; Tue, 31 Mar 2020 14:16:57 -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=@kernel.org header.s=default header.b=1MYy8H73; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731259AbgCaVQL (ORCPT + 99 others); Tue, 31 Mar 2020 17:16:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:37954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731236AbgCaVQL (ORCPT ); Tue, 31 Mar 2020 17:16:11 -0400 Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1433B206DB; Tue, 31 Mar 2020 21:16:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585689370; bh=jf6zoqXWfNCOPCI+Bfu8MGbtJ3B0kxXSXQKXMuUQKKI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=1MYy8H73lCY120WVEh+zL9+ak/XkWqWgR2yGBrmBrPHKN7JagqzUcvV2ykYmkhzAs BCWPj8OfCHW1nwkvxT3shNUHNi1SCWHqj+szbZXwjNV12R++CQnNXnK51XA4KNX4dr gDFIhQEztRF7LJwVAQuRn0LauQPqI7R75E2vGvp4= Received: by mail-io1-f50.google.com with SMTP id c16so8927251iod.6; Tue, 31 Mar 2020 14:16:10 -0700 (PDT) X-Gm-Message-State: ANhLgQ3PO/QpylZZ8EJxBvZfSamk186q3WHeHW/brFbAPPAL3YVqRGg2 Eb0vsGHEmw/VbHHcmYM1YqJhcz9VRGjCMGd/P68= X-Received: by 2002:a02:c792:: with SMTP id n18mr17940258jao.5.1585689369479; Tue, 31 Mar 2020 14:16:09 -0700 (PDT) MIME-Version: 1.0 References: <1585569648-14017-1-git-send-email-light.hsieh@mediatek.com> <1585569648-14017-2-git-send-email-light.hsieh@mediatek.com> In-Reply-To: <1585569648-14017-2-git-send-email-light.hsieh@mediatek.com> From: Sean Wang Date: Tue, 31 Mar 2020 14:15:57 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 1/2] pinctrl: mediatek: make MediaTek pinctrl v2 driver ready for buidling loadable module To: Light Hsieh Cc: Linus Walleij , "moderated list:ARM/Mediatek SoC support" , "open list:GPIO SUBSYSTEM" , lkml , kuohong.wang@mediatek.com 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 Hi Light, > int mtk_pinconf_bias_set_rev1(struct mtk_pinctrl *hw, > const struct mtk_pin_desc *desc, bool pullup) > @@ -492,6 +502,7 @@ int mtk_pinconf_bias_set_rev1(struct mtk_pinctrl *hw, > > return 0; > } > +EXPORT_SYMBOL_GPL(mtk_pinconf_bias_set_rev1); > > int mtk_pinconf_bias_get_rev1(struct mtk_pinctrl *hw, > const struct mtk_pin_desc *desc, bool pullup, > @@ -517,6 +528,7 @@ int mtk_pinconf_bias_get_rev1(struct mtk_pinctrl *hw, > > return 0; > } > +EXPORT_SYMBOL_GPL(mtk_pinconf_bias_set_rev1); > I got build error with the patch ../drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:529:1: error: redefinition of '__ksymtab_mtk_pinconf_bias_set_rev1' ../drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:503:1: note: previous definition of '__ksymtab_mtk_pinconf_bias_set_rev1' was here make[4]: *** [drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.o] Error 1 > /* Combo for the following pull register type: > * 1. PU + PD > @@ -717,6 +729,7 @@ int mtk_pinconf_bias_set_combo(struct mtk_pinctrl *hw, > out: > return err; > } > +EXPORT_SYMBOL_GPL(mtk_pinconf_bias_set_combo); > > diff --git a/drivers/pinctrl/mediatek/pinctrl-paris.c b/drivers/pinctrl/mediatek/pinctrl-paris.c > index 83bf29c..8823c0c 100644 > --- a/drivers/pinctrl/mediatek/pinctrl-paris.c > +++ b/drivers/pinctrl/mediatek/pinctrl-paris.c > @@ -10,6 +10,7 @@ > */ > > #include > +#include > #include > #include "pinctrl-paris.h" > > @@ -633,6 +634,7 @@ ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw, > > return len; > } > +EXPORT_SYMBOL_GPL(mtk_pctrl_show_one_pin); > > #define PIN_DBG_BUF_SZ 96 > static void mtk_pctrl_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, > @@ -1037,3 +1039,7 @@ static int mtk_paris_pinctrl_resume(struct device *device) > .suspend_noirq = mtk_paris_pinctrl_suspend, > .resume_noirq = mtk_paris_pinctrl_resume, > }; > +EXPORT_SYMBOL_GPL(mtk_paris_pinctrl_probe); place EXPORT_SYMBOL_GPL(mtk_paris_pinctrl_probe) exactly at the tail of mtk_paris_pinctrl_probe definition. > + > +MODULE_LICENSE("GPL v2"); > +MODULE_DESCRIPTION("MediaTek Pinctrl Common Driver V2 Paris"); > -- > 1.8.1.1.dirty