Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp485475imm; Thu, 7 Jun 2018 23:35:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIYaKjhw+wFUah0cV2mJ6Y3SGODmBz293gFp/vFMUGBc2K8Dr+/LYhLXfltZdopwfm6Sn+D X-Received: by 2002:a17:902:d807:: with SMTP id a7-v6mr5183051plz.92.1528439732143; Thu, 07 Jun 2018 23:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528439732; cv=none; d=google.com; s=arc-20160816; b=PzqG+yWrd38KT1V0tSCXzN/5OOuo1MsN5e4fDW0loeURiAIztBkhLPgue+EszBwhbf Dhcc5SM+bK1MnqAoXbfGvGxQzayQYi3t0IW5OHePp2ppy1TbcQJ/0EJ7xmXTEoESMmvY 6bXmtr/QdF2oY6AiPaSFfAsGDITLPIsEGJ2mlDYivrbEFPdN76RTKSV6EfATV+LJtEx8 ET9ag46+LLH419+Kvnd9rScsnwXagaA9KNs3VuaxJ8tsODNSMzQNsAPTOhE7xOa39q1Q Y1QmnumwstbzN3pGzxXm3oWpedVxdxJOCvPXN3Nzj7xPOHLlXO2PNahpru8es6oIzY5Q YGlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=zKz/ouLh9EdKlPQbFyHK61ENE625cjQd03VlAlyjGOk=; b=jU17YuS6y91Q3GnLlfjUmh+DN63hsMJMHFCXYdgdFIJnflASL2jnXmqIP1SclVF95a crON4yARyo7/3phe38xPNiW98FkVOu7VPb4v4qVZZV2KwPp+JwWwtPOChG9/yaLSDTPm R3FpnClwLgeTYBkV5TwSBoi/SeHqQ7lZgYpre2heJkGKMRLWG8gGpbxeZBogSnq1norQ FDxL07k1sIUno/B03GEePsCXqC7duZudIhOHVuhnROZDF8No0Y3WdYM+7+lsHXS9jR/C xGLGd01ZZZdTUOFe+CjN7Ymzi7LH/xOGM/vUHHsY2bXPCBrM9OgYmOY3Kc+TJEzFKKmO Up0Q== ARC-Authentication-Results: i=1; mx.google.com; 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 h8-v6si19738740plr.268.2018.06.07.23.35.17; Thu, 07 Jun 2018 23:35:32 -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; 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 S1751541AbeFHGev (ORCPT + 99 others); Fri, 8 Jun 2018 02:34:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:60498 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276AbeFHGet (ORCPT ); Fri, 8 Jun 2018 02:34:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B8EFDAEC4; Fri, 8 Jun 2018 06:34:48 +0000 (UTC) From: Miroslav Benes To: keescook@chromium.org Cc: linux@rasmusvillemoes.dk, luc.vanoostenryck@gmail.com, linux-kernel@vger.kernel.org, Miroslav Benes Subject: [PATCH] compiler-gcc.h: don't set COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW for sparse Date: Fri, 8 Jun 2018 08:34:41 +0200 Message-Id: <20180608063441.8562-1-mbenes@suse.cz> X-Mailer: git-send-email 2.17.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org sparse errors out with ./include/linux/overflow.h:254:13: error: undefined identifier '__builtin_mul_overflow' ./include/linux/overflow.h:254:13: error: incorrect type in conditional ./include/linux/overflow.h:254:13: got void ./include/linux/overflow.h:256:13: error: undefined identifier '__builtin_add_overflow' ./include/linux/overflow.h:256:13: error: incorrect type in conditional ./include/linux/overflow.h:256:13: got void Sparse has not acquired generic overflow builtins yet, so don't set COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW for it. Signed-off-by: Miroslav Benes Acked-by: Rasmus Villemoes --- include/linux/compiler-gcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index f1a7492a5cc8..15e55b89e952 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -344,6 +344,6 @@ */ #define uninitialized_var(x) x = x -#if GCC_VERSION >= 50100 +#if GCC_VERSION >= 50100 && !defined(__CHECKER__) #define COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW 1 #endif -- 2.17.0