Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp529892imu; Fri, 9 Nov 2018 01:36:59 -0800 (PST) X-Google-Smtp-Source: AJdET5cOeHcsRFYGk9Ic6z5160I0RfvXKEKYVLfKuq2Cc/h8Fm0uMH+81HY1Cn0vcezpoopS42vF X-Received: by 2002:a17:902:7c04:: with SMTP id x4-v6mr1161994pll.60.1541756219294; Fri, 09 Nov 2018 01:36:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541756219; cv=none; d=google.com; s=arc-20160816; b=Cqq5LuMi8pLf3T/ul5B2q8Zo+wrDjzUPPfb3O3me5gGs5pjBS5mKJbERA/VS+y2Z1b sFnsYKlZzNGtRHQP26Noga0C8Z0asTNN361AX01xZVVLTeJS74aX4PJ8C1rI5wmil6G9 aejVLUH8z0p6M374ZlRx8dWtc6USNUmPTO2jcXMLnyQZBUb6sBVohwlUoWY7y7hxq+h9 kP+1MWRG+kZTr9CGiq9b52Wroa2cq4hooyNQ40oV0xet7VYLHWgdZ3pIpYqX3l04mulT mIPukd5X7bEnaaY30jspaS+2ABDtSJ8NPX8kdC70OlKjVNFIYQqC68qM+zcQPMdJ7yXx axXg== 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; bh=sGA/Jd8PhjvWmiKHwbdGv4B6KV4x/6/o6D7wh8ejo+g=; b=ghQiMrT8/KLhKicKavCf8eyc3XTxMpAfSgeoP2MA2INLz3N7mfTllpOFPpQx2XT+1h LNJOH+u05p0/ABThqp6rVvPaheHMBxHsg4/w31RSIB1rKP+CTva5laPyZSZcWVvfPZ/4 L2IwqkOAaNkLNpyUpKHf0gexvq2pFi+4xxKb9vSj9Haa9FtpmYRhkuQUm2tGyWuW0EfV O4gb0upfyWwrIjGaSP7k9J8Qk1ewd0GFUtwOv0wdUs2YPlUBnQQLSt1HU9plzPO9T60c DEY3pFpJ8gJBjtEIXGGuSVQBf7NB4k6B+LnS3coJtMZ5niHmzkmAeEQMAH+nmWLmhwkt TPJw== 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 r24-v6si5705972pgv.380.2018.11.09.01.36.44; Fri, 09 Nov 2018 01:36:59 -0800 (PST) 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 S1727819AbeKITPX (ORCPT + 99 others); Fri, 9 Nov 2018 14:15:23 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:55160 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727560AbeKITPX (ORCPT ); Fri, 9 Nov 2018 14:15:23 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1gL3CT-0000te-UO; Fri, 09 Nov 2018 10:35:38 +0100 From: Johannes Berg To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org Cc: Johannes Berg Subject: [PATCH v2 1/3] compiler-gcc: hide COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW from sparse Date: Fri, 9 Nov 2018 10:35:32 +0100 Message-Id: <20181109093534.15121-1-johannes@sipsolutions.net> X-Mailer: git-send-email 2.17.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg Sparse doesn't support all the overflow builtins, so just hide them from it to avoid lots of warnings/errors reported by it. We could try to teach them to sparse, but the passed types are variable, and sparse doesn't seem to handle that well. Signed-off-by: Johannes Berg --- 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 2010493e1040..3154f2a84571 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -143,7 +143,7 @@ #define KASAN_ABI_VERSION 3 #endif -#if GCC_VERSION >= 50100 +#if GCC_VERSION >= 50100 && !defined(__CHECKER__) #define COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW 1 #endif -- 2.17.2