Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp876694rwb; Sat, 14 Jan 2023 09:53:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXtmNxSTIrgv8/XcNbwZR6Jl1xpzncphvWbUTINyvrC/5RpO4BDtbhA0MDNBdlEtmAlpC6lj X-Received: by 2002:a05:6a20:4f1c:b0:b8:5835:2573 with SMTP id gi28-20020a056a204f1c00b000b858352573mr605433pzb.60.1673718829144; Sat, 14 Jan 2023 09:53:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673718829; cv=none; d=google.com; s=arc-20160816; b=EAzKgY+moNk0tGCvTApNvlzvJgXqBE4JWdjoJuMDn9NQx7QGFeOP6sEXKnN4DgPDGJ viHrDpbN7XMdB82XsPeeBu6KP0e1IlQevncV7+Y5iOXteDxh4CqexHiA4NeU0HxFXtcV gZrDbNlRSF7q4C6CCKWRUN0PeURj8aGNGqYdfb5DlzfCaDV8qwK2NLX2lwSS6Hj2tZS7 e/wHoeu67x/U+9ALPJCWRkpOJWL+q1p4qyKm2OMuexChWAMDNdIZWcfREHH7ZubmlEyR +sEWn+pf3y6CEKXQQkX/bjefp1j7WCIDz9Qg1A/EjkLlPfqot9T7MmEzrFSKbABUCazt oDKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=QNbLvYRd7r/KjTcK2MsGuCJX9/CO/nTDz1fspNQ7yyI=; b=wfg6bg/c54UIFauwb/+Q17oxzKCby0hh8wJoLO1BtpefzNkHn6CcOeAU8371kIPlMN NeTuzC886+oPrTTAeVYr4A5167sZfc8tpeGQq3gZZhq+2FhP9uT5t2t6/L5utodZMPM8 ktVvLkkXpjLIyYecZAcnkGxGQ5WeS10WPwHOiu6s/R8b/AcsBSrjhEhRxb2R7fhoAxRu KqFbZN6TAGjYZ2lavPnae1wHqml4nEJcYmVRYd0/eEEw6V503vTZ31AjiIJHUd6qCNbi jwRvJ+2Hh1q/lTMv2xDiC0AGDb5war7NjnrOAsGO0/WXH4htvnEZh1j7wzsFgNS6WpVy m9Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ispras.ru header.s=default header.b=XNKepNMD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a056a00190c00b00587cafeea1bsi14679101pfi.379.2023.01.14.09.53.42; Sat, 14 Jan 2023 09:53:49 -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; dkim=pass header.i=@ispras.ru header.s=default header.b=XNKepNMD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229906AbjANRgi (ORCPT + 52 others); Sat, 14 Jan 2023 12:36:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbjANRgg (ORCPT ); Sat, 14 Jan 2023 12:36:36 -0500 Received: from mail.ispras.ru (mail.ispras.ru [83.149.199.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A50D44AE; Sat, 14 Jan 2023 09:36:34 -0800 (PST) Received: from fedcomp.intra.ispras.ru (unknown [46.242.14.200]) by mail.ispras.ru (Postfix) with ESMTPSA id 133AE419E9D1; Sat, 14 Jan 2023 17:36:31 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.ispras.ru 133AE419E9D1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ispras.ru; s=default; t=1673717791; bh=QNbLvYRd7r/KjTcK2MsGuCJX9/CO/nTDz1fspNQ7yyI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XNKepNMDDVHkDZP6WcR/P4sRocfpt0CNfcyV9d1RkURQ3XlvRbih2UNh7dgx0l/Db PURiJ49IeSSTRQ0LsQ6Y9qDgawK0fHktHOGK1w6LN+iLRBL1TSo+g6CdMR85rWQ+T2 Pgqbj6katobvUNAE5Kj2O9Vq4IhxbrNjiWmGyR0I= From: Fedor Pchelkin To: Oleksij Rempel Cc: Fedor Pchelkin , Ziyang Xuan , robin@protonic.nl, linux@rempel-privat.de, Oliver Hartkopp , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Alexey Khoroshilov , lvc-project@linuxtesting.org Subject: Re: [PATCH net] can: j1939: fix errant WARN_ON_ONCE in j1939_session_deactivate Date: Sat, 14 Jan 2023 20:35:46 +0300 Message-Id: <20230114173546.38340-1-pchelkin@ispras.ru> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20210910124005.GJ26100@pengutronix.de> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Hello, On Fri, 10 Sep 2021 14:40:05 +0200, Oleksij Rempel wrote: > Ok, I see, this warning makes sense only if session will actually be > deactivated. > > Acked-by: Oleksij Rempel > > Thank you! As Ziyang Xuan stated, the patch was not applied to upstream. Usage of WARN_ON_ONCE in this case is actually discouraged: it erroneusly complains in a valid situation. So the macro should be removed with the aforementioned patch. If it makes some sense for debugging purposes, WARN_ON_ONCE can be replaced with netdev_warn/netdev_notice but anyway discard of WARN_ON_ONCE. -- Regards, Fedor