Skip to content

mm: Use macros from compiler.h instead of gcc specific attribute

Gideon Israel Dsouza linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1mm: use macros from compiler.h instead of __attribute__((...))mm/hugetlb.c mm/nommu.c mm/sparse.c +2 more+13 -62 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] mm: Use macros from compiler.h instead of gcc specific attribute

I'm extremely sorry about the mistake in the earlier patch.

The following patch is a corrected one.

================== Original Cover Letter ================== To increase compiler portability there is <linux/compiler.h> which provides convenience macros for various gcc constructs. Eg: __weak for __attribute__((weak)).

I've taken up the job of cleaning these attributes all over the kernel. Currently my patches for cleanup of all files under /kernel and /block are already done and in the linux-next tree.

In the following patch I've replaced all aforementioned instances under the /mm directory in the kernel source.
==============================================================

Gideon Israel Dsouza (1):
mm: use macros from compiler.h instead of __attribute__((...))

 mm/hugetlb.c | 3 ++-
 mm/nommu.c   | 3 ++-
 mm/sparse.c  | 4 +++-
 mm/util.c    | 5 +++--
 mm/vmalloc.c | 4 +++-
 5 files changed, 13 insertions(+), 6 deletions(-)
Signature · 7 lines
1.8.5.3

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>