From patchwork Fri Sep 28 23:20:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Santos X-Patchwork-Id: 1527471 Return-Path: X-Original-To: patchwork-linux-sparse@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 7706A40D90 for ; Fri, 28 Sep 2012 23:21:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758928Ab2I1XVC (ORCPT ); Fri, 28 Sep 2012 19:21:02 -0400 Received: from nm35-vm7.bullet.mail.ne1.yahoo.com ([98.138.229.103]:42144 "HELO nm35-vm7.bullet.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1758797Ab2I1XVB (ORCPT ); Fri, 28 Sep 2012 19:21:01 -0400 Received: from [98.138.90.49] by nm35.bullet.mail.ne1.yahoo.com with NNFMP; 28 Sep 2012 23:20:59 -0000 Received: from [66.94.237.110] by tm2.bullet.mail.ne1.yahoo.com with NNFMP; 28 Sep 2012 23:20:59 -0000 Received: from [127.0.0.1] by omp1015.access.mail.mud.yahoo.com with NNFMP; 28 Sep 2012 23:20:59 -0000 X-Yahoo-Newman-Id: 767576.27046.bm@omp1015.access.mail.mud.yahoo.com Received: (qmail 81033 invoked from network); 28 Sep 2012 23:20:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1348874459; bh=6+ycOETbMCkCgKT6/441/tn7pS2g15Msd5q6QT48Sq4=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References; b=ew/SZBmo0JHBFT6m+XhE+KIuQE9uHyYeRojWOpD2zLcUjUwqroDP7asn392uIw3FjMRGR9oaOpodhQ5hwjJxyDH3luX+5KRNQwUWcJMwLqWGDUKB3bjF62JlsKmVcAkNOxTPNswC8dJK1WY1CN+0tO/RZBbEhn4iZ8M9NrWPziQ= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 6FDnDW8VM1k6LrgkFRm.swHm.h3A_joyHDIZVq8xIB85o0K RZP6NEkd1SlsVD1JjTVcNRUvasLyAif_qq9lVrWY0B7ycyRKohqxgwZNMbhu 4AjUDnEXiIMGcUH_EKfiuwjVg64p29zBjuBcg7w7zR1rU4J3iLuw6n1BkjSY _bPr6SbYsGjRW3Wil1TDwg5fNJD7mcJh_yBDXJCHja.c18kq0xlLD1AiZE1i XoR3eDl5kYz5Em7KDYqDRPMXhMMAQQLsMaH2u7Ukiw6scraqo3fRpRcrZs61 Wy.5Ckr4WJiRTDrICRo1hoZlBp4sMm3XmcAd1ES5Vi7bPkV1Eb47FV5pIvY8 TCDaIYOkRnrBZ2hQiRlCou2MHL9jNiIEYQ8s63eaOoeg_WdYrtsukKkwNHwl 7r_9cMC.wkJizX7bWYxHquzvHI8viqW3eX3r2uDpglH3VA0hxhZnxjA-- X-Yahoo-SMTP: xXkkXk6swBBAi.5wfkIWFW3ugxbrqyhyk_b4Z25Sfu.XGQ-- Received: from localhost.localdomain (danielfsantos@99.70.244.137 with login) by smtp106.sbc.mail.mud.yahoo.com with SMTP; 28 Sep 2012 23:20:59 +0000 UTC From: Daniel Santos To: LKML , Andi Kleen , Andrea Arcangeli , Andrew Morton , Christopher Li , Daniel Santos , David Daney , David Howells , Joe Perches , Konstantin Khlebnikov , linux-sparse@vger.kernel.org, Michel Lespinasse , Paul Gortmaker , Pavel Pisa , Peter Zijlstra , Steven Rostedt Subject: [PATCH 5/10] compiler{,-gcc4}.h: Remove duplicate macros Date: Fri, 28 Sep 2012 18:20:06 -0500 Message-Id: <1348874411-28288-6-git-send-email-daniel.santos@pobox.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1348874411-28288-1-git-send-email-daniel.santos@pobox.com> References: <1348874411-28288-1-git-send-email-daniel.santos@pobox.com> Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org __linktime_error() does the same thing as __compiletime_error() and is only used in bug.h. Since the macro defines a function attribute that will cause a failure at compile-time (not link-time), it makes more sense to keep __compiletime_error(), which is also neatly mated with __compiletime_warning(). Signed-off-by: Daniel Santos --- include/linux/compiler-gcc4.h | 2 -- include/linux/compiler.h | 3 --- 2 files changed, 0 insertions(+), 5 deletions(-) diff --git a/include/linux/compiler-gcc4.h b/include/linux/compiler-gcc4.h index b44307d..ad610f2 100644 --- a/include/linux/compiler-gcc4.h +++ b/include/linux/compiler-gcc4.h @@ -33,8 +33,6 @@ the kernel context */ #define __cold __attribute__((__cold__)) -#define __linktime_error(message) __attribute__((__error__(message))) - #ifndef __CHECKER__ # define __compiletime_warning(message) __attribute__((warning(message))) # define __compiletime_error(message) __attribute__((error(message))) diff --git a/include/linux/compiler.h b/include/linux/compiler.h index f430e41..fd455aa 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -297,9 +297,6 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect); #ifndef __compiletime_error # define __compiletime_error(message) #endif -#ifndef __linktime_error -# define __linktime_error(message) -#endif /* * Prevent the compiler from merging or refetching accesses. The compiler * is also forbidden from reordering successive instances of ACCESS_ONCE(),