mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
40fc55cb69
This patch is the first in a series that tries to optimize the kernel in terms of size (and thus cache behavior, both cpu and pagecache). This first patch changes __always_inline to be a forced inline instead of the "regular" inline it was on everything except alpha. This forced inline matches the intention of the define better as a matter of documentation. There is no change in behavior by this patch, since "inline" currently is mapped to a forced inline anyway. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 lines
456 B
C
17 lines
456 B
C
/* Never include this file directly. Include <linux/compiler.h> instead. */
|
|
|
|
/* These definitions are for GCC v3.x. */
|
|
#include <linux/compiler-gcc.h>
|
|
|
|
#if __GNUC_MINOR__ >= 3
|
|
# define __attribute_used__ __attribute__((__used__))
|
|
#else
|
|
# define __attribute_used__ __attribute__((__unused__))
|
|
#endif
|
|
|
|
#if __GNUC_MINOR__ >= 4
|
|
#define __must_check __attribute__((warn_unused_result))
|
|
#endif
|
|
|
|
#define __always_inline inline __attribute__((always_inline))
|