lkml.org 
[lkml]   [2023]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5/6] driver core: physical_location.h remove extern from function prototypes
    Date
    The kernel coding style does not require 'extern' in function prototypes
    in .h files, so remove them from drivers/base/physical_location.h as
    they are not needed.

    Cc: "Rafael J. Wysocki" <rafael@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/base/physical_location.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/base/physical_location.h b/drivers/base/physical_location.h
    index 82cde9f1b161..3f3f61307998 100644
    --- a/drivers/base/physical_location.h
    +++ b/drivers/base/physical_location.h
    @@ -8,7 +8,7 @@
    #include <linux/device.h>

    #ifdef CONFIG_ACPI
    -extern bool dev_add_physical_location(struct device *dev);
    +bool dev_add_physical_location(struct device *dev);
    extern const struct attribute_group dev_attr_physical_location_group;
    #else
    static inline bool dev_add_physical_location(struct device *dev) { return false; };
    --
    2.40.0
    \
     
     \ /
      Last update: 2023-03-27 01:16    [W:4.515 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site