Skip to content

Commit

Permalink
[PATCH] x86-64: Make dmi_find_device for !DMI case inline
Browse files Browse the repository at this point in the history
Otherwise it will generate warnings and be generated many times.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent aeb3998 commit c47a316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/dmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extern struct dmi_device * dmi_find_device(int type, const char *name,

static inline int dmi_check_system(struct dmi_system_id *list) { return 0; }
static inline char * dmi_get_system_info(int field) { return NULL; }
static struct dmi_device * dmi_find_device(int type, const char *name,
static inline struct dmi_device * dmi_find_device(int type, const char *name,
struct dmi_device *from) { return NULL; }

#endif
Expand Down

0 comments on commit c47a316

Please sign in to comment.