Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2131468imm; Fri, 7 Sep 2018 11:15:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbcZ6p85Lso5bgnKeiAOB/xJYuoOmnIbt8yVc1Qoiyxwkbc9jrWmnyih1ILr8yCH0gklLeL X-Received: by 2002:a62:808c:: with SMTP id j134-v6mr9936740pfd.120.1536344131221; Fri, 07 Sep 2018 11:15:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536344131; cv=none; d=google.com; s=arc-20160816; b=gUIN+Ig1FcTKEdjf2lRoja2AU6PXWCHL7yQnacw9cTdjXjUrMMM916RT01/8tXyKwn 0n7P1Khw9reJZUU5L4CgadlYe/kSWi+FOznmNsZoXyi/r+yEXheMgXynf5mlnh6kw0nn +Gf7+EyK0v/UhiegXtffbxKW98qmT+KwgsplMyOROldiVCp/vHihWMCYHQrq4Y62LtIg gOp/ddl9+hFhzzJ1b8fe7UoIlLuCucnsK7kQnAfpMVfmR747r0eTjIGajX/MGsX600AG CO2D1iVcPQVbG4rakDACrhMXhpNY3CXYWM1mn75hgSCBJMqFvHJIh9mkhLM2sgNyT7iD uKnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=10vE1Rg1a4/Ko7gX6XRid8jQMjfywWxVHkOwK+8YLKE=; b=miJqAuyiudOadvFSgm0vQQThypAO40oARGgMu2Ar24sQLw+rOzitpECiNld6sD+avw CxtLYDLWlgbqbstfIvu1XRkleDUWREBJCoeZxjYLKHfwI16ivT2XoE7kcfeLNR3BI6r2 VxAVTlPgUYmZC/Q0R0sTaFPFxIxrVlHW5SJd0yqFZP+84uoLsphPRyXicfP6y9cowz1d d+DXpIDPK/70UxnfM47glZKgpHZtIDHJQRi/FfmVOFuykt5MuuwYkVrXKKXKzef1lJRc +C10SygjmmOT6rxQjvWjT5W1VE2A714ktptXiiJRFykKlbKI/lgoFjb3tgA4xnq6e3qM Jz3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tVeu1mni; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h9-v6si9732049pgr.260.2018.09.07.11.15.15; Fri, 07 Sep 2018 11:15:31 -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=@gmail.com header.s=20161025 header.b=tVeu1mni; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727607AbeIGWzt (ORCPT + 99 others); Fri, 7 Sep 2018 18:55:49 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35102 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726945AbeIGWzt (ORCPT ); Fri, 7 Sep 2018 18:55:49 -0400 Received: by mail-wm0-f68.google.com with SMTP id o18-v6so15535892wmc.0; Fri, 07 Sep 2018 11:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=10vE1Rg1a4/Ko7gX6XRid8jQMjfywWxVHkOwK+8YLKE=; b=tVeu1mniVl5vubhdp0vaissHPKyNiyvU9KdjQFnPVF3MsWnufrPJ1KNWPMfvSJg/q6 7REuqCzOm+EqGm43GUJZqBvAIjIfFpLFySWTJdfM0Pr94W+WKkz453N3Kg3IPrhknyxh +gkzW8xsfZc4Y4eLfm8KbjvgTURe5EDN1jMwVKwsHaAqGlQ3H5++1+49c8+j2fLQPoxc /ttSjGKknpXNJuXQzzyc0a4ZO4HBWlj3pko9GX5zxqfJfgo03+429dIiJoJfdPtjy5GR YpaBQyaStzBWHc0ZvW+bH9MRBoYb46M6szSaj3tmawF2uurydrw5dNMYaFYBIq9GC5Th olAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=10vE1Rg1a4/Ko7gX6XRid8jQMjfywWxVHkOwK+8YLKE=; b=q6wYgrz2hfywuBuw3z1yJqMwr///dKvzBsLz1WK3HZ5atDYfG/cwLp5NCevp+Ufn2g RBj1gnOlztHV1vHaVAHJsc/all/Hlw8Q9XmWYYOwXUSR2G+WE+SSUxtKg0YVn+TC/njn klBpbrDBAmfM+dclCX8ODwD8Gg/5iT45mtWtqYPgnP5emFa3TAmlqtKSS2QNLoa7NLDb IKq3ygJ8wOnRpM50oJwYSGsW6mG4+psZaEE4gk+qx/XiR2MI7gQJTJubjcXQV/vSUJCA Vfc0y7FJ9vhixl/yn1zfuTcQULSMjF7SSH6IfJUTA8x3kGvCyWatDpd8k8YLlejJYs14 tpVQ== X-Gm-Message-State: APzg51A5ixWmIbHobfwdLIBa9bKL5jfDy/h/QlBIGsvMAupoo/2h/kbI inA44rAc64vqxoswd0RlYRE= X-Received: by 2002:a1c:a78c:: with SMTP id q134-v6mr5940360wme.42.1536344020106; Fri, 07 Sep 2018 11:13:40 -0700 (PDT) Received: from ltop.local ([2a02:a03f:4006:df00:c856:97f7:a8a9:88f6]) by smtp.gmail.com with ESMTPSA id c10-v6sm17969030wrb.17.2018.09.07.11.13.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Sep 2018 11:13:39 -0700 (PDT) Date: Fri, 7 Sep 2018 20:13:38 +0200 From: Luc Van Oostenryck To: Nick Desaulniers Cc: christophe.leroy@c-s.fr, joe@perches.com, Kees Cook , LKML , linux-sparse@vger.kernel.org, sparse@chrisli.org Subject: Re: Conflict between sparse and commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6") Message-ID: <20180907181337.peyfq7yvhahduvmq@ltop.local> References: <81a5fd11-366c-0897-4143-d8d041420a41@c-s.fr> <1324e7d6-83f8-f40f-ad34-c46e4ad3139b@c-s.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 07, 2018 at 10:22:56AM -0700, Nick Desaulniers wrote: > On Fri, Sep 7, 2018 at 7:34 AM Christophe LEROY wrote: > > > > Cc linux-sparse@vger.kernel.org > > > > Le 07/09/2018 ? 14:22, Christophe Leroy a ?crit : > > > Since commit cafa0010cd51f ("Raise the minimum required gcc version to > > > 4.6"), sparse check fails as follows: > > > > > > [root@pc16082vm linux-powerpc]# make C=2 arch/powerpc/kernel/process.o > > > CALL scripts/checksyscalls.sh > > > CHECK scripts/mod/empty.c > > > ./include/linux/compiler-gcc.h:14:3: error: Sorry, your compiler is too > > > old - please upgrade it. > > > CHECK arch/powerpc/kernel/process.c > > > ./include/linux/compiler-gcc.h:14:3: error: Sorry, your compiler is too > > > old - please upgrade it. > > > > > > > > > I have sparse version 0.5.2 > > > > > > What can be done to fix that ? > > > > > > Christophe > > Oof, sorry Christophe. Looks like that's the latest version of sparse: > https://sparse.wiki.kernel.org/index.php/Main_Page#News > > I'm curious what sparse expands __GNUC__, __GNUC_MINOR__, and > __GNUC_PATCHLEVEL__ to? Pre commit cafa0010cd51f, it MUST be > expanding them to something, otherwise you'd have seen the error then, > too. The previous check was GCC < 3.3, now it's GCC < 4.6. Sparse expand these macros to the same version than the compiler used to compile GCC. I find a bit strange though to have sparse v0.5.2 but using an old compiler. Also, it's worth to look at what is said in this email: https://lore.kernel.org/lkml/CA+55aFzYEnZR2GZLR-DwpONjMNYGYoDy+6AWLCVNayWiaZuqoA@mail.gmail.com/ -- Luc