From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759223Ab2I2AXj (ORCPT ); Fri, 28 Sep 2012 20:23:39 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:43001 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759085Ab2I2AXh (ORCPT ); Fri, 28 Sep 2012 20:23:37 -0400 X-Originating-IP: 217.70.178.141 X-Originating-IP: 50.43.46.74 Date: Fri, 28 Sep 2012 17:23:30 -0700 From: Josh Triplett To: Daniel Santos Cc: LKML , Andi Kleen , Andrea Arcangeli , Andrew Morton , Christopher Li , David Daney , David Howells , Joe Perches , Konstantin Khlebnikov , linux-sparse@vger.kernel.org, Michel Lespinasse , Paul Gortmaker , Pavel Pisa , Peter Zijlstra , Steven Rostedt Subject: Re: [PATCH 5/10] compiler{,-gcc4}.h: Remove duplicate macros Message-ID: <20120929002329.GB13907@jtriplet-mobl1> References: <1348874411-28288-1-git-send-email-daniel.santos@pobox.com> <1348874411-28288-6-git-send-email-daniel.santos@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1348874411-28288-6-git-send-email-daniel.santos@pobox.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 28, 2012 at 06:20:06PM -0500, Daniel Santos wrote: > __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 Why not change bug.h in the same commit? Or alternatively, why not change it first? Getting rid of __linktime_error *before* changing its use in bug.h to __compiletime_error seems wrong. - Josh Triplett