Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp582531imm; Fri, 17 Aug 2018 03:12:40 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy+iCB9lhkRRBM3zpmq4slTxband7dEvFj1+jY2Ln5OahRiHSSsim0fqOGi3hFaztsYEpq4 X-Received: by 2002:a65:5304:: with SMTP id m4-v6mr32031277pgq.250.1534500760184; Fri, 17 Aug 2018 03:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534500760; cv=none; d=google.com; s=arc-20160816; b=EbUFDSS3Yacg9SMwIOPX9czzxQ43xgxlqX0x/d0bqnAczuaOTORwr1RoKDNNfH7Knm uDt3ortFVj6TZCJUNpOlR+YTsP5eVHqfWrlMzpxHc9zUCrNSaJVyGVxOqXUkFKuFUZb2 PzEDGZlbeNWt4c5QDuZHoniF73lr2m0nMaClKF6V2oSg9kOA3UZp2l7h6SJEzfSN/lOq di0CAIXjymBzhmiaRDgpOKzwgxVhSP2e5A2dj8wmpd4E1hqmCqUcvk236Wkfn8mq9pmi pI1ziD7Ml4Nblb6L4hRTRcQ/AV0sfwp8nHMFaDbcstqLvfC/Uy0ZiWN6ShSCzdYDS/xC Yi4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=oMSxPR2dafaNe+8+1D/CXhrOaVIzspAA8XH3G63SXZg=; b=yOOExJAGu0YIEPKywnKp6z8UMc/suVgkCyn5Zl8Z97++aUmou9lH+Ev7A6PU+wPhlg uY8QLUeCpwi7UXtD1Z+ehYkpQhMckN62Y3wu+6qBJIKny2klZHclXBMjyGEwZpbHk7ro WKltbbNCzusZlSrACTfWgVcGI5G4SmNZ5XtgXfTDEL5XNZ4r6zHC1lttVKd33/+QD2cY aCqV2lvy2bazZP6laCHZs8WKCclTRD9zD51D77e4huIPOl9RUI7Q5drpUyS7SRs/TDKC fsWHXS/8JJeKqDMYBnDujHk6CdSsdW2KOQ+Sy/BxIU+jjlr5n9e+x+uD7Ftj5v+bzMU6 RrqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=c4Z37sro; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6-v6si1818569pls.267.2018.08.17.03.12.24; Fri, 17 Aug 2018 03:12:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=c4Z37sro; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726649AbeHQNNd (ORCPT + 99 others); Fri, 17 Aug 2018 09:13:33 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41343 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725845AbeHQNNc (ORCPT ); Fri, 17 Aug 2018 09:13:32 -0400 Received: by mail-lf1-f67.google.com with SMTP id v22-v6so5499895lfe.8 for ; Fri, 17 Aug 2018 03:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id; bh=oMSxPR2dafaNe+8+1D/CXhrOaVIzspAA8XH3G63SXZg=; b=c4Z37srokmUBThDJAzTJsBIL3iFvtNmDuEVhz3LMiKwc2EB9FxW5bzr41GEWrl222C a6u/7XLnnTAJnQUrnOdqc20dQKn0vbTvpE1fW4pnAlqsQifxZqEbAt31SJhTTjkTHXaO 5FztcnFRruuO6uoWaBepoThE1XZxoVxAEB2GA= 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; bh=oMSxPR2dafaNe+8+1D/CXhrOaVIzspAA8XH3G63SXZg=; b=mgusrnwukttTc5AKymy3t9EPrleuuGD9b+PDs55Mddta0q7zei344OmnXvWOKITLpq BDqA7qMjC5izuPQkxs0dFKzAdhfrDHTAWe+1OPojs4ZrRys0xYQ6c18EdL8ZdF0D4qIL 6jR//e7qXqy3IdOB6LrZRHDdC0UVyCUlh68mEO0N5Gt6YnY38Ni7969zu2M+FP3zmfhM dpTPoylKS/35gJEsY3B/6Advb5t1nundz7kgutTIrlJhmgg9KAxYoKI56Y4h6qQbXBfG gmOZsjyRjDmrYP5/gJ434a2hNC4k7nYPvnTL7KuzB7VBAEPfw/sMceZh/7y1zJoQE4nx uyRA== X-Gm-Message-State: AOUpUlHjhzQNXnhdxOGmrEkqIrf2dH4aUYuud/bMfF7s1vNomOlpfNV2 zyRwOE+9GDlaUxUOimQRQMLtSw== X-Received: by 2002:a19:4d0a:: with SMTP id a10-v6mr21049948lfb.5.1534500640916; Fri, 17 Aug 2018 03:10:40 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id p9-v6sm248800ljh.0.2018.08.17.03.10.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Aug 2018 03:10:40 -0700 (PDT) From: Rasmus Villemoes To: Andrew Morton , Christopher Li Cc: Rasmus Villemoes , linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] linux/compiler.h: don't use bool Date: Fri, 17 Aug 2018 12:10:35 +0200 Message-Id: <20180817101036.20969-1-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Appararently, it's possible to have a non-trivial TU include a few headers, including linux/build_bug.h, without ending up with linux/types.h. So the 0day bot sent me config: um-x86_64_defconfig (attached as .config) >> include/linux/compiler.h:316:3: error: unknown type name 'bool'; did you mean '_Bool'? bool __cond = !(condition); \ for something I'm working on. Rather than contributing to the #include madness and including linux/types.h from compiler.h, just use int. Signed-off-by: Rasmus Villemoes --- include/linux/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 42506e4d1f53..c8eab637a2a7 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -313,7 +313,7 @@ unsigned long read_word_at_a_time(const void *addr) #ifdef __OPTIMIZE__ # define __compiletime_assert(condition, msg, prefix, suffix) \ do { \ - bool __cond = !(condition); \ + int __cond = !(condition); \ extern void prefix ## suffix(void) __compiletime_error(msg); \ if (__cond) \ prefix ## suffix(); \ -- 2.16.4