Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp451485pxb; Wed, 20 Jan 2021 10:59:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkwkLLQYEW5ck2ZXoHJ73JSNCRnKOci+lKyn3qeKBvz22yW58NXK6L8o8fFV77TgMKaa6y X-Received: by 2002:a17:906:490d:: with SMTP id b13mr7070590ejq.307.1611169142558; Wed, 20 Jan 2021 10:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611169142; cv=none; d=google.com; s=arc-20160816; b=Gz6k/LYkfg/rgDbSe3sKMu/qdOMpG7/bqv9pl3QJuWNjksO82sEhUMaYsJac73Ymud WCve1o7Wi5Wv2BBdW6wDDPVA6g6DolMUIKcyW+t3m6z1oyeCkfkPOzzXEmBogd52ZMEN sDH0ewMJfDoWg5ryJXyoM3784fEGysDYdwGdVif/YYpvpU2cLVGl+Zy5vWpHmCNDYpOU aQjT34AW+H6u76qMHFNnRYH4Wk4y2B4AyiuZ9WKJPltvayG6OAgPDzD1cU/Mh6qN2YVt i8zTANPRgC/fzsbSp9Npn2XcKfVC5W12OtxROpAlJJfnC+wu2kHCMauX1GaLT0SIw9yh jPwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1YEVSMla8UOmgBC4LmzAJMeE/UB0SCvN1vHTnN1GioY=; b=qz/H19PmOmfDlHNWIoXk5wlLPCTGg5yKA2ED55Gs5Yx2akkPLj6Xb9h922jvwkkCu3 65pU8tFbzX5r8ha6RColdSJlU3rRy9xkYNnt2oyGGcJpQZb4fbbu+15cXGGIx2GxfbVA DvWbr2kjf3lpNRcmD2SkVE0QRjqpMiUEyQld2Hf0V513zt1YLw8e62X0TG7/0VvBqqD6 LuQJjbi2X1W+l+ozD7ooJ9Y/RfuugrhQD09ZizVwgWdYErLIV2FO51L3/HT0jog5kEGz CinIBfZvkEwTrZyJU0wavaVviLpxVH3QwSIB7mmazWxBxeFg/CAEPmb3+xUBTMP8Xk78 ceAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="eRFp/dsl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm19si1111093edb.525.2021.01.20.10.58.38; Wed, 20 Jan 2021 10:59:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="eRFp/dsl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733189AbhATS5Z (ORCPT + 99 others); Wed, 20 Jan 2021 13:57:25 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:47934 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387505AbhATRjk (ORCPT ); Wed, 20 Jan 2021 12:39:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611164293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1YEVSMla8UOmgBC4LmzAJMeE/UB0SCvN1vHTnN1GioY=; b=eRFp/dslELn1Z1K8T71nM0v6M9sdr6YvkLoStbkmEJEkXd3ZD4OYVesbtGP+C71U/y8C9n RRgPs1DCiqpljKunWApaWRGpNVr/ZPjLRuru626s9yUsCWAMuRaNVsSp48P2pcks0/lo+5 I7hBgjEZmLB6j5DIDxlvTggHejsaBVw= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-430-pTrozdxOMTqt0p6c8Tq1xQ-1; Wed, 20 Jan 2021 12:38:12 -0500 X-MC-Unique: pTrozdxOMTqt0p6c8Tq1xQ-1 Received: by mail-wr1-f69.google.com with SMTP id x12so1004976wrw.21 for ; Wed, 20 Jan 2021 09:38:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1YEVSMla8UOmgBC4LmzAJMeE/UB0SCvN1vHTnN1GioY=; b=NDtToDyoZuRziK2st5ZQ16gfsbvU2OvAIpncnUI+QD783BFonuT6/ZOQ9wbZdRyw/N Fql7H0I1xhlxiotv8UXRPd960zOxQa0DNDzszdIGDmHV2Ntic8PAOAobN0RPSv8rIT6o 7tLu/R+JliJXi++ywZ8MHynQ1mUzoGgquV5WWK73SKhoKqjhEOyvfVZaCFga3dVrE0vF aY1raX5Oreu2DneaGNGXUnqfngtnwSP8ib4WkwdCQR5/QPyNj+6khdonWwsTiDbD5w8X maPGGeTyYAmzmm+ADojnEPIU3k12S7TlRNuEbN9EDi8M9bTug1tv96Alczb3Bm/ePYwC JnrA== X-Gm-Message-State: AOAM531r1qIe7cgUcYFDV7NXUaHDx9H4Os1JJIEoEMMGQ1U4UWLUuGO0 Eue+E6eeDQexeMsxMx5daynFYSsDpNK8Rf33AWSrMTPZIyPnLe0hYvgnsXVrTIeOfAErDXeLSNa WPYiNrbOh5+mM+R2Hyr+ER/lPiqR9wsEnBBZrvplAgM76MpDUqyxE3MDNjUc5engzN+LGKb2VDJ yw X-Received: by 2002:adf:d238:: with SMTP id k24mr10316342wrh.414.1611164290652; Wed, 20 Jan 2021 09:38:10 -0800 (PST) X-Received: by 2002:adf:d238:: with SMTP id k24mr10316310wrh.414.1611164290420; Wed, 20 Jan 2021 09:38:10 -0800 (PST) Received: from redfedo.redhat.com ([2a01:cb14:499:3d00:cd47:f651:9d80:157a]) by smtp.gmail.com with ESMTPSA id x11sm4948325wmi.4.2021.01.20.09.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 09:38:08 -0800 (PST) From: Julien Thierry To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, will@kernel.org, ardb@kernel.org, masahiroy@kernel.org, keescook@chromium.org, michal.lkml@markovi.net, jpoimboe@redhat.com, peterz@infradead.org, mark.rutland@arm.com, broonie@kernel.org, linux-efi@vger.kernel.org, linux-hardening@vger.kernel.org, Julien Thierry Subject: [RFC PATCH 03/17] tools: bug: Remove duplicate definition Date: Wed, 20 Jan 2021 18:37:46 +0100 Message-Id: <20210120173800.1660730-4-jthierry@redhat.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20210120173800.1660730-1-jthierry@redhat.com> References: <20210120173800.1660730-1-jthierry@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Under tools, bug.h only defines BUILD_BUG_ON_ZERO() which is already defined in build_bug.h. This prevents a file to include both headers at the same time. Have bug.h include build_bug.h instead. Signed-off-by: Julien Thierry --- tools/include/linux/bug.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/include/linux/bug.h b/tools/include/linux/bug.h index 85f80258a15f..548be7cffa8e 100644 --- a/tools/include/linux/bug.h +++ b/tools/include/linux/bug.h @@ -2,10 +2,6 @@ #ifndef _TOOLS_PERF_LINUX_BUG_H #define _TOOLS_PERF_LINUX_BUG_H -/* Force a compilation error if condition is true, but also produce a - result (of value 0 and type size_t), so the expression can be used - e.g. in a structure initializer (or where-ever else comma expressions - aren't permitted). */ -#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) +#include #endif /* _TOOLS_PERF_LINUX_BUG_H */ -- 2.25.4