diff options
author | Gideon Israel Dsouza <gidisrael@gmail.com> | 2014-04-07 18:37:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 19:35:54 -0400 |
commit | 3b32123d734cb414e366b35a3b2142a995f9d1a0 (patch) | |
tree | fd9790206b59cd053bf72132da9a70ce3d8a21e5 /mm/nommu.c | |
parent | 615d6e8756c87149f2d4c1b93d471bca002bd849 (diff) |
mm: use macros from compiler.h instead of __attribute__((...))
To increase compiler portability there is <linux/compiler.h> which
provides convenience macros for various gcc constructs. Eg: __weak for
__attribute__((weak)). I've replaced all instances of gcc attributes with
the right macro in the memory management (/mm) subsystem.
[akpm@linux-foundation.org: while-we're-there consistency tweaks]
Signed-off-by: Gideon Israel Dsouza <gidisrael@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/nommu.c')
-rw-r--r-- | mm/nommu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index 5d3f3524bbdc..e68deff6d447 100644 --- a/mm/nommu.c +++ b/mm/nommu.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/vmalloc.h> | 25 | #include <linux/vmalloc.h> |
26 | #include <linux/blkdev.h> | 26 | #include <linux/blkdev.h> |
27 | #include <linux/backing-dev.h> | 27 | #include <linux/backing-dev.h> |
28 | #include <linux/compiler.h> | ||
28 | #include <linux/mount.h> | 29 | #include <linux/mount.h> |
29 | #include <linux/personality.h> | 30 | #include <linux/personality.h> |
30 | #include <linux/security.h> | 31 | #include <linux/security.h> |
@@ -460,7 +461,7 @@ EXPORT_SYMBOL_GPL(vm_unmap_aliases); | |||
460 | * Implement a stub for vmalloc_sync_all() if the architecture chose not to | 461 | * Implement a stub for vmalloc_sync_all() if the architecture chose not to |
461 | * have one. | 462 | * have one. |
462 | */ | 463 | */ |
463 | void __attribute__((weak)) vmalloc_sync_all(void) | 464 | void __weak vmalloc_sync_all(void) |
464 | { | 465 | { |
465 | } | 466 | } |
466 | 467 | ||