Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp887527pxf; Wed, 7 Apr 2021 14:11:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHmVBUhGLVswQVPZRHbod5iRLODbhT4xbVPiR2sQ9PMJSa7pQx70zU7fO64/M21cfvgGX+ X-Received: by 2002:a05:6e02:e14:: with SMTP id a20mr4323014ilk.282.1617829866739; Wed, 07 Apr 2021 14:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829866; cv=none; d=google.com; s=arc-20160816; b=hcAdwqHDgJaaMpUptpQEXogj7mtMGQDhiyvm2lkZJUWOzIAqQquMjl1E+cuTpqE6Av xl7Gef95qbcic+lMrMx4orZb1Di5c5XVwOTgxLE45/hr8KInPLAFLAkz44RN72mUdmRX dtFiumD0Iep1bJfAeuOjMVhzBM1BLEeA4cE0Fx6/GwEFyBk+SNS4vak5Bj2zovrc2j2k oHu7QPVop54voHCdxZz+BQqz7w93jId4qSeFCzeEMst44EIoEVAkwlSyKH40HsxAv32l H++7v4AlllBlcachLDfA7Nrbjw72hpXOXITaXgq/EJfJY7VUdJ/+qpXxYwy8zXqZjtOK ++rw== 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=r/d1grSpme2mQqHlJWH4I0IMbDUguqI3gCUkY5Nr1Q4=; b=OXspJzhviPu8rvh4Xfs+h6kOsSH7qz75CC3K5j7EN6CrAuRWteITJVAOf+pMJvPWNR LKEtnOabOLw3wIeW8IRvP1s62fd/6jNRWHOCJLa5FZe5eKSZRYmuHsmUNrERXFe7TG8w k9VT6unEkAvUSXcX59+5LmUSpcTh7J1KCa49BXkEotjxqTAAQHZFeJ3epRlY/R13yhHU qOS3PZyvGUBlSHPc0AZphGb82n4sVEWCbOFDpvtwVGVLNNp8Rw1kwKVL+f8wCWJgqSkF Az3UT5VjqQ/QvXfPCAaD3hqb6SgnUfTIrbBXtxms8fSEX1tQR4m4Nx+C5IB/iPU6Dow1 QbNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fYy1lWNP; 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 u16si6707988iln.93.2021.04.07.14.10.52; Wed, 07 Apr 2021 14:11:06 -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=20161025 header.b=fYy1lWNP; 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 S1353245AbhDGO7x (ORCPT + 99 others); Wed, 7 Apr 2021 10:59:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353220AbhDGO7q (ORCPT ); Wed, 7 Apr 2021 10:59:46 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BBAEC061756; Wed, 7 Apr 2021 07:59:36 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id t22so6111827pgu.0; Wed, 07 Apr 2021 07:59:36 -0700 (PDT) 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=r/d1grSpme2mQqHlJWH4I0IMbDUguqI3gCUkY5Nr1Q4=; b=fYy1lWNPXiQ+yb67ebJZu+8zEC+h0pBnsXArakBNChEkh6CjoRMYl72lknBCAuRuX2 jxuH9EpzzGDSCJWIUX2Ng7q0y9vsIP4Zr+Ek6u4yFt20hudhezjO5DOYAIxN+UZB5hMM FswWwQr3PpOF1lHlMFl2SjtB1/0Fx4MrlsWZAZT4dZpOxE8in8RosRGUfdrKX/M6x4Fq inZiwEl3DvszVRA5j32WLhIZYUUNpVuXdnve6hiU7XgFQUrk2IG/GFnBcXcqK58X9Wrd bbLLNR2m9dcbokFkoo+uH9b1jOTr6jOD6OdvmDZN/EImsXC0vxwvNHIMR6Dr2vU22cdq YTtg== 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=r/d1grSpme2mQqHlJWH4I0IMbDUguqI3gCUkY5Nr1Q4=; b=CwV4SfJ5T9ynaA7+mggevnUvClo01FL40NS8lBx81l2cq+igOxHk0kGZlbIVC9/ISG EyWuAbQ8gpCwbEEb52k8OYYKhn4x4xEV3rqw3MLC7bOyB6ZHKA9OqxJMDHz60j1dTRQj PLYAv/JR5AX65zn2RuOcIkVMjwMyOGbuw0/2uix88YLWnjYxZDznWZESQgjGzxim4wa8 z7uOMl86wolFhhsVdGsI5z+nmySamZz8reo2EIhgkPTr1IxNaU8KRSkmGrhOINSdtcKs 0xAOa+wQQ8mCnglgWzdYomOgsQVJfSrMKbUHkKNeRY2qSnQzVFj7XfOiHg/kXzJVekci cwRA== X-Gm-Message-State: AOAM531nqK+plWXtEn2WEGC5MC3uR3QH+Nh57umQItbVUkKDUiMsQii/ +Rcz1fprVFt1WvT1xiQjbd8sxNDajVcDgrUBUpA= X-Received: by 2002:a62:528e:0:b029:1f5:c5ee:a487 with SMTP id g136-20020a62528e0000b02901f5c5eea487mr3114076pfb.7.1617807575856; Wed, 07 Apr 2021 07:59:35 -0700 (PDT) MIME-Version: 1.0 References: <20210406133158.73700-1-andriy.shevchenko@linux.intel.com> <20210406165108.GA4332@42.do-not-panic.com> <20210407143040.GB4332@42.do-not-panic.com> In-Reply-To: <20210407143040.GB4332@42.do-not-panic.com> From: Andy Shevchenko Date: Wed, 7 Apr 2021 17:59:19 +0300 Message-ID: Subject: Re: [PATCH v1 1/1] kernel.h: Split out panic and oops helpers To: Luis Chamberlain 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. I will amend this for the future splits, thanks! > > > Seems like a very > > > small file. > > > > If it is an argument, it's kinda strange. We have much smaller headers. > > The motivation for such separate file was just not clear on the commit > log. -- With Best Regards, Andy Shevchenko