From: Mike Frysinger Date: Mon, 29 Dec 2008 12:00:23 +0000 (-0800) Subject: Input: map_to_7segment.h - convert to __inline__ for userspace X-Git-Tag: v2.6.29-rc1~221^2~1^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=34a4c5eb421dab6fe8381aa12c990f9d6f645b17;p=linux-2.6-omap-h63xx.git Input: 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 Signed-off-by: Dmitry Torokhov --- diff --git a/include/linux/map_to_7segment.h b/include/linux/map_to_7segment.h index 7df8432c440..12d62a54d47 100644 --- a/include/linux/map_to_7segment.h +++ b/include/linux/map_to_7segment.h @@ -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; }