Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp379720imm; Sat, 1 Sep 2018 06:00:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdawedJYSsrbXlxJ6/1ZHnKdSfnPVNuyqmbOaXFKgwr+wnfL3JNL4DXhrTr13izjrETOEo9K X-Received: by 2002:a62:20d8:: with SMTP id m85-v6mr20572210pfj.74.1535806826740; Sat, 01 Sep 2018 06:00:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535806826; cv=none; d=google.com; s=arc-20160816; b=MAYs9WunIa0HL6fzvOSRcQ54kla4kxTvwODYC+IipqCz9GyYelCHAzL0DGV2FUX3sd hhfeMOQ3Z6khj8HYj1zawRwCNbmaR+4pPb+l4u57XQ7Ruq9gv3OqmmO2TK2je6oEfnLQ jafX6kySBCC4ksj94847RW1VXkXuB/tI2mEdF6KTjYR7v4OD+K31nLfx00om9AcgDHKD hIwGx67pjwWVp+Ul++fGQ5/gAjEfWtxy3yCL+AP8vSyOhYHTqHClvlMrWvowUUPHc2DD Q4nD9Hi+lSXLzx3hB83B/2pZDf35yQOIFRkOK/MMBUI14GbVDhHEFExtDGGfM1x4q4zE kLfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=soLIkjCimvaLklnISTOpLPeVHQRO/fuxRRL77spNXxk=; b=NRHdIKtotc+HTjVTx2D558yBDTJFBtF//Wh3/aVtoNbMMYckRVVsFqjeuuRRJ5+P/D OZT6Hux6q0SM64xnsA2szPsOGZKU+CadddM0cXJAKFqOd7nE2A/U0IKyM0zMjRdnKBOE KAMs9IPNwX5RuBQua8gP4s8DFq8bO6bvoicAA38tKWUQsGXUoLnfvnSRptC1Et1YhnA6 mE1xdDDcnBDl8hZYwALEjTl+yGpMxdX+t1Da9gBxoY146QZP7iWx70OGdq9ph4K/7BGo FCM1eJ6t2imlvQ0aMvFl/qow8AmrEhT7hme+2V4F3ks8hhQIYE07Pj4els8aKiYM993J kkzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LrwbVlod; 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 g3-v6si12323002pll.395.2018.09.01.06.00.10; Sat, 01 Sep 2018 06:00:26 -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=LrwbVlod; 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 S1727425AbeIARLF (ORCPT + 99 others); Sat, 1 Sep 2018 13:11:05 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:42369 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726430AbeIARLF (ORCPT ); Sat, 1 Sep 2018 13:11:05 -0400 Received: by mail-qt0-f194.google.com with SMTP id z8-v6so17465778qto.9 for ; Sat, 01 Sep 2018 05:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=soLIkjCimvaLklnISTOpLPeVHQRO/fuxRRL77spNXxk=; b=LrwbVlod2OVeKoac+m5ia1ofDj58kFd7KXvsBEhF7+9TmBfUroFZ6KaA9lJLVkHIq9 tRDLgIDWuT5tVYWoixVWun7fURWU7vK/NZQgKPbM0c3ngHSHffQR6AOc2D1wRkhpOj2Q bIRorv9GZ5cpsDy3FS0c97d+uMEKV1eG8+UPNhClBuywTsXD7dXeiyq24Qrs9/Gcr174 kucpIwmmulResZeq/bQAM3xHJREYqf0txGXGxiutCgpuXP8HFDOwmyUFwP5pKYwBnNOB 5vYWd8C6PZoy6LcCdk+cQiLAYGeZjYXP7K2Vkz8WWMJ4sDgXiQ07EZHBqCg2tz3a+8BO ce1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=soLIkjCimvaLklnISTOpLPeVHQRO/fuxRRL77spNXxk=; b=B4MlE06diTp/QH/G4OqpYz8KPtB+mPdQezyc9Zu3h8iwmK0UPuMnZGVo85SJ6pKEtl jcYPibDu2dfrZ9yTPQ4Ed37nVO7mz4YcLr41AkUSoug6WeTgVR8VOooELaskZtG9twnj WuxklPLsU8EncN6fVVeUGX6RtDq+rTIlZWj8cpe3XAJ5ETQ9iRnGzLMK/NEysYB83pRy bGfSpN1GDV9mGcHqxEEmd+dGsJhK3J8lcxGzxj1Svme2V8QCyqRQyTaLVHAdMOD47lf6 CgUl1wO1PVqIyPuU618blZHMZdz+aYUjX8crh/6usBjoikFVsDbu0863yS+nvqwZ4STs 3+1w== X-Gm-Message-State: APzg51CyAIqWsXr3KqxMCn4n8JmCOrk3w4PvMFxzNlCR0R9Ys5e62z34 HfqhrKzkE7C4gNIvE5U73TpiIuayAhxHe3yCjCLadMC0 X-Received: by 2002:aed:3fd3:: with SMTP id w19-v6mr19688527qth.226.1535806745404; Sat, 01 Sep 2018 05:59:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aed:2291:0:0:0:0:0 with HTTP; Sat, 1 Sep 2018 05:58:44 -0700 (PDT) In-Reply-To: <20180901095639.ms6kkzywazkvs376@ltop.local> References: <20180831170514.24665-1-miguel.ojeda.sandonis@gmail.com> <20180831170514.24665-7-miguel.ojeda.sandonis@gmail.com> <20180901095639.ms6kkzywazkvs376@ltop.local> From: Miguel Ojeda Date: Sat, 1 Sep 2018 14:58:44 +0200 Message-ID: Subject: Re: [PATCH 7/7] Compiler Attributes: use feature checks instead of version checks To: Luc Van Oostenryck Cc: Linus Torvalds , linux-kernel , Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg Kroah-Hartman , Masahiro Yamada , Joe Perches , Dominique Martinet , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Luc, On Sat, Sep 1, 2018 at 11:56 AM, Luc Van Oostenryck wrote: > > For sparse (which doesn't support __has_attribute() yet and defines > __GNUC_MINOR__ depending on the compiler used to build it) it won't > be totally correct since the concerned attributes here will be > incorrectly considered as not supported. But, since these attributes > have no semantic effects for sparse, it won't matter. > > So, for sparse: > Reviewed-by: Luc Van Oostenryck Thanks for checking (and for the sparse patches too!). I will note this in the commit message for v3. Cheers, Miguel