Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <vapier@gentoo.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Mike Frysinger and committed by
Dmitry Torokhov
34a4c5eb e0ee6298

+1 -1
+1 -1
include/linux/map_to_7segment.h
··· 75 75 unsigned char table[128]; 76 76 }; 77 77 78 - static inline int map_to_seg7(struct seg7_conversion_map *map, int c) 78 + static __inline__ int map_to_seg7(struct seg7_conversion_map *map, int c) 79 79 { 80 80 return c >= 0 && c < sizeof(map->table) ? map->table[c] : -EINVAL; 81 81 }