Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2010805imm; Thu, 7 Jun 2018 04:07:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIicUvmn3bqE0RMyrogwwehlBkQb/2F97IBnK49PoS1QwmIHdkdMdMLAscoFAgU3VeXEXp/ X-Received: by 2002:a62:c00e:: with SMTP id x14-v6mr1361491pff.67.1528369621005; Thu, 07 Jun 2018 04:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528369620; cv=none; d=google.com; s=arc-20160816; b=dEmhoLKVSD8Dw2gfiDfdujlU9KVR/hFExt5B14b6tgh9pLKxlrElNC30ExsX3UQEZr KleDLULUm2lsVkjRw1a/1X+FH8QJ3iFzGFsFa8jDL7TvcZbS17eac4qmJinTtqgpdKse ikxLNhDWw1N/GjJVFfNbAML94JeSdDSYLj+xoEl5I2jShwl/t/TB9p7oehXlJ58HDHPT EntjhSCl757U95oU3l0EmDx4XMcpzahXHV2ZZH0bjXammlDmJG9qMr1les0TZDn2nRw6 GayT7LkBHoEeFS7D9zgYnFNYn50TqUkBLz74dSGtJq2l6GhoQOWsFyhHE9YMifQdH2v/ r3Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date:arc-authentication-results; bh=aKQ344Uy0jqY90sqYe/Qpc010by1TljtbkqssBtM3H0=; b=Q6Dn7WdPWk0zTSFi4c50Vx78wkTUHNJzJuHZgvkeHchgYY2iS/e8uFxuXOkdt06CJz 468aPvuS5ahl+Q6e3WZr7JaW3H/XdloHcTFZtyieY6UvD70ojnErWcbug+DoRCgHz3kr CDpg+jr8t3zjKA4KBey0vwJ8gmwyBRsxatEnciw59smOJmRl8qsUgrnl952dwjmmdglR 1h9funcnvUpcsG5slrUuldzQCMe/igreMaiT8/U72HPFchqmPSKvN7DJOtB1zs+O4AR2 Ky/k+5Ea9o276bKTVoZcBjTEEjFt4YCGMWtfLJotKQDRLENyoQUD8VOE+D+/KueWND2t st3w== 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 d37-v6si53881980plb.125.2018.06.07.04.06.46; Thu, 07 Jun 2018 04:07:00 -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 S1753532AbeFGLB2 (ORCPT + 99 others); Thu, 7 Jun 2018 07:01:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:36273 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751974AbeFGLB1 (ORCPT ); Thu, 7 Jun 2018 07:01:27 -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 2A51AAC3A; Thu, 7 Jun 2018 11:01:26 +0000 (UTC) Date: Thu, 7 Jun 2018 13:01:25 +0200 (CEST) From: Miroslav Benes To: keescook@chromium.org cc: linux-kernel@vger.kernel.org Subject: sparse warnings in overflow.h Message-ID: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kees, sparse (make C=1) gives me this warnings today... ./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 This hunk obviously fixes it, but I'm really not sure if it is a proper fix. 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 Any idea? Regards, Miroslav