mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] linux/map_to_7segment.h: convert to __inline__ for userspace
@ 2008-12-27  6:51 Mike Frysinger
  2008-12-29 12:21 ` Mike Frysinger
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2008-12-27  6:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: anemo, dtor, henk.vergonet

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

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 include/linux/map_to_7segment.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/map_to_7segment.h b/include/linux/map_to_7segment.h
index 7df8432..12d62a5 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;
 }
-- 
1.6.0.6


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] linux/map_to_7segment.h: convert to __inline__ for userspace
  2008-12-27  6:51 [PATCH] linux/map_to_7segment.h: convert to __inline__ for userspace Mike Frysinger
@ 2008-12-29 12:21 ` Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2008-12-29 12:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: anemo, dtor, henk.vergonet

On Sat, Dec 27, 2008 at 01:51, Mike Frysinger <vapier@gentoo.org> wrote:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-29 12:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-27  6:51 [PATCH] linux/map_to_7segment.h: convert to __inline__ for userspace Mike Frysinger
2008-12-29 12:21 ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®