Skip to content

Commit

Permalink
kobject: put kobject_actions in kobject.h
Browse files Browse the repository at this point in the history
This prevents the extern declaration in the driver core.

Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Jul 30, 2007
1 parent cd030c4 commit ff2ee8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
#include "base.h"
#include "power/power.h"

extern const char *kobject_actions[];

int (*platform_notify)(struct device * dev) = NULL;
int (*platform_notify_remove)(struct device * dev) = NULL;

Expand Down
3 changes: 3 additions & 0 deletions include/linux/kobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ enum kobject_action {
KOBJ_MAX
};

/* The list of strings defining the valid kobject actions as specified above */
extern const char *kobject_actions[];

struct kobject {
const char * k_name;
char name[KOBJ_NAME_LEN];
Expand Down

0 comments on commit ff2ee8c

Please sign in to comment.