Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp891969pxf; Wed, 7 Apr 2021 14:18:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYedpk7Pp+rAtSySApui3grT+dWR/Sy1WFNedOIzl5OM7n8ukpkWw6w9sOCbMHpSHjtAi+ X-Received: by 2002:a05:6602:280f:: with SMTP id d15mr3954702ioe.127.1617830309443; Wed, 07 Apr 2021 14:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617830309; cv=none; d=google.com; s=arc-20160816; b=Yp/PCN7Ow9LgpgZOyUjKKPAdgI5D9Mz7r694Ur5V42GeovuoGzTn+93V0772xTYLAN Je2Mu4D3JlS/hnTSCI93qgui+2JmPspRiNpNzkeMhhTzmfhq3sW4IsD7uX5oYUeLjv4R X8oFPttvLK2FJg3qvfIDTFM3e4Zww8ujBMYothu4wkfYXjtOgQd4ZZT3tqpd/TWHcSRj iaBg/5OntQFwNX+b2gOYtPEosJYHKPbMG2SJKba2TxZnVkpKsHPz0jRaumrLzNTIVMFz pJycG4hlCBHPlNr4aR+V5f2uzLZ70mjRVUryQF4iZAK+3r/ids3D81nxI2SQtdYY27vZ Oifg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+M5ErOA6vMHXgHMo812hqipKBEarvAzxNuznNu4dPh4=; b=oEcb1IIJsjcnl8gzu9o2zmCgcTopFKDJtY7N2lEitqBlDlfdgmLOmznqtgHrtPWZve cliMvYoSaYNXV2XBK52hHwX9F5/cBX8o7+veeca4WBm3GADUZUMSMkt7zKNvVrC27Iur Wovdgmdj8GmfAcVXr+/aJk/TSn7jn4ir+ywLcv3nER900dw76ll0QafqsFdGT+h6heXd dNZeuSJjLWioDKztnA9oSn/rouzgJXRiO48rLYNoYKfZ0mA1M6eWVwrR1HqpzQlSfMIJ UXh1butnwfNFi6Xi9xPfDEbHOEaRwApbv60invMZOGk6jtVp6JY/xzicvCVp4Li2ZKQ3 iGkA== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x14si3750026jat.96.2021.04.07.14.18.16; Wed, 07 Apr 2021 14:18:29 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353578AbhDGPaM (ORCPT + 99 others); Wed, 7 Apr 2021 11:30:12 -0400 Received: from mail-pj1-f43.google.com ([209.85.216.43]:41609 "EHLO mail-pj1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353563AbhDGPaK (ORCPT ); Wed, 7 Apr 2021 11:30:10 -0400 Received: by mail-pj1-f43.google.com with SMTP id z22-20020a17090a0156b029014d4056663fso1531594pje.0; Wed, 07 Apr 2021 08:30:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=+M5ErOA6vMHXgHMo812hqipKBEarvAzxNuznNu4dPh4=; b=jsvrsCk2USuWmPdJ3aMJwVWzy7393uAv08mKvsKYFaJ3jCz3VVW+3ptyPpHt+GKx4l gu8PPEPO4ABq8AYUHGQRdtU2WGDKbxNh+d5+9X6fZqZ0bFodVnAgSlVZkClleG2AZ7/r h3FWStbOqUeG0Z+tP0bxzNT5xF5sJ9dTINsUIQh9Xl4sC7+4A7Ekvo04F2GemAkmhlrg H0euxVew93XQify4f3rbwJ4GvC3KOWGRPprBA2i2BqONFdVEMF65KAfxK6p20CvOCcot yITsnojVRMOplQSR1DucFSuPOKLIdUhJXRLk+0tZRNqQLMG/GN5QHESxap34pjxgdthM zdmQ== X-Gm-Message-State: AOAM533kWqDVeQEz732forA2TcK+LLVu5mlJfxMUpn4sSA/RFy4gbEcA ZwqJzgEcQKtv84CmXQJ0khs= X-Received: by 2002:a17:902:b210:b029:e6:33b4:cd9e with SMTP id t16-20020a170902b210b02900e633b4cd9emr3418197plr.67.1617809399828; Wed, 07 Apr 2021 08:29:59 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id f65sm22129550pgc.19.2021.04.07.08.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 08:29:58 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 00948402D7; Wed, 7 Apr 2021 15:29:56 +0000 (UTC) Date: Wed, 7 Apr 2021 15:29:56 +0000 From: Luis Chamberlain To: Andy Shevchenko Cc: Andy Shevchenko , Michael Ellerman , Joerg Roedel , Wei Liu , Michael Kelley , Mike Rapoport , Corey Minyard , Bjorn Andersson , Mathieu Poirier , Andrew Morton , Tetsuo Handa , Vlastimil Babka , "Paul E. McKenney" , "Steven Rostedt (VMware)" , "open list:LINUX FOR POWERPC PA SEMI PWRFICIENT" , Linux Kernel Mailing List , Linux on Hyper-V List , openipmi-developer@lists.sourceforge.net, linux-remoteproc@vger.kernel.org, Linux-Arch , kexec@lists.infradead.org, rcu@vger.kernel.org, Linux FS Devel , Benjamin Herrenschmidt , Paul Mackerras , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Corey Minyard , Ohad Ben-Cohen , Arnd Bergmann , Eric Biederman , Josh Triplett , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , Kees Cook , Iurii Zaikin Subject: Re: [PATCH v1 1/1] kernel.h: Split out panic and oops helpers Message-ID: <20210407152956.GE4332@42.do-not-panic.com> References: <20210406133158.73700-1-andriy.shevchenko@linux.intel.com> <20210406165108.GA4332@42.do-not-panic.com> <20210407143040.GB4332@42.do-not-panic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 05:59:19PM +0300, Andy Shevchenko wrote: > On Wed, Apr 7, 2021 at 5:30 PM Luis Chamberlain wrote: > > On Wed, Apr 07, 2021 at 10:33:44AM +0300, Andy Shevchenko wrote: > > > On Wed, Apr 7, 2021 at 10:25 AM Luis Chamberlain wrote: > > > > On Tue, Apr 06, 2021 at 04:31:58PM +0300, Andy Shevchenko wrote: > > ... > > > > > Why is it worth it to add another file just for this? > > > > > > The main point is to break tons of loops that prevent having clean > > > headers anymore. > > > > > > In this case, see bug.h, which is very important in this sense. > > > > OK based on the commit log this was not clear, it seemed more of moving > > panic stuff to its own file, so just cleanup. > > Sorry for that. it should have mentioned the kernel folder instead of > lib. But I think it won't clarify the above. > > In any case there are several purposes in this case > - dropping dependency in bug.h > - dropping a loop by moving out panic_notifier.h > - unload kernel.h from something which has its own domain > > I think that you are referring to the commit message describing 3rd > one, but not 1st and 2nd. Right! > I will amend this for the future splits, thanks! Don't get me wrong, I love the motivation behind just the 3rd purpose, however I figured there might be something more when I saw panic_notifier.h. It was just not clear. But awesome stuff! Luis