Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2076160imm; Fri, 7 Sep 2018 10:24:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbZxum+012++r7t6aWi1QzbYD3PJfAGchDbHG+EPSqzDtoVmkdQs9/b62zRQ+nUNYbqWTgJ X-Received: by 2002:a17:902:32f:: with SMTP id 44-v6mr8917914pld.15.1536341078448; Fri, 07 Sep 2018 10:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536341078; cv=none; d=google.com; s=arc-20160816; b=voJnO+t+I7EmZ7W/7SQi/rPYKthDLRxrOGKCjgdkuPHKUIWOOTDe9eGff1U8HGCUhL 8GEVPgSar6ju5MOwV1tpk4240UidvcCjpC9yPPF5RWc/UUG6Eixm+UYMt76qLupGCLc3 QNLjXSDnmYf4VljLAWchV7Y9hRZrgjupcXi4q7rZ4K3VTAz5/FK5hoPx5rapsbxBE34x tkpTfCHEKnMqKVZ5xE7bfZZaDIIi0MyWfqWO6XSPdnPOh8Gv4yRJLff1+QPE6X5ZXrqB SWk3BeqVmD9LfEkkiJYLtm/gqwzqVKbylsMzN+VgmwyftX72pCLN+IzAS+JMrOAgBydC B9uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DN3m2MP7rDI91Tlof3J+3B82j9mSSJrQY/U2pgTSkGU=; b=HL5ov0M7JTGxR6BToLtYjRTy8ynebbaUPBhT6F+B6s/cD9kR2lSVJQEBASns3tsKHh H7IMdaDjYUvYMH60mpgLZDg39Xdsw5EtPbZVhpLwH81Le4wfHxvbb9jCaqkyGI3T/E3T PTB6h43rmhIehkEga+b1h914GFOTnLsqCVr3jyTtHnP014/yRBVWh2TYyiKk1DAbEDir 2cgE4Ch+U0G6zNwBkEMXBfMClvpD5J9F5bX03pR2ndDfbZOjhAv9oS50rD/L+zWOpi7k 8iNTSsqpiEd9KwGoFOY6O7ptjb0A3h56dHKdn8JojLnNtpu4tUlTxP5VlPPqn2/LT+Uv JcJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KQG+ILcS; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5-v6si9155193pgo.197.2018.09.07.10.24.23; Fri, 07 Sep 2018 10:24:38 -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=@google.com header.s=20161025 header.b=KQG+ILcS; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727579AbeIGWFE (ORCPT + 99 others); Fri, 7 Sep 2018 18:05:04 -0400 Received: from mail-pl1-f170.google.com ([209.85.214.170]:32812 "EHLO mail-pl1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727368AbeIGWFD (ORCPT ); Fri, 7 Sep 2018 18:05:03 -0400 Received: by mail-pl1-f170.google.com with SMTP id b30-v6so4599802pla.0 for ; Fri, 07 Sep 2018 10:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=DN3m2MP7rDI91Tlof3J+3B82j9mSSJrQY/U2pgTSkGU=; b=KQG+ILcSPJMH/J78uUWNQ5ZDaiuHMlUg9+UCAGL4dte0Z97f6vyMqZt1aIPexUc1o8 imeY9WKd0s+MzoQdP2PwIHIq8vKBuuC2gVnPrtVRwvX4vej2mXNuDvxaMTNcDS9VRZzJ Iavds5mJ0CWeKCjqV8pHDI7ov8eFtM+OfYoGRdDZ2rm7aRaXzv6dHMLxEV7pMYtmeoDy N6FN3qogMqQgS40BXS2HoQhh97vYyj8ReOkq37tRckW5NwZhrjm6uxsqaQ4UBDKrC2Ji E6V9tM5AXd+GTn2fPa7myzfTo8bapG5lrcOZSYhGxiG9leuB5VEaKfZKqEX1ck+iavvf JATA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=DN3m2MP7rDI91Tlof3J+3B82j9mSSJrQY/U2pgTSkGU=; b=JgKrYvpX6LcurW6R8gwy2ZhrCzwJ/NKmcTCLl6K9mP7Rv338bpdOazj4k40c6PtZic 8HzC0JNNtznIZEV92Q3yLaKG1IVzS9P1ZSmJdgA6ErAF5NTUgXQd6a3VZmbsrwfK72TY vUHs8G2eLSVe5pKDVeeBXwtGvJMY0QIMkqXczIhm6gbw75JkFbWJmQzaxLUgMb090/xU ouyMpaMvNwwftv0ic1MpyvUwHqkX2pM2CL4Ye8hGejpRtKY2mwkeXuQRlnO84T7oGKjK D34sVfB9YZogSGhty2lltdHHfh2c3q/qm5zJoxNcZ/IbDrgiey6juE7taNMMShkv6X32 tT2A== X-Gm-Message-State: APzg51D6G2ASJdALYITAeWH82Zqsj9taVXplCK6d55Ap5MCdQm9Eix66 RonRtHG3NxK7i0gSNhR6d6gqWIR43H47+EVZNIII8w== X-Received: by 2002:a17:902:7102:: with SMTP id a2-v6mr9023918pll.217.1536340987614; Fri, 07 Sep 2018 10:23:07 -0700 (PDT) MIME-Version: 1.0 References: <81a5fd11-366c-0897-4143-d8d041420a41@c-s.fr> <1324e7d6-83f8-f40f-ad34-c46e4ad3139b@c-s.fr> In-Reply-To: <1324e7d6-83f8-f40f-ad34-c46e4ad3139b@c-s.fr> From: Nick Desaulniers Date: Fri, 7 Sep 2018 10:22:56 -0700 Message-ID: Subject: Re: Conflict between sparse and commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6") To: christophe.leroy@c-s.fr Cc: joe@perches.com, Kees Cook , LKML , linux-sparse@vger.kernel.org, sparse@chrisli.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 7, 2018 at 7:34 AM Christophe LEROY w= rote: > > Cc linux-sparse@vger.kernel.org > > Le 07/09/2018 =C3=A0 14:22, Christophe Leroy a =C3=A9crit : > > Since commit cafa0010cd51f ("Raise the minimum required gcc version to > > 4.6"), sparse check fails as follows: > > > > [root@pc16082vm linux-powerpc]# make C=3D2 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. We could change the check to: -#if GCC_VERSION < 40600 +#if GCC_VERSION < 40600 && !defined(__CHECKER__) But it would be good to know what those sub macros that compose GCC_VERSION evaluate to in sparse; maybe they can be upgraded in Sparse unless they're matching __builtin_*() compatability? --=20 Thanks, ~Nick Desaulniers