Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2632902lqz; Wed, 3 Apr 2024 04:16:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2vKbGCIf1uIsXEjkrmBXj8BAm/TfWAFG5RoxhoJNbO1D7yeirm8VAcUSijSR3qLeDFqlrqsGDjhHHhGdg+VQQCP9vhaBnMUMrrNmrdQ== X-Google-Smtp-Source: AGHT+IG+cW440Kh6bj60IplYP/JM68E8/1GL8gx2rkF0ENBo3wWbmMe2VkW706MYPNkAPAhEUwMw X-Received: by 2002:a17:902:db04:b0:1e2:2587:d43f with SMTP id m4-20020a170902db0400b001e22587d43fmr16061839plx.36.1712142975029; Wed, 03 Apr 2024 04:16:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712142975; cv=pass; d=google.com; s=arc-20160816; b=mYHoiCdW1bv+Zk1uS0mGe71i+vWWc3qZRVN5p00mC0lHS6+PD5jSeY8TKMmAms5lDj IbPWq9gYgxZ+6wtlUfCUK/gdixg8NdLCuUWO/ipNkPJs1oEZj3FDHeYjxTGYCreECwZn 70b2bi9TgUwx/ZshrL0w8pFNjvVSUZmQeQhPnnYJMdVyEO45XaHJDP7dkSObXnUpL2+0 u8Xzj45aMtCjS71YpoEvR3AQfNe+KUwvBDE0K+xNR+fb/Av+eXEY8t/Jd3IKYWvjSx+M 55ik+TppWAeuEySRwhHH+BgbUoRtg0QrRHUizupoEbNjxoj6bWcsaPTyMiCIQxHCIaIp GKqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kusQcMg0fEKZMOXrdCO/VutgKZFLYZe73+kfKMTWYZA=; fh=YEsb5SdSoyE10DgZsbCn65AEkAseVB/60+9FFHLY7bI=; b=HZJG6AqUNE1RJvdfTCf4PWLomSs/dzsYiVEIL4QtVXwV/TJXWayQFbBupdRAUBRJIz XNVR/DZb591F2iWpjxDsR0BYxvc7Zo2unO46kZF5LQR01aqX+vf5Kwp6k6fXcL3i8cGM oeCDzXDa7leMdpWc16RySSBhD/OM6WHAnwiTy5vsYdgcXlBncC9+/j7uSiPGLBgFOT56 MVXJG7vnKNfiQ5l3EITlXyj6vTlDG0x+KfGjA2PRfybzGX63VZAdrY63SCt+9+PlPpr0 9aEzz96YM0bh4WACXffNZ7VczZIS3Kb8FhN2BkvPlQmdevCcMuFVo4YyYPLqs/ZxC1ZG rQjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CZrXfoFq; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-129648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p5-20020a170902ebc500b001e23e20b65esi9590750plg.602.2024.04.03.04.16.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 04:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CZrXfoFq; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-129648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5C61128DFCB for ; Wed, 3 Apr 2024 11:12:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60D91142E78; Wed, 3 Apr 2024 11:12:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CZrXfoFq" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01BBA7317F; Wed, 3 Apr 2024 11:11:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712142720; cv=none; b=FcVj6Mo4Gmw5Zj/Kl75dPmVGhygkLv3awn8N09JecH4tCgWBtKUFWPbzhT9Ya6VBvkdGurXLn9or2Mf++eF6jwY88W1UzTwzIsXNKLuprPgc6ASkJjmKBxF8KbC+g1lSPVtRU62KpWxFQmQhvADdsxcJdQJdpdn1xBeigdPJF/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712142720; c=relaxed/simple; bh=/VaNHH7OXnX6xRXyrMV1sFuKn4WnR5gB6la3Xx+0COk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oNchJUvE+ExCb/TZadKlBNXityvBTOX/g1EqBiQ3bhM2s18M/hJus+kyZe/UNyar9tkR2u2sGJcDgse1Kqjvn1gSwXtQxMvGAALzt/PHYEY208ABVgU2YHtnjJ9k5/dIIHyzdJNEB8WevpZ/d0FIwE4GbYH42ZUYl0rIkpSCEOQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CZrXfoFq; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-56c5d05128dso4996470a12.0; Wed, 03 Apr 2024 04:11:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712142717; x=1712747517; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=kusQcMg0fEKZMOXrdCO/VutgKZFLYZe73+kfKMTWYZA=; b=CZrXfoFqtDWfc2bmzOHsrXg8cNQEgTge5XkGTm4WQGM9Zx6Doib131AxnLuc2ou2mh Levq+9NotzNOpe80424b2feMNJRo7h8q9SSOuG46AicjlL/aT9wTFs8iRVioteseFH1P gqecJYg6Tk1P3er7KrXI6GzQU1LbKTBCeHqqU65Rto2ZSAcUkv8aPdmgHHiZMS5XyvMK oE13WW5L4Bsjz+xz2KT5V/NE783fb6b97x4IbxCOX0RNPbCW/54Cst/f1YMI19M2rXz0 8CFB+t4v8c5rImd1yPAHZYidbHrpBaA0+E0sQILPLDBLXXwPhZuDORvf+saLTeMYrxFJ /1mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712142717; x=1712747517; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kusQcMg0fEKZMOXrdCO/VutgKZFLYZe73+kfKMTWYZA=; b=C3FW7HX3Km8sFL1QD6pwX2OJNZhxrD6qQrCczQPXkrf487ZYgODIj65NgX8JwMFZQU BW90lJ6bUbavsykmL9cH8Qw1s9ketAcCixxCpbQTzCJlh3HLP0DZFee830PWsvTygIPm sJin/RSUWphq5F1qTvdlgNx6gsRjjqWH75fIUjzqYbMynKZe1y9zlAkccKvdpxBo0Lu3 /CVMVlyUJAf6f8vDpfKD0o7BjQH3Okap5TIX3gEzg2GzKp8HZY/x6TXueCAFGTYUHiG/ 4uLOQ7aVkiriHOF8h/KGE/iU67jGnZ1PCo68ptHcB3XM6B6ckSDqQF7l33VrLfUd04t8 seXw== X-Forwarded-Encrypted: i=1; AJvYcCX15bIB+Cr9MxiwS19t5q/wX2fXMaxpVRVlFYL62iPboLUJe/cMiZTaNkPeuHXEXe7THdxKq9mHI37g3bRT0pJa1AgfUTTE+b890zpfsG/TntB7TS8djUiWfvu20oJ5KvEn6/dqU6XmMba0kboRrSiX7NicpR9NStB2gBhrJ8HSMYCvzdD9 X-Gm-Message-State: AOJu0Yyk69k/2OsBpxW6Ow2kfwaruUaFsD42/0tR5mPOoChUoRWDBVgb lN7aNhn78bWAY59Ky4GMIYX6+VdYiUWlpzfmztCAM32F5ct0TUz+ X-Received: by 2002:a17:906:595a:b0:a4e:1966:1874 with SMTP id g26-20020a170906595a00b00a4e19661874mr9977058ejr.37.1712142716897; Wed, 03 Apr 2024 04:11:56 -0700 (PDT) Received: from skbuf ([2a02:2f04:d700:2000::b2c]) by smtp.gmail.com with ESMTPSA id w17-20020a170906185100b00a4e9359fbe8sm1333271eje.44.2024.04.03.04.11.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 04:11:56 -0700 (PDT) Date: Wed, 3 Apr 2024 14:11:53 +0300 From: Vladimir Oltean To: Christophe JAILLET Cc: Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Michael Walle , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net] net: dsa: sja1105: Fix parameters order in sja1110_pcs_mdio_write_c45() Message-ID: <20240403111153.en2357al7oerkvug@skbuf> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Apr 02, 2024 at 08:33:56PM +0200, Christophe JAILLET wrote: > The definition and declaration of sja1110_pcs_mdio_write_c45() don't have > parameters in the same order. > > Knowing that sja1110_pcs_mdio_write_c45() is used as a function pointer > in 'sja1105_info' structure with .pcs_mdio_write_c45, and that we have: > > int (*pcs_mdio_write_c45)(struct mii_bus *bus, int phy, int mmd, > int reg, u16 val); > > it is likely that the definition is the one to change. > > Found with cppcheck, funcArgOrderDifferent. > > Fixes: ae271547bba6 ("net: dsa: sja1105: C45 only transactions for PCS") > Signed-off-by: Christophe JAILLET > --- > Compile tested only. > --- Reviewed-by: Vladimir Oltean