From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [PATCH v5 5/9] bug.h: Fix BUILD_BUG_ON macro in __CHECKER__ Date: Thu, 15 Nov 2012 16:07:35 +0100 Message-ID: <20121115150735.GE4956@x1.osrc.amd.com> References: <1352844568-18826-1-git-send-email-daniel.santos@pobox.com> <1352844821-18952-5-git-send-email-daniel.santos@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from mail.skyhub.de ([78.46.96.112]:56487 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1768160Ab2KOPHS (ORCPT ); Thu, 15 Nov 2012 10:07:18 -0500 Content-Disposition: inline In-Reply-To: <1352844821-18952-5-git-send-email-daniel.santos@pobox.com> Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org Cc: LKML , Andi Kleen , Andrea Arcangeli , Andrew Morton , Christopher Li , Daniel Santos , David Daney , David Howells , Joe Perches , Josh Triplett , Konstantin Khlebnikov , linux-sparse@vger.kernel.org, Michel Lespinasse , Paul Gortmaker , Pavel Pisa , Peter Zijlstra , Steven Rostedt On Tue, Nov 13, 2012 at 04:13:37PM -0600, danielfsantos@att.net wrote: > When __CHECKER__ is defined, we disable all of the BUILD_BUG.* macros. > However, both BUILD_BUG_ON_NOT_POWER_OF_2 and BUILD_BUG_ON was > evaluating to nothing in this case, and we want (0) since this is a > function-like macro that will be followed by a semicolon. > > Signed-off-by: Daniel Santos Acked-by: Borislav Petkov -- Regards/Gruss, Boris.