From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754707AbdA0SSD (ORCPT ); Fri, 27 Jan 2017 13:18:03 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34186 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753861AbdA0SRR (ORCPT ); Fri, 27 Jan 2017 13:17:17 -0500 From: Gideon Israel Dsouza To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, gerg@linux-m68k.org, geert@linux-m68k.org, linux-m68k@vger.kernel.org, paul.gortmaker@windriver.com Cc: Gideon Israel Dsouza Subject: [PATCH 1/2] compiler-gcc.h: Added a new macro to wrap gcc attribute Date: Fri, 27 Jan 2017 23:45:00 +0530 Message-Id: <1485540901-1988-2-git-send-email-gidisrael@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1485540901-1988-1-git-send-email-gidisrael@gmail.com> References: <1485540901-1988-1-git-send-email-gidisrael@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is resend, I've corrected the mistakes from the last patch. 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 --- 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..980fb35 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(x) __attribute__((mode(x))) /* gcc version specific checks */ -- 2.7.4