Skip to content

Commit

Permalink
driver core: physical_location.h remove extern from function prototypes
Browse files Browse the repository at this point in the history
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.

Acked-by: Rafael J. Wysocki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Mar 24, 2023
1 parent 8da5b97 commit 3e44d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/physical_location.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; };
Expand Down

0 comments on commit 3e44d5c

Please sign in to comment.