From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A0B3C433E0 for ; Thu, 14 May 2020 19:01:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4A70A20675 for ; Thu, 14 May 2020 19:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589482885; bh=wyDYTAczmcn/GLNndn5Dk4wpiaPeH7UZWEJm/nuK1+U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=LP2FTxrAgu8YYjJZ3L2WjlVXYb/Tr8eM5DxZeLmsis+p8JDjp1B3rx9McZUE+quTZ d+XZ5mQXS+kf4lMteND0MFS5L+HXCSvrsJxU1phlgTldrCuv67bjCa9pEFm41gHzJU mdlWvDXk8NCevk+dKBYsZhtOwxivsTuZ8vSw2LN4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729552AbgENTBW (ORCPT ); Thu, 14 May 2020 15:01:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:56152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728466AbgENSza (ORCPT ); Thu, 14 May 2020 14:55:30 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6D89A2074A; Thu, 14 May 2020 18:55:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589482530; bh=wyDYTAczmcn/GLNndn5Dk4wpiaPeH7UZWEJm/nuK1+U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vQDMke5W/oONy6XZyRBRrsihcD2N3x7xjSfPYAs+wcUBgUnh9tH/r4TPhxD7oAapA 6Lhow3KToPRlOxZxpgZIeLsNWPWFsaz5Cu8d51d35DBdFLioPzZd3Ifsut9hjzYZTp e+uDVW0s883zbyi9YUVFDVnRk+c35YL2fql76POY= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Julia Lawall , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.14 24/39] dp83640: reverse arguments to list_add_tail Date: Thu, 14 May 2020 14:54:41 -0400 Message-Id: <20200514185456.21060-24-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200514185456.21060-1-sashal@kernel.org> References: <20200514185456.21060-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Julia Lawall [ Upstream commit 865308373ed49c9fb05720d14cbf1315349b32a9 ] In this code, it appears that phyter_clocks is a list head, based on the previous list_for_each, and that clock->list is intended to be a list element, given that it has just been initialized in dp83640_clock_init. Accordingly, switch the arguments to list_add_tail, which takes the list head as the second argument. Fixes: cb646e2b02b27 ("ptp: Added a clock driver for the National Semiconductor PHYTER.") Signed-off-by: Julia Lawall Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/phy/dp83640.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/dp83640.c b/drivers/net/phy/dp83640.c index afebdc2f0b94d..c52c016676af3 100644 --- a/drivers/net/phy/dp83640.c +++ b/drivers/net/phy/dp83640.c @@ -1110,7 +1110,7 @@ static struct dp83640_clock *dp83640_clock_get_bus(struct mii_bus *bus) goto out; } dp83640_clock_init(clock, bus); - list_add_tail(&phyter_clocks, &clock->list); + list_add_tail(&clock->list, &phyter_clocks); out: mutex_unlock(&phyter_clocks_lock); -- 2.20.1