Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2452553pxb; Sun, 17 Apr 2022 23:45:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAvrVqZvEQLX67dUZniszzKQwuY09JvzHqTOXPswbqkIJzrow49XBxTaD3O1qYtyW7/l/r X-Received: by 2002:a17:90b:1bd0:b0:1d2:a488:7af0 with SMTP id oa16-20020a17090b1bd000b001d2a4887af0mr2602210pjb.125.1650264332357; Sun, 17 Apr 2022 23:45:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650264332; cv=none; d=google.com; s=arc-20160816; b=mqFT3Wv2KEow/7xj3LIWNH774RpaeZfWRMNuP9FRePwVA6i99buLab3dhmQaLk9KEn 0gjaCYBFj0B9Sz2va+d2sIJOYqscX/5KWAe+ZVgUv8sfGbvZwfK7ftqLm3nr7WWF+MRN SZqD6NSQhir+/Dqj5WaYJtoc0UqQX7AHGpqTdlmyQz6OV9bZYwAV9uUZ6HLVkr90BzRT Vn3G+P7j3dhVE/M1CEEyZm9kIdXYXiOofGnR4TJ3PNvCc2byyUpZPBdzkZxznHT6/JKR 23W8tOS3kOqmw6zwRTD6mjiVY99qVmoGQrJOX093tCHFIKdMUqWaNu4xh3dFC/SJSMEV IIRw== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=N+DA4t8WHVTUtbydzYgACjP/GeP+iQmNsdDutAJHeuA=; b=W9KCF9csGGkziE/TY9/p6FWaK1fZ2YrrGRz8riK2lVRIcnjI8Uy7KgRl7ge64miACF g/93Z4Yix9HWRwr0Zbt7pnWJ5qeeXYFajJCvNGGGWhek7cT66sWSVXzisu2LjHjU/3o/ /0J9EKt7JSjVQzudRzLhwRbWST7bR9w6RF53Jvpkjh0W3Q2GKu9oF44z4TrXgOe3jl57 zhq8YZsFr0H8ZfMIK0qnvu0FrBF8wtHFcfrM2D1E4S86m4Ii9be0OYP+bEOYxtwj0VzS wsZv6LexoMDKvcCJCGbIy9u3u2S1XDWLcLgg6OEIpyP44yt2QXv2ZmtocUPC+bSV86NA 2uZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ipkj2w+o; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a170903110d00b00153f463a7e2si8042906plh.126.2022.04.17.23.45.18; Sun, 17 Apr 2022 23:45:32 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=ipkj2w+o; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232880AbiDPTll (ORCPT + 99 others); Sat, 16 Apr 2022 15:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232876AbiDPTle (ORCPT ); Sat, 16 Apr 2022 15:41:34 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72D723152B; Sat, 16 Apr 2022 12:39:01 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id be5so9512475plb.13; Sat, 16 Apr 2022 12:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=N+DA4t8WHVTUtbydzYgACjP/GeP+iQmNsdDutAJHeuA=; b=ipkj2w+o4JXJ3KVPO0DxLQWuqs4OEyi3UxINeXoIACCYu6fi6SkJQHqTkrYwYGprUQ eFmI7HinPBK1VOkYjtuvYxcz0o+axmOWFuu05Ikj/TH1PrTl1EbSnsUo0T8FWlF4ucXj UIdtITPmr4CiwPguZXFmrLHp1mzUxubJ2PQLWe91Zk2tpcpgQRCgqJsfRW06Go+ljivI D6CuHcdtpbXh1GP7kTxAbofHF6QwSBpbAIYYbNPw9ms5N9bglUTEtjE5UD7rXrParXGc kZzuK5gHoSIDFJqFGQlftcu7Dut1Gv5ZlsMOVF1z39g57L5NEGalhGUQoG6dehteKE89 HYKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=N+DA4t8WHVTUtbydzYgACjP/GeP+iQmNsdDutAJHeuA=; b=GBR1wGUJBeui+N5CdhUPpC0uQxK/2oGomJY22y+6+ippRuJKlGYO20NeP8o9JnBwDL s5wkSwqRgGPRvY6Ey0LHS/vNTx7gLWpKdaAn3ETQNKXcHBCU8v9vewMgSxs5yVEt0oKc f6b5eLb5/9aPBel7uHQNLeQXvTP0+XWOJYKVWMulFTObDlYV9dxyZopNBeIDn6f6k3g3 SwTi9LhzLToTq2Y9MLcsDfmxV9RmgFtVLKBwlCwPQoJdQvRWR8xMvblTRoMB9WhjKQhV 71sfhEvFp0q7ucuLgV4J7jKqzBdb5fRf5zZqUAZGU3eSE3FE+6oamdctU8m35xiJKV4d F0Pg== X-Gm-Message-State: AOAM533HG4nIDqzGkdhmQ7a4jV1Lyn4DmJbjsvH//tWykmGQz4Lfo5vI LuNirI0qoH4pE0vUo6nXSWU= X-Received: by 2002:a17:903:11c7:b0:154:b936:d1d4 with SMTP id q7-20020a17090311c700b00154b936d1d4mr4694779plh.78.1650137940950; Sat, 16 Apr 2022 12:39:00 -0700 (PDT) Received: from [192.168.1.3] (ip72-194-116-95.oc.oc.cox.net. [72.194.116.95]) by smtp.gmail.com with ESMTPSA id g15-20020a056a0023cf00b004e17e11cb17sm7142471pfc.111.2022.04.16.12.38.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 Apr 2022 12:39:00 -0700 (PDT) Message-ID: <2c0e1778-4602-67eb-8481-33e29764c84d@gmail.com> Date: Sat, 16 Apr 2022 12:38:57 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH net-next v4 04/18] net: dsa: sja1105: use list_add_tail(pos) instead of list_add(pos->prev) Content-Language: en-US To: Jakob Koschel , "David S. Miller" Cc: Jakub Kicinski , Paolo Abeni , Andrew Lunn , Vivien Didelot , Vladimir Oltean , Lars Povlsen , Steen Hegelund , UNGLinuxDriver@microchip.com, Ariel Elior , Manish Chopra , Edward Cree , Martin Habets , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Jiri Pirko , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Casper Andersson , Bjarni Jonasson , Christophe JAILLET , Arnd Bergmann , Colin Ian King , Eric Dumazet , Xu Wang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, bpf@vger.kernel.org, Mike Rapoport , Brian Johannesmeyer , Cristiano Giuffrida , "Bos, H.J." , Vladimir Oltean References: <20220415122947.2754662-1-jakobkoschel@gmail.com> <20220415122947.2754662-5-jakobkoschel@gmail.com> From: Florian Fainelli In-Reply-To: <20220415122947.2754662-5-jakobkoschel@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 4/15/2022 5:29 AM, Jakob Koschel wrote: > From: Vladimir Oltean > > When passed a non-head list element, list_add_tail() actually adds the > new element to its left, which is what we want. Despite the slightly > confusing name, use the dedicated function which does the same thing as > the open-coded list_add(pos->prev). > > Suggested-by: Jakub Kicinski > Signed-off-by: Vladimir Oltean > Signed-off-by: Jakob Koschel Reviewed-by: Florian Fainelli -- Florian