Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp710666pxb; Thu, 2 Sep 2021 13:14:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0g5vjevtBJBrCHRN7HUBHKC91ZDLu5qPi+SgcQmHwUyNscReKGkdH/70SMSZTIxHk7ETT X-Received: by 2002:a17:906:8468:: with SMTP id hx8mr5611408ejc.492.1630613645095; Thu, 02 Sep 2021 13:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630613645; cv=none; d=google.com; s=arc-20160816; b=Xy93yg2rwudc/8wBI4dnFfbAH0K6dDvaeHGZoS2YaSCULKC5B2TCClERj/jttCZp2/ JnVtlJuLagCa7PUMr4uoFYA78k41K8ukzEzvBpclu9H4P8b47L0WtzzGE+dq4J9ei1BL t6hq65s56gnJu9Gp9FmDo6/fcnHAPkfRp7fWXLfZJNX+7lUWDyQlwEWIJjjLhJj5nXw7 QxXqUG4Sd5182134GC9iOuhz2RuZ1WPkLFAi0jGBd57MmxpwFYjz8zM3vLQBOEUDNhWG vd+TeaOfQ4MOeprrNecYjER4HoFF+EyYJ9sohxv1BFty+T4NZtDxX8XV9zE8YwAnei7S pqbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cRSdJMrEAQZ3ln6whQqTjQVnLVFP0/+gTx++A3ONYf4=; b=GpgG7vCwnOgDi2COSHDd9OChlKr9oRmO8KAF0S/vzK2MPK65WINszncJeuPAXb8qtt PXcTutmZFoJgDZx7YobudnOZ/xCixv8vTbP4ubZhaESLjdTthAJ9+EFlzo4RNdKSfLA5 jsbFtdBzH7l5z2Eipxmi92kU4TGVIgKqnW7Cw13xvcRrbpVMWt5vLRr8oyPpwW8A+oQS twtftbtFMHV6RHlyJyQg8otl1XhIQ/JIb5sqXCkYuwOslKMsmYpQrsJcf0IIh9Ygyet+ vqpz2sTqn2uf5g6SpvfOPOjpYmCb1gwoBGV+7WvUwiGJJXV3eGyhBryG9o431nyo1uil 1K+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nt2b2vGM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id du10si3081493ejc.547.2021.09.02.13.13.34; Thu, 02 Sep 2021 13:14:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nt2b2vGM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1346557AbhIBRUS (ORCPT + 99 others); Thu, 2 Sep 2021 13:20:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242982AbhIBRUR (ORCPT ); Thu, 2 Sep 2021 13:20:17 -0400 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E421C061757; Thu, 2 Sep 2021 10:19:19 -0700 (PDT) Received: by mail-il1-x12e.google.com with SMTP id a1so2583842ilj.6; Thu, 02 Sep 2021 10:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cRSdJMrEAQZ3ln6whQqTjQVnLVFP0/+gTx++A3ONYf4=; b=nt2b2vGMZNqBZgiRnEaDloVqz+kQhT0EpQVxuan/SRY1CmuPrNg+yCi7SLZZOSmhBY NefD/jKRoTZuj+iqPY30sdMG7iaAkONX1x/IgleMHLy9fM7+0G87gozuepvZNvYhxd55 tkd0XvsX2nrfCcWloTAP10OswAP7PBIR16QZAafZAKJWvcpPipgp33oZSU/UxRwrRKVm +jjGzJ3c7yyzS8FY7lTxBbtfn8LrX8zjzMqV/50CDsrNpLDmGK8qkMaJZtJ/QXMTO7Gc X++BYzJSBDoLEyQucMqiB0eX87kXC7FjlB3T9DvK2kIRnTfZeE+9MAHuGlkCLVh5qsUG 4AYw== 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=cRSdJMrEAQZ3ln6whQqTjQVnLVFP0/+gTx++A3ONYf4=; b=ecGJEKYgmMMttWY993rb9qnsiiOlYMf1IJQV2vUGjikMG4i+Y37ZIFGGCYMqojwEOC uthwuS4CMMj6ftq+YFhAO/N0mzHWClk0MrgjvF72x965GxLem5b7oQRiXAp5+kbEFZaJ EHulrIKazbykYs/DLdMVU7XemzByQNl4UmRqTfSL+TlzxDUzyF8Mj4tM6CX6BGEBguqE UVLQ5xYkchIBWHTNJumpKcvow3JWygP6WFagSxp1smImnmBPUUFz5IC6JWXkEkN0bWSq M//6bURMYKFaoZfpGA//d7WC7CwjamoKQamPLvPY5mnATG9m56OPMj3lqcyq40ThOQbP nMaA== X-Gm-Message-State: AOAM533ah2s63nS+SlQ2OdFaTxog2WkE4QYrOaUbufrm5rdTOxg+FT69 HxUeVtLu5Z9lu2thvP0cw5/mQpvfSVVU/sRakJ4= X-Received: by 2002:a05:6e02:2183:: with SMTP id j3mr3131941ila.149.1630603158758; Thu, 02 Sep 2021 10:19:18 -0700 (PDT) MIME-Version: 1.0 References: <20210831175025.27570-1-jiangshanlai@gmail.com> <20210831175025.27570-3-jiangshanlai@gmail.com> <1f327579-e62a-df65-0763-e88243829db3@linux.alibaba.com> <4c589fef-8c98-a6fc-693f-b205a7710e42@linux.alibaba.com> In-Reply-To: From: Miguel Ojeda Date: Thu, 2 Sep 2021 19:19:07 +0200 Message-ID: Subject: Re: [PATCH 02/24] x86/traps: Move arch/x86/kernel/traps.c to arch/x86/entry/ To: Nick Desaulniers Cc: Peter Zijlstra , Miguel Ojeda , =?UTF-8?Q?Martin_Li=C5=A1ka?= , Lai Jiangshan , Joerg Roedel , Lai Jiangshan , linux-kernel , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Daniel Bristot de Oliveira , Brijesh Singh , Andy Shevchenko , Arvind Sankar , Chester Lin , Juergen Gross , Andrew Cooper , linux-toolchains@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 2, 2021 at 7:05 PM Nick Desaulniers wrote: > > The above 2 hunks should go in include/linux/compiler_attributes.h, > but yes. I'd been meaning to send such a patch; it's nice to have Note that `compiler_attributes.h` does not keep attributes that depend on config options. On one hand, I feel we should put them there. On the other hand, I want to avoid making a mess again since the purpose of the file is to keep things clean for the majority of attributes. Perhaps we should do a middle-ground, and only allow those that depend on a single config option, i.e. no nesting `#if`s or complex conditions. Cheers, Miguel