lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6bc59452-5d9e-851a-6c03-3611c4c388f0@redhat.com>
Date:   Mon, 22 Feb 2021 11:45:27 +0800
From:   Jason Wang <jasowang@...hat.com>
To:     Xianting Tian <xianting_tian@....com>, mst@...hat.com
Cc:     guoren@...ux.alibaba.com,
        virtualization@...ts.linux-foundation.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] virtio: remove export for virtio_config_{enable, disable}


On 2021/2/21 12:28 上午, Xianting Tian wrote:
> 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 <xianting_tian@....com>


Acked-by: Jason Wang <jasowang@...hat.com>


> ---
>   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);

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ