Commit 8da5b970 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

driver core: base.h: remove extern from function prototypes

The kernel coding style does not require 'extern' in function prototypes
in .h files, so remove them from drivers/base/base.h as they are not
needed.
Acked-by: default avatarRafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230324122711.2664537-4-gregkh@linuxfoundation.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8a2b9c84
...@@ -124,42 +124,40 @@ struct device_private { ...@@ -124,42 +124,40 @@ struct device_private {
container_of(obj, struct device_private, knode_class) container_of(obj, struct device_private, knode_class)
/* initialisation functions */ /* initialisation functions */
extern int devices_init(void); int devices_init(void);
extern int buses_init(void); int buses_init(void);
extern int classes_init(void); int classes_init(void);
extern int firmware_init(void); int firmware_init(void);
#ifdef CONFIG_SYS_HYPERVISOR #ifdef CONFIG_SYS_HYPERVISOR
extern int hypervisor_init(void); int hypervisor_init(void);
#else #else
static inline int hypervisor_init(void) { return 0; } static inline int hypervisor_init(void) { return 0; }
#endif #endif
extern int platform_bus_init(void); int platform_bus_init(void);
extern void cpu_dev_init(void); void cpu_dev_init(void);
extern void container_dev_init(void); void container_dev_init(void);
#ifdef CONFIG_AUXILIARY_BUS #ifdef CONFIG_AUXILIARY_BUS
extern void auxiliary_bus_init(void); void auxiliary_bus_init(void);
#else #else
static inline void auxiliary_bus_init(void) { } static inline void auxiliary_bus_init(void) { }
#endif #endif
struct kobject *virtual_device_parent(struct device *dev); struct kobject *virtual_device_parent(struct device *dev);
extern int bus_add_device(struct device *dev); int bus_add_device(struct device *dev);
extern void bus_probe_device(struct device *dev); void bus_probe_device(struct device *dev);
extern void bus_remove_device(struct device *dev); void bus_remove_device(struct device *dev);
void bus_notify(struct device *dev, enum bus_notifier_event value); void bus_notify(struct device *dev, enum bus_notifier_event value);
bool bus_is_registered(const struct bus_type *bus); bool bus_is_registered(const struct bus_type *bus);
extern int bus_add_driver(struct device_driver *drv); int bus_add_driver(struct device_driver *drv);
extern void bus_remove_driver(struct device_driver *drv); void bus_remove_driver(struct device_driver *drv);
extern void device_release_driver_internal(struct device *dev, void device_release_driver_internal(struct device *dev, struct device_driver *drv,
struct device_driver *drv, struct device *parent);
struct device *parent);
extern void driver_detach(struct device_driver *drv); void driver_detach(struct device_driver *drv);
extern void driver_deferred_probe_del(struct device *dev); void driver_deferred_probe_del(struct device *dev);
extern void device_set_deferred_probe_reason(const struct device *dev, void device_set_deferred_probe_reason(const struct device *dev, struct va_format *vaf);
struct va_format *vaf);
static inline int driver_match_device(struct device_driver *drv, static inline int driver_match_device(struct device_driver *drv,
struct device *dev) struct device *dev)
{ {
...@@ -174,27 +172,25 @@ static inline void dev_sync_state(struct device *dev) ...@@ -174,27 +172,25 @@ static inline void dev_sync_state(struct device *dev)
dev->driver->sync_state(dev); dev->driver->sync_state(dev);
} }
extern int driver_add_groups(struct device_driver *drv, int driver_add_groups(struct device_driver *drv, const struct attribute_group **groups);
const struct attribute_group **groups); void driver_remove_groups(struct device_driver *drv, const struct attribute_group **groups);
extern void driver_remove_groups(struct device_driver *drv,
const struct attribute_group **groups);
void device_driver_detach(struct device *dev); void device_driver_detach(struct device *dev);
extern int devres_release_all(struct device *dev); int devres_release_all(struct device *dev);
extern void device_block_probing(void); void device_block_probing(void);
extern void device_unblock_probing(void); void device_unblock_probing(void);
extern void deferred_probe_extend_timeout(void); void deferred_probe_extend_timeout(void);
extern void driver_deferred_probe_trigger(void); void driver_deferred_probe_trigger(void);
const char *device_get_devnode(const struct device *dev, umode_t *mode, const char *device_get_devnode(const struct device *dev, umode_t *mode,
kuid_t *uid, kgid_t *gid, const char **tmp); kuid_t *uid, kgid_t *gid, const char **tmp);
/* /sys/devices directory */ /* /sys/devices directory */
extern struct kset *devices_kset; extern struct kset *devices_kset;
extern void devices_kset_move_last(struct device *dev); void devices_kset_move_last(struct device *dev);
#if defined(CONFIG_MODULES) && defined(CONFIG_SYSFS) #if defined(CONFIG_MODULES) && defined(CONFIG_SYSFS)
extern void module_add_driver(struct module *mod, struct device_driver *drv); void module_add_driver(struct module *mod, struct device_driver *drv);
extern void module_remove_driver(struct device_driver *drv); void module_remove_driver(struct device_driver *drv);
#else #else
static inline void module_add_driver(struct module *mod, static inline void module_add_driver(struct module *mod,
struct device_driver *drv) { } struct device_driver *drv) { }
...@@ -202,24 +198,24 @@ static inline void module_remove_driver(struct device_driver *drv) { } ...@@ -202,24 +198,24 @@ static inline void module_remove_driver(struct device_driver *drv) { }
#endif #endif
#ifdef CONFIG_DEVTMPFS #ifdef CONFIG_DEVTMPFS
extern int devtmpfs_init(void); int devtmpfs_init(void);
#else #else
static inline int devtmpfs_init(void) { return 0; } static inline int devtmpfs_init(void) { return 0; }
#endif #endif
/* Device links support */ /* Device links support */
extern int device_links_read_lock(void); int device_links_read_lock(void);
extern void device_links_read_unlock(int idx); void device_links_read_unlock(int idx);
extern int device_links_read_lock_held(void); int device_links_read_lock_held(void);
extern int device_links_check_suppliers(struct device *dev); int device_links_check_suppliers(struct device *dev);
extern void device_links_force_bind(struct device *dev); void device_links_force_bind(struct device *dev);
extern void device_links_driver_bound(struct device *dev); void device_links_driver_bound(struct device *dev);
extern void device_links_driver_cleanup(struct device *dev); void device_links_driver_cleanup(struct device *dev);
extern void device_links_no_driver(struct device *dev); void device_links_no_driver(struct device *dev);
extern bool device_links_busy(struct device *dev); bool device_links_busy(struct device *dev);
extern void device_links_unbind_consumers(struct device *dev); void device_links_unbind_consumers(struct device *dev);
extern void fw_devlink_drivers_done(void); void fw_devlink_drivers_done(void);
extern void fw_devlink_probing_done(void); void fw_devlink_probing_done(void);
/* device pm support */ /* device pm support */
void device_pm_move_to_tail(struct device *dev); void device_pm_move_to_tail(struct device *dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment