Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4484949imu; Sat, 19 Jan 2019 10:25:55 -0800 (PST) X-Google-Smtp-Source: ALg8bN4El/XascqseA/k6hIYpIDw+9ORtGb+JjcA7uP5sfjtTl3n9K09EgVyRwi5R6IYUnt8PDu0 X-Received: by 2002:a17:902:820d:: with SMTP id x13mr24456309pln.229.1547922355561; Sat, 19 Jan 2019 10:25:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547922355; cv=none; d=google.com; s=arc-20160816; b=dyS9AOe+dsLZdZzsvM60oL4c6OeK7e8JeWN/BrAekjIgw/JbCT+JzDN7JjNU5r8Nq5 mx8L1A4Ez//zEHh/Qg1GoxCPbgAAyUz8mTIJBqTDUTSjecqJm3SkoP3r5HSkTndzP4Mj M+YSwkHzO1S47p09dr4fPxzJZVYzDi2ak7YPoRDd1L56atx3C4Rg+x5Jq1ddSMj2BXyn CgkZGFXzE7ZJqeeCOWEAycA1qSQd6F5pqYS1HecVUdVv8Caa0oLbc3B0mFPsxj2IEHU6 PtK1jcc6IRNz1LIKuoxpfk1h6QUFd2ngubP94Tiw7/2Nw7ZmlLvq1PstgiFH8vdIWPdY lzeA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=8P9Z5K7dai1JIkcTeJv8ZjOQyR1cmQi2SKstA+YXos0=; b=Aqp9Ssw4Xst9+jdULUx2Tlear2St+gf8frvchF4jWtWcep8jXiomtsEL3LYhrBkyYy cFZRKEyqcjX+GmcMXjlg7Dr8mqVElOgpIcn+dMmG4bbWHNmdA4KuYlWANSR5h1HZ/+j+ xDCg0oNHwglKV1nZ6ese+ebqm32UiqZB3LltBYsLvsxBMjlhUVGn3ETKYH/b7vvjOv/X 32VFp+OglTXa1fqmdisbSTwJ7RAR3/Z7eiS3VRL6rmu/f3VjsiBbfqHsn20Ca59QnwNO KDkH0w1sbe6j2g8GBhLUXOnPZv1d+OEKUxTAlw3nvC8Ff/OQhpdBye+tLkgdd6o/lHqO F3ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sb225b79; 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 x32si7808848pld.316.2019.01.19.10.25.37; Sat, 19 Jan 2019 10:25:55 -0800 (PST) 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=Sb225b79; 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 S1729274AbfASSXE (ORCPT + 99 others); Sat, 19 Jan 2019 13:23:04 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:43542 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728866AbfASSXD (ORCPT ); Sat, 19 Jan 2019 13:23:03 -0500 Received: by mail-lj1-f194.google.com with SMTP id q2-v6so14275757lji.10; Sat, 19 Jan 2019 10:23:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8P9Z5K7dai1JIkcTeJv8ZjOQyR1cmQi2SKstA+YXos0=; b=Sb225b79lvsQVt13aI7wFSxrUtUPFMrpW3BNvZb2gIrhpWrR9eC9D5Iyga9rrDI0aJ f0lOF/D7gkronqOOrq2zZUTU+Ip/wby8MSxvRidl1NPpmN4g0+2Q2/0IT9PQC7dHpwA/ TyxiQphPpQR7MXAyCoOqMgKkYrnQJEH+1moUuQpYZOauZAg6YzOfPRhXE6rHxb9ZKVvM D9xuSLnQgsbSkGG5qkV+P7iGdYY2JZ6dS+flwEEPomOvwAqXa1tuPIPWUm43V3Q09Xgz 9PJKVKdMg5I+OC6J8+jVM1tIZH0XqeN/KblY7nCps0cQe2O6P5QSOwWedLCQRZKmrHNR DzAg== 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; bh=8P9Z5K7dai1JIkcTeJv8ZjOQyR1cmQi2SKstA+YXos0=; b=ZrdaJKzFTQMEzpwfgHMB/Iro+tKuxiA8MhuQaspUhTL19cnTTWDjCaeT9pTl5MKsXz MP2KUqMKUGuwPBbQNl96tHBLdkA3HHAOaLe4kCFRgoVIHcjAwAIWJxkTFx80NC1yo4jW XUJ80L5NDAu1nccHU2CUjOLA4hBdEqA9DZhRjct/GclpCmtFXbcBfwbChVBeC7I5MFl6 u2H2MbkoWAksG5ZbhSSUoqIRiVLz/XY6uxXdjhuLPsOXhf2JVG6Y6UudW8mlaj0njhBQ ghVeEqV2yNyLF2o9cehRzXhVBu+Jw5/vHhgwB6hvAjWEf9812BEKVWJCDW3qj2OO+hoQ TW/Q== X-Gm-Message-State: AJcUukchsPwaBhHGBtselvN80wXtnvE3jmfovc4z5PK1RZPfJ8Ucmgsq VbW6ocLs/Di96upZLZKYy6JUU7usCd/3POB1WK1ehIflnz8= X-Received: by 2002:a2e:83d7:: with SMTP id s23-v6mr16156905ljh.139.1547922181349; Sat, 19 Jan 2019 10:23:01 -0800 (PST) MIME-Version: 1.0 References: <20181128140852.178260-1-liuxiaozhou@bytedance.com> <20181129021635.rzmehzzfgt2jvpgi@bytedancedeMacBook-Air.local> <20181206123926.q5gd5u62vg2u7s5w@bytedancedeMacBook-Air.local> <20181206124957.GA22907@kroah.com> In-Reply-To: <20181206124957.GA22907@kroah.com> From: Miguel Ojeda Date: Sat, 19 Jan 2019 19:22:50 +0100 Message-ID: Subject: Re: [PATCH] Compiler Attributes: move kernel-only attributes into __KERNEL__ To: Greg KH , Nick Desaulniers , Xiaozhou Liu Cc: Network Development , linux-kernel 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, Nick, Xiaozhou, On Thu, Dec 6, 2018 at 1:50 PM Greg KH wrote: > > If something is fixed in Linus's tree for this, I want to take it into > the 4.19-stable tree as well. This ended up in Linus' tree before the holidays, i.e. 4.20 has it, see commit 71391bdd2e9a ("include/linux/compiler_types.h: don't pollute userspace with macro definitions"). In case you want to still backport this to 4.19: you can't cherry-pick it without conflicts because some stuff was moved around due to the Compiler Attributes patch series (which also went in with 4.20 too), but you can move the macros like this commit does. There are 2 conflicts: * The big block of macros for attributes: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/compiler_types.h?h=v4.19.16#n189 * The __always_inline macro: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/compiler_types.h?h=v4.19.16#n275 All those are nowadays inside __KERNEL__ && !__ASSEMBLY__, so it should be fine to move those too along the rest that this patch moves. Cheers, Miguel