From patchwork Tue Dec 17 13:53:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 13911847 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFFF01F4732; Tue, 17 Dec 2024 13:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734443688; cv=none; b=DVezd5Xhm9A0gN1Q40NJDyyxs+p7POmkGQYtODoI5+uaU9UJmI/StvgtzAlFwNuNo0kLrvH5NbPDar5oHpd1d3kw68KxTZVUfxqZLeO78DA3eMvh2hT4Dm5S147KHuwAkwo0wJcigbWWvmPBLzgXEVuEQOMhXgm9WsDwuorRbak= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734443688; c=relaxed/simple; bh=z7XBwv6cx/fb2OyBxd6hhF91iwJqm4GWqCEk7rKMIic=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=CMJNTrWbrPIZWek/XTwd7wbsUGHyAcKZnSJn0OLVTFOAc3r6g+48xpS0m9WI0ApfeLnwaChtoLVh1I2MEZXydI0Sj56TC1dx/Br7/zLpTyX0ScpToshIVkf0dTkDwMmg5yqMU/Jwm0zkuidvzGajyRV3WRmAQBWF9ZrM/Ln4QNY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FwEadSvU; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FwEadSvU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734443687; x=1765979687; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=z7XBwv6cx/fb2OyBxd6hhF91iwJqm4GWqCEk7rKMIic=; b=FwEadSvUlp8Naj6R7BixpJnMfVLvBkBiNZtL3Ku/SdESdZ7M9Lnqgcsf qcekqux+fQhB+d1C1yxzuL6ZeipriHZ/KVNAg/IDixM/sr86ZM10edV1W AGvqGGJ0fiaglPFwbHpd0T5I6ngbKWF4rpwg45Po6m9G81QEEhVgrfyYu HVkVEvPIDMcdq+hakG680hl4RVRZqwC5eLMIQUTn1zkU+bODeAUGcApre I/dwUZFM04/6Zfz+heZ73P/L3uhKzMgdAwbDcF+4mmGiE25ZlJZ6+feeB AfM96fhTw8FVH+LIWW33ZPt6WyLD7MTbO9hxQ1oR9+4o5XA17wn5dYg2L w==; X-CSE-ConnectionGUID: R4P78bRcS+ebVSpqGFPNNw== X-CSE-MsgGUID: YckQRCtdSZ6wlSs5xAb7KQ== X-IronPort-AV: E=McAfee;i="6700,10204,11288"; a="34907138" X-IronPort-AV: E=Sophos;i="6.12,242,1728975600"; d="scan'208";a="34907138" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Dec 2024 05:54:46 -0800 X-CSE-ConnectionGUID: Y0OkvrVTTeesgVIWR9z4yQ== X-CSE-MsgGUID: x6jYpCKWTVaM1Gp47UyocA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,242,1728975600"; d="scan'208";a="97435431" Received: from ijarvine-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.245.192]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Dec 2024 05:54:42 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: Bjorn Helgaas , linux-pci@vger.kernel.org, =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Lukas Wunner , Jonathan Cameron , linux-kernel@vger.kernel.org Cc: Mahesh J Salgaonkar , Oliver O'Halloran , linuxppc-dev@lists.ozlabs.org, =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH v7 3/8] PCI: Make pcie_read_tlp_log() signature same Date: Tue, 17 Dec 2024 15:53:53 +0200 Message-Id: <20241217135358.9345-4-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241217135358.9345-1-ilpo.jarvinen@linux.intel.com> References: <20241217135358.9345-1-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 pcie_read_tlp_log()'s prototype and function signature diverged due to changes made while applying. Make the parameters of pcie_read_tlp_log() named identically. Signed-off-by: Ilpo Järvinen Reviewed-by: Jonathan Cameron --- drivers/pci/pcie/tlp.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/pci/pcie/tlp.c b/drivers/pci/pcie/tlp.c index 3f053cc62290..2bf15749cd31 100644 --- a/drivers/pci/pcie/tlp.c +++ b/drivers/pci/pcie/tlp.c @@ -15,22 +15,21 @@ * pcie_read_tlp_log - read TLP Header Log * @dev: PCIe device * @where: PCI Config offset of TLP Header Log - * @tlp_log: TLP Log structure to fill + * @log: TLP Log structure to fill * - * Fill @tlp_log from TLP Header Log registers, e.g., AER or DPC. + * Fill @log from TLP Header Log registers, e.g., AER or DPC. * * Return: 0 on success and filled TLP Log structure, <0 on error. */ int pcie_read_tlp_log(struct pci_dev *dev, int where, - struct pcie_tlp_log *tlp_log) + struct pcie_tlp_log *log) { int i, ret; - memset(tlp_log, 0, sizeof(*tlp_log)); + memset(log, 0, sizeof(*log)); for (i = 0; i < 4; i++) { - ret = pci_read_config_dword(dev, where + i * 4, - &tlp_log->dw[i]); + ret = pci_read_config_dword(dev, where + i * 4, &log->dw[i]); if (ret) return pcibios_err_to_errno(ret); }