From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E22DC433E0 for ; Sun, 21 Feb 2021 02:07:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E0C2E64EF2 for ; Sun, 21 Feb 2021 02:07:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229926AbhBUCHn (ORCPT ); Sat, 20 Feb 2021 21:07:43 -0500 Received: from m15114.mail.126.com ([220.181.15.114]:46428 "EHLO m15114.mail.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbhBUCHe (ORCPT ); Sat, 20 Feb 2021 21:07:34 -0500 X-Greylist: delayed 5583 seconds by postgrey-1.27 at vger.kernel.org; Sat, 20 Feb 2021 21:07:33 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=G9gwKZta4TeKG9dXje SByg2i5Ouo5RFeGkqM2bZkx+U=; b=e+ZM/o3v4mbwZu9pYC8h59qJfWDbKqSf2R GNq6E6ho9m386rvjma6QcmMkv227ODc2YdzBvTyp3Rnt5u77YQ239gj4zgvt8JBD sJJLHUKgz13WVx28i4QhB4EiGbtPhdYAj98bX7MbnyWCLz3seVFSX/NhIRTN1eGF YDWY09Ui8= Received: from 192.168.137.133 (unknown [112.10.84.6]) by smtp7 (Coremail) with SMTP id DsmowACXuyDCODFgbzKtOA--.7768S3; Sun, 21 Feb 2021 00:28:52 +0800 (CST) From: Xianting Tian To: mst@redhat.com, jasowang@redhat.com Cc: guoren@linux.alibaba.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH] virtio: remove export for virtio_config_{enable, disable} Date: Sat, 20 Feb 2021 11:28:18 -0500 Message-Id: <1613838498-8791-1-git-send-email-xianting_tian@126.com> X-Mailer: git-send-email 1.8.3.1 X-CM-TRANSID: DsmowACXuyDCODFgbzKtOA--.7768S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7KFy8XF17JrWDXF1UKF1fXrb_yoW8ury3pF n7AFyFy3yUJF4fGa95Ja48u3WavanFk3yxJ34Fgwn8Wr12yr9Fyr1kA34xZa17ArWDAF1r JFyIgFyjv34DuFJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jwTmhUUUUU= X-Originating-IP: [112.10.84.6] X-CM-SenderInfo: h0ld03plqjs3xldqqiyswou0bp/1tbi5gQ-pFpEAOOBrQAAso Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org virtio_config_enable(), virtio_config_disable() are only used inside drivers/virtio/virtio.c, so it doesn't need export the symbols. Signed-off-by: Xianting Tian --- drivers/virtio/virtio.c | 6 ++---- include/linux/virtio.h | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 42e09cc..4b15c00 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -141,15 +141,14 @@ void virtio_config_changed(struct virtio_device *dev) } EXPORT_SYMBOL_GPL(virtio_config_changed); -void virtio_config_disable(struct virtio_device *dev) +static void virtio_config_disable(struct virtio_device *dev) { spin_lock_irq(&dev->config_lock); dev->config_enabled = false; spin_unlock_irq(&dev->config_lock); } -EXPORT_SYMBOL_GPL(virtio_config_disable); -void virtio_config_enable(struct virtio_device *dev) +static void virtio_config_enable(struct virtio_device *dev) { spin_lock_irq(&dev->config_lock); dev->config_enabled = true; @@ -158,7 +157,6 @@ void virtio_config_enable(struct virtio_device *dev) dev->config_change_pending = false; spin_unlock_irq(&dev->config_lock); } -EXPORT_SYMBOL_GPL(virtio_config_enable); void virtio_add_status(struct virtio_device *dev, unsigned int status) { diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 55ea329..b1894e0 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -132,8 +132,6 @@ static inline struct virtio_device *dev_to_virtio(struct device *_dev) void virtio_break_device(struct virtio_device *dev); void virtio_config_changed(struct virtio_device *dev); -void virtio_config_disable(struct virtio_device *dev); -void virtio_config_enable(struct virtio_device *dev); int virtio_finalize_features(struct virtio_device *dev); #ifdef CONFIG_PM_SLEEP int virtio_device_freeze(struct virtio_device *dev); -- 1.8.3.1