Skip to contentSkip to conversation

linux/map_to_7segment.h: convert to __inline__ for userspace

PATCH In review Mike Frysinger 2 participants 2 messages Dec 27, 2008 – Dec 29, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux/map_to_7segment.h: convert to __inline__ for userspace

Use __inline__ rather than inline for map_to_seg7() since it is exported to userspace.

---
 include/linux/map_to_7segment.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/map_to_7segment.h +1 -1
index 7df8432..12d62a5 100644
@@ -75,7 +75,7 @@ struct seg7_conversion_map {
 	unsigned char	table[128];
 };
 
-static inline int map_to_seg7(struct seg7_conversion_map *map, int c)
+static __inline__ int map_to_seg7(struct seg7_conversion_map *map, int c)
 {
 	return c >= 0 && c < sizeof(map->table) ? map->table[c] : -EINVAL;
 }
Signature · 1 line
1.6.0.6
#1 lore raw
Quoted 2 lines · Mike Frysinger

Use __inline__ rather than inline for map_to_seg7() since it is exported to userspace.

this patch can be ignored due to the autoconvert patch proposed for headers_install.pl
-mike