]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390/uv: Make uv_convert_from_secure() a static function
authorDavid Hildenbrand <david@redhat.com>
Wed, 8 May 2024 18:29:51 +0000 (20:29 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 5 Jun 2024 15:17:25 +0000 (17:17 +0200)
It's not used outside of uv.c, so let's make it a static function.

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20240508182955.358628-7-david@redhat.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/uv.h
arch/s390/kernel/uv.c

index 0e7bd3873907f7bd6a3fe575908d874c7c672764..d2205ff9700725598cd90cdbb170488eff28cb4e 100644 (file)
@@ -484,7 +484,6 @@ int uv_pin_shared(unsigned long paddr);
 int gmap_make_secure(struct gmap *gmap, unsigned long gaddr, void *uvcb);
 int gmap_destroy_page(struct gmap *gmap, unsigned long gaddr);
 int uv_destroy_owned_page(unsigned long paddr);
-int uv_convert_from_secure(unsigned long paddr);
 int uv_convert_owned_from_secure(unsigned long paddr);
 int gmap_convert_to_secure(struct gmap *gmap, unsigned long gaddr);
 
@@ -503,11 +502,6 @@ static inline int uv_destroy_owned_page(unsigned long paddr)
        return 0;
 }
 
-static inline int uv_convert_from_secure(unsigned long paddr)
-{
-       return 0;
-}
-
 static inline int uv_convert_owned_from_secure(unsigned long paddr)
 {
        return 0;
index ecfc08902215d793174c7b77550c10fc35df0d08..3d3250b406a6c27a1f3abaaee7900152d5f786aa 100644 (file)
@@ -156,7 +156,7 @@ int uv_destroy_owned_page(unsigned long paddr)
  *
  * @paddr: Absolute host address of page to be exported
  */
-int uv_convert_from_secure(unsigned long paddr)
+static int uv_convert_from_secure(unsigned long paddr)
 {
        struct uv_cb_cfs uvcb = {
                .header.cmd = UVC_CMD_CONV_FROM_SEC_STOR,