Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1999544rdg; Sun, 15 Oct 2023 06:55:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrTyjPzN9HVN8SZ4BzuJAuyzc8nnJCzvHe1w6ls0deP+06ZME165S9z+Zq85U1D/tGh31p X-Received: by 2002:a17:90a:b902:b0:27d:1dc:aa5a with SMTP id p2-20020a17090ab90200b0027d01dcaa5amr11405933pjr.23.1697378121819; Sun, 15 Oct 2023 06:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697378121; cv=none; d=google.com; s=arc-20160816; b=e1w+GYuyhOkB09hfoXIUHmrSKRG/dqSSJN6OmKt1Blq/RYvbWBaR059TiWpYm2G4c/ SjA/uRyUMyYxCjiTr8CIioqSNJd9gKKlqyxtmemcX/mkRfE4iTSvYLecisfWuUAjYQe9 Q1PRnfzuvB17kSwVtZQFg86wD4tr2k1ZovrHUSi/SIX3/7AKyneCEynSEg8RH9e2tpc/ Cp+jGuboJoBVeVbbkfWMUTzYE3rvfJ9gZXbj7Ip4rL1iSC48UljyAGK07FCglrY8qTdk U3d1geH1FJ1NqoDxkadAlJf+jz/dcX2TSVhj7nOCaZhZzfhh47L8xxXyLOeF8Mr5OqCv rgUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HeLSDR+Sozk/FfhSf8rg92vqdhkO661vM3ya5zaMH5U=; fh=czTRRas3Gr6tvMtLcP7sA/EV2BArCCcKoUr475jDuts=; b=vkafQoKl0+BVMEQbSpzTPviN8sxNqK+tp9wQqSa2aLy9XnRaFokzTHrbuC0KZ24mNg FOs7qlnnT9/ca2/kMt1SnObGBI/g6RQKy0Le42hvV8LXvOrlsozYLGE5mOSpstU+rdad 1eQ1rlvC+2KuKEPHG3WoK6lJvpN9yAJaYgVCz7PZACRJF7FIQQM6zUxy7LdgH3bdUxCe /m8xTBqGEr0hYm8AU/Mg1vfKNzhKhPhnxq26sbTJ8E0OpteTvXvSyvSS0ueI5fbzAs1g U2uARSyj4wmGYwgi0iwk0tK/tFAM0g0BS6AUZRZh+B71Vqw4oFZkeua1XF+UtOH3rw0s EBJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=dBH80M+E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id a11-20020a17090ad80b00b0027b3755185dsi4139496pjv.99.2023.10.15.06.55.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 06:55:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=dBH80M+E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 54E9C8092CAA; Sun, 15 Oct 2023 06:55:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbjJONzB (ORCPT + 99 others); Sun, 15 Oct 2023 09:55:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbjJONzA (ORCPT ); Sun, 15 Oct 2023 09:55:00 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 992C7B7; Sun, 15 Oct 2023 06:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HeLSDR+Sozk/FfhSf8rg92vqdhkO661vM3ya5zaMH5U=; b=dBH80M+EB+uzCY+jsCfyJJajSu avIQe39UNTT4H89h2zGlhJ+CeY0HtZ0Cfk6Vmp4oMv8pDmdglNxfoEoh6gGprKk2+S5GfR/NWhccI cFPY33XJNcE+im1+9tWTLgOY1GzVpCz+vSbB3EC4NpovOSy7vg7Rq6p3pisBoa3DS6VHL7h9LVgyy RKt1Aw8WgN0uO65iRGr6lVdHhG4SgD0Y+FZNfVimyE9NMRhHYdEYeih0aFJ3pN1+RzaWTsfODg0Jv qDl+d51du/A49xMnP/9UbDTTVFHC7L5lz5IvUXCoRLYqHP8F9Ozm4DsLyKBB/9JKJ5B5IOvlU8Bf0 IkZlxY2w==; Received: from [192.168.12.176] by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1qs1Zx-000lCB-PP; Sun, 15 Oct 2023 15:54:49 +0200 Message-ID: Date: Sun, 15 Oct 2023 15:54:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH v5] alpha: Clean-up the panic notifier code To: "Maciej W. Rozycki" Cc: linux-alpha@vger.kernel.org, mattst88@gmail.com, linux-kernel@vger.kernel.org, kernel-dev@igalia.com, kernel@gpiccoli.net, Ivan Kokshaysky , Richard Henderson , Petr Mladek References: <20230902165725.3504046-1-gpiccoli@igalia.com> Content-Language: en-US From: "Guilherme G. Piccoli" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 15 Oct 2023 06:55:19 -0700 (PDT) On 10/10/2023 02:16, Maciej W. Rozycki wrote: > On Sat, 2 Sep 2023, Guilherme G. Piccoli wrote: > >> So, let's clean the code and set the notifier to run as the >> latest, following the same approach other architectures are >> doing - also, remove the unnecessary include of a header already >> included indirectly. > > FWIW my understanding is our current policy is not to rely on indirect > inclusions and if a given source relies on declarations or definitions > provided by a header, then it is supposed to pull it explicitly. > > And in any case such an unrelated self-contained change is expected to be > sent as a separate patch, in a series if there's a mechanical dependency. > > Maciej > Hi Maciej, thanks for your review! I'm not sure how the indirect inclusion is happening here. The only notifier present in this file is a panic notifier, and for this one, we have the "panic_notifier.h" header. It's like this for many others (if not all) panic notifiers in the kernel. Usually the indirect inclusion would happen if some other notifier block was used for any other reason, and we dropped the "notifier.h" include, which then would indirectly rely on "panic_notifier.h". In case I'm talking silly things, let me know! I might not have understood properly your point (and if so, apologies). Regarding split in another patch, it can easily be done, but I think it's quite self-contained now, a simple patch that cleans-up the alpha notifier. I've done that for other notifiers so far, but I'm OK either way, as long maintainers are happy and community agrees =) Cheers, Guilherme