public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
From: Gideon Israel Dsouza <gidisrael@gmail.com>
To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
	gerg@linux-m68k.org, geert@linux-m68k.org,
	linux-m68k@lists.linux-m68k.org
Cc: Gideon Israel Dsouza <gidisrael@gmail.com>
Subject: [PATCH 1/2] compiler-gcc.h: Added new macro for gcc attribute
Date: Thu, 19 Jan 2017 19:04:47 +0530	[thread overview]
Message-ID: <1484832887-7316-1-git-send-email-gidisrael@gmail.com> (raw)

Added __mode(x) into compiler-gcc.h as part of a cleanup task I've
taken up, to replace gcc specific attributes with macros.

Last accepted patch I sent into linux-next for crypto: d8c34b949d8c:
crypto: Replaced gcc specific attributes with macros from compiler.h

The last commit of this task that went through you: 52f5684c8e1ec
kernel: use macros from compiler.h instead of __attribute__((...))

The next patch is for cleaning up the m68k subsystem and it requires
a new macro to wrap __attribute__ ((mode (...)))

Signed-off-by: Gideon Israel Dsouza <gidisrael@gmail.com>
---
 include/linux/compiler-gcc.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h
index 0444b13..f1b1cfe 100644
--- a/include/linux/compiler-gcc.h
+++ b/include/linux/compiler-gcc.h
@@ -121,6 +121,7 @@
 #define __attribute_const__	__attribute__((__const__))
 #define __maybe_unused		__attribute__((unused))
 #define __always_unused		__attribute__((unused))
+#define __mode                  __attribute__((mode(x)))
 
 /* gcc version specific checks */
 
-- 
2.7.4

             reply	other threads:[~2017-01-19 13:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-19 13:34 Gideon Israel Dsouza [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-01-24 12:14 [PATCH 1/2] compiler-gcc.h: Added new macro for gcc attribute Gideon Israel Dsouza
2017-01-25  1:50 ` Joe Perches
     [not found] ` <1485309036.12563.46.camel@perches.com>
2017-01-25  4:50   ` Gideon D'souza
     [not found]   ` <CAPNrq4wbhovDcyuNdK84kA1nYtVKcSw42SJGHPsJK68VVuyyyg@mail.gmail.com>
2017-01-27 13:34     ` Gideon D'souza
     [not found]     ` <CAPNrq4zYukoyRYiH6erX2SwFKVrPfOBhCkKD_Z6kKHmrzGqfFw@mail.gmail.com>
2017-01-27 13:45       ` Joe Perches
     [not found]       ` <1485524751.12563.124.camel@perches.com>
2017-01-27 17:20         ` Gideon D'souza

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1484832887-7316-1-git-send-email-gidisrael@gmail.com \
    --to=gidisrael@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=geert@linux-m68k.org \
    --cc=gerg@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@lists.linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox