linux/map_to_7segment.h: convert to __inline__ for userspace
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.
Signed-off-by Mike Frysinger <[email protected]>
--- include/linux/map_to_7segment.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/map_to_7segment.h +1 -1
@@ -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
Quoted 2 lines · Mike Frysinger
Use
__inline__rather than inline formap_to_seg7()since it is exported to userspace.
this patch can be ignored due to the autoconvert patch proposed for headers_install.pl
-mike