Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp574982imm; Sat, 1 Sep 2018 12:18:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY+EqjonDjjrLw/2bTXE4RilLqaCvIEqzAajHplbOTHQ177aBDNDJukL7qtm2ORvbcCpey7 X-Received: by 2002:a63:2f45:: with SMTP id v66-v6mr19293467pgv.91.1535829501772; Sat, 01 Sep 2018 12:18:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535829501; cv=none; d=google.com; s=arc-20160816; b=U/5UrOugVEWL92e18MS8nmAo3WSr3LpQFG7/fVaYcVuPcKBpl/9Qa2TBINpUTljMVz znXmV36Yc6j8+LQWsWZMfuodOO4w9pg4hjSJqflZD/DmFtUnjhz9gmm0WXW7LOXhqkVO KvZeqs0a7THTel7br2C0e4VvGlZHIRDKGaYA/4DDrZIoIH3NQ7Z/oeflJyA4m80tIb5x iArU+deAKXSgmeBFIBF1t3ayqqql8G6oZh3AJAm5LlSAOCyMHOCYTWk8zeU2z4FYPYjN v9GyWm/ASSxMvH7ShGOADeOLhfqVTJ/aIRshJ3V5i27EOjv+/O++BR1SdZVxM/ly6lkQ H5rQ== 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=1VPm/W4Nmvxg9KLbOkc4wCZYnEjAPfkcTxm6onC6aRY=; b=PswZBiYe/t2wECtd2V9CCuoN25tNEVE84ll/rWU2m42FSeinm3c7lMKQaOLE8l7tnJ L0q6wUD5Wh95OhCf2QEGbQzNlM+VKuixZEb1J1bXgYAl9kpfu1R1fLah8eJGRQoslegv ovEQHVsWBqNq6eP+vucYQ0vgNwZQRXODhe5jbTxZjFbrBYAd5bSn5KuQh5IbyrDC4o1P dc3u8T3vBJw/T80MrR34VtwYX1HP4WZ9xa/qTuAaNrTfsiR0QBqgWNnfrGNl284ln9WR MCUUQmN08hVpqZjS03NPNyiHDp9YNfMVULLmU8uY+hJWynKGFlKy0PkEyk34csV1wuIF 61lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dUjDW5aG; 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 x128-v6si12287467pfd.246.2018.09.01.12.18.06; Sat, 01 Sep 2018 12:18:21 -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=dUjDW5aG; 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 S1727333AbeIAX3E (ORCPT + 99 others); Sat, 1 Sep 2018 19:29:04 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:41885 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726968AbeIAX3E (ORCPT ); Sat, 1 Sep 2018 19:29:04 -0400 Received: by mail-qt0-f194.google.com with SMTP id t39-v6so18073331qtc.8 for ; Sat, 01 Sep 2018 12:16:06 -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=1VPm/W4Nmvxg9KLbOkc4wCZYnEjAPfkcTxm6onC6aRY=; b=dUjDW5aGndDCdQ4shqWLG4cZZ30r8/WXLZV3nCvF4fd+YLuEj8PLlzPSF66ynocv3U 9BNzSH2c/1/4fkezSZpmAS9QJGo3r62kQbSG53t8Vcq/IWfel8u74BqncAsMdW74uUg+ 0aJxUMDvm5JrM7M9hzIeHfHId9hMyFLKwogOrANnJo0TxHhrGOPdVUo/yqvUKDu8faY9 fNpo2scSNKPqo7Dv+idnE+gm7Y3jXs1FH0XzUC6PUALl46DwO/OhmFG+taZBJJI9Jqoh dXJ7LbS8NDV4Hq8bYL5nKpkjusAuweki+EAFxjmj4nNgLFJvgQZ7vcwcAmbhnC2ZIjO7 oQKQ== 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=1VPm/W4Nmvxg9KLbOkc4wCZYnEjAPfkcTxm6onC6aRY=; b=Un53f8zG/NWTgxERzweVCKOCfzxaZcVdcTTgteHiCoaZUWYN0fvFoCIYR4HPdzg+K3 5uBnuJxj1+psRgs/OlO3ZwBRe6C5rgFAe2FhVJZLU1WgOdOXvtHxmfMx4HsZpkIa9wBR J+T0PZc7M9pLF4gHwonNMYUaNg1Jr/rqL7B0uHHYLzlEuKSkd7buS/e6txumRvIUzLB7 so3V4qT1CTUq7XHU7LtVEqutH76KNjsj5cR+cCGbZcNmgNCuYFU8/49ju6fHA+qggFrl aQZN8omXjwmtFHSuMn+8fwp5eJ3cIEPef9A4/AvuBLfkeb290BRhPc94C8dA/mtfPo2w W3rQ== X-Gm-Message-State: APzg51BPV1EmkZME4yqeQTplQpFaaarlr6iLtHnCYhtnMPVKJ9QKqoUR HiqcznFnA9XSLLmp1T6GTrtvsw/yRPMTLjN1pTY= X-Received: by 2002:a0c:87b1:: with SMTP id 46-v6mr4131393qvj.202.1535829365883; Sat, 01 Sep 2018 12:16:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aed:2291:0:0:0:0:0 with HTTP; Sat, 1 Sep 2018 12:15:45 -0700 (PDT) In-Reply-To: <20180901183920.GA8341@kroah.com> References: <20180831170514.24665-1-miguel.ojeda.sandonis@gmail.com> <20180831170514.24665-7-miguel.ojeda.sandonis@gmail.com> <20180901183920.GA8341@kroah.com> From: Miguel Ojeda Date: Sat, 1 Sep 2018 21:15:45 +0200 Message-ID: Subject: Re: [PATCH 7/7] Compiler Attributes: use feature checks instead of version checks To: Greg KH Cc: Nick Desaulniers , Linus Torvalds , LKML , Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Masahiro Yamada , Joe Perches , Dominique Martinet 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 Greg, On Sat, Sep 1, 2018 at 8:39 PM, Greg KH wrote: > On Sat, Sep 01, 2018 at 03:38:13PM +0200, Miguel Ojeda wrote: >> Hi Nick, >> >> On Sat, Sep 1, 2018 at 1:07 AM, Nick Desaulniers >> wrote: >> > Overall, pretty happy with this patch. Still some thoughts for a v3, >> >> -#define __visible __attribute__((externally_visible)) >> >> diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h >> >> new file mode 100644 >> >> index 000000000000..a9dfafc8fd19 >> >> --- /dev/null >> >> +++ b/include/linux/compiler_attributes.h >> >> @@ -0,0 +1,226 @@ >> > >> > New file needs an SPDX license identifier right? >> >> Yeah, but I wasn't sure of adding it, since the code I moved (even if >> rearranged) from _types.h does not have it either. Any legal expert >> here? Is _types.h it implicitly GPL 2? We should add the identifier to >> both if so. > > It looks like we missed that file in the big "properly add SPDX > identifiers to all files without a license" commit as it came in from a > different tree. > > But yes, it is GPLv2 only implicitly, so you can add that. I should > sweep the tree again to see if anything else has been added accidentally > with that same problem. > Thanks Greg! Will do for v3. Cheers, Miguel