Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3559470rwl; Sat, 7 Jan 2023 01:49:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXuicuEwDnB/JnA2KsjykRpt7SZlo3/UtZ75wXPPvk2PjoSeblIF5iaeje47ZZysBFr3aaPY X-Received: by 2002:a05:6402:755:b0:498:9793:785b with SMTP id p21-20020a056402075500b004989793785bmr489901edy.3.1673084979650; Sat, 07 Jan 2023 01:49:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673084979; cv=none; d=google.com; s=arc-20160816; b=THUuXQbjh0aM3ooVq36YRosaFqlZRPYf6/BcYxu/wzUvWk/VAh0lJPd7tBN91G4KMX wqdS4i/J4HQ97ZYqFu9HQ9cEmsAaTvsZGuPoDgAX6D+tgJeWwJwKOEoYA5gISMHWaq3X q94RlX8CAPlHzo8y5otxTmPfFSn+WMjwW5x4VQOyHMlNjfmupTofU22gDs+6I+9m02TM mYZwpU8dlDVa2ioNPcfrSh/GYqY5xAF6HGy5TKUe1lUbXriIpvIN5U4By2IgxRNg0mWi kzkaYW/Au8CXRjn6hVMBQHgdEXRhHTpFvbkpUQqu00nS/ogE4fyNy+hqCMOa+5NkN2ZK sryA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=+4ZGfuKK4CjZwv/mDdP/jQNYvuv/+P05os/4YkEWs2c=; b=XgawguMOqih9gApGnvkI4y9PgZPglwmXGQVw2LaYJsTYsBTBG0B07eqLZnNFklq5T3 ThSIdhkPvpO41r2E4wMU3sy3e4IAuAp7oeRxP1FAwNMWJFMh84V65VxglFX/JNKXpRlh p9f9g30MP6wBrI9az7pGPQ8YWLK9SW0R/SCk/XIT+jiukn/Fj2ePQq4hZs4ZaQ+OqyyW BXjPQQg7TcQ1dBOUpGuMgzec5bPb537AuUoRJczeAWK1pXEGIF4Ekd3m59rpW/o05EuB AAhdTCjdxrBGiAxV/msMWjqmVGvu7KkpSThNi9NTAKs4Iit34DdKBcHyKmqY44XsB5K5 4Oag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a056402090c00b0046a711ae23csi4733656edz.515.2023.01.07.01.49.26; Sat, 07 Jan 2023 01:49:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231209AbjAGJok (ORCPT + 55 others); Sat, 7 Jan 2023 04:44:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjAGJoi (ORCPT ); Sat, 7 Jan 2023 04:44:38 -0500 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB280777E1; Sat, 7 Jan 2023 01:44:36 -0800 (PST) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id F2A641883896; Sat, 7 Jan 2023 09:44:33 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id ECF6A2500682; Sat, 7 Jan 2023 09:44:33 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id E289C9EC000C; Sat, 7 Jan 2023 09:44:33 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Sat, 07 Jan 2023 10:44:33 +0100 From: netdev@kapio-technology.com To: Vladimir Oltean Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , Eric Dumazet , Paolo Abeni , open list Subject: Re: [PATCH v3 net-next 2/3] net: dsa: mv88e6xxx: shorten the locked section in mv88e6xxx_g1_atu_prob_irq_thread_fn() In-Reply-To: <20230106163759.42jrkxuyjlg3l3s5@skbuf> References: <20230106160529.1668452-1-netdev@kapio-technology.com> <20230106160529.1668452-3-netdev@kapio-technology.com> <20230106163759.42jrkxuyjlg3l3s5@skbuf> User-Agent: Gigahost Webmail Message-ID: <540e6577f028c05c8ea39c2a09bce23e@kapio-technology.com> X-Sender: netdev@kapio-technology.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-01-06 17:37, Vladimir Oltean wrote: > On Fri, Jan 06, 2023 at 05:05:28PM +0100, Hans J. Schultz wrote: >> As only the hardware access functions up til and including >> mv88e6xxx_g1_atu_mac_read() called under the interrupt handler >> need to take the chip lock, we release the chip lock after this call. >> The follow up code that handles the violations can run without the >> chip lock held. >> In further patches, the violation handler function will even be >> incompatible with having the chip lock held. This due to an AB/BA >> ordering inversion with rtnl_lock(). >> >> Signed-off-by: Hans J. Schultz >> --- > > Needs to compile without new warnings patch by patch. > > ../drivers/net/dsa/mv88e6xxx/global1_atu.c: In function > ‘mv88e6xxx_g1_atu_prob_irq_thread_fn’: > ../drivers/net/dsa/mv88e6xxx/global1_atu.c:460:1: warning: label ‘out’ > defined but not used [-Wunused-label] > 460 | out: > | ^~~ > ../drivers/net/dsa/mv88e6xxx/global1_atu.c:460:1: warning: unused label > 'out' Can I fix it and resend the same version?