From patchwork Fri Sep 13 14:36:27 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: 13803558 X-Patchwork-Delegate: bhelgaas@google.com Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 4811B107B6; Fri, 13 Sep 2024 14:37:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726238235; cv=none; b=MtxKiEtTQelZnxOK665yRPTvlzId5g/G1jo2bJZqMIyOHRqKO6HlayiU1QP9RhQQ7fFE/p1/3UiPh1Y9P12BF2ihAUZqKZ1kgQGb8XlSim6AOXGSfSG3Xkh5eBXVqyJ2JAx29fcKuCuDLv5OvxgmB69zkY81hVAJjma1yOXOosY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726238235; c=relaxed/simple; bh=TVMIEcYV4lRuU2NwGaITevK1+8W4KKh6YOoRO/qra7M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=f5/1BOjShG6I4UrMWIbZTCpxL1ZhdU/FrTK0Bxwa/8UyHmcF98BB6HhNPc1hNtDXNNYI+Dh7oOfc9uUisa7VSua2W/X0SUs3UdLSqcfWIY1h30Kcc+EOdIqwMKyn7CQYgWguClmQ86bDHIcYQXE9EFX8Glzr2UrhinEoTsBvjpM= 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=eixkwQ+E; arc=none smtp.client-ip=198.175.65.15 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="eixkwQ+E" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726238233; x=1757774233; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TVMIEcYV4lRuU2NwGaITevK1+8W4KKh6YOoRO/qra7M=; b=eixkwQ+ENrcwbSHzz7DTdSwum2pGxxg5AghDTdbyhmE4flGRbI4ciCqr isB+3hes5huajFAgGsE0REpkx4JimpP88J3P5jQaofiG2OkoFQAHAxqyG GIparEiv6zBkQJSw0UnrM9bPEoPBxUyFy5jMXsmYHQV0VY6pthkUUJwIn axDRVWVC1/XPytR9gi4E43rc+j+ugF3UF0ATh9jKoTguewsZQgIo/CQeC CxsxlYUiXWnw3dFZsbdjr4U/TrVJ8m+L72YNior/KMGgUnwMwCm47Q/TN qddXXD9pZElq3uAb9LZZkvGcGuvdhdszfxlIeF7YektxZsWfgJa1zriEh A==; X-CSE-ConnectionGUID: x5k+tW7hSSKWCggg1fRAcQ== X-CSE-MsgGUID: vhU29ei6REiqUaUwxIh5ag== X-IronPort-AV: E=McAfee;i="6700,10204,11194"; a="28886512" X-IronPort-AV: E=Sophos;i="6.10,226,1719903600"; d="scan'208";a="28886512" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2024 07:37:13 -0700 X-CSE-ConnectionGUID: kXh3m9yKS2+tVa+PIBJopA== X-CSE-MsgGUID: kmnA2HQkT6ysfSaM6gHb+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,226,1719903600"; d="scan'208";a="68400260" Received: from ijarvine-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.245.154]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2024 07:37:10 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-pci@vger.kernel.org, Bjorn Helgaas , Mahesh J Salgaonkar , Oliver O'Halloran , Lukas Wunner , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , linux-kernel@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org, =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH v6 3/8] PCI: Make pcie_read_tlp_log() signature same Date: Fri, 13 Sep 2024 17:36:27 +0300 Message-Id: <20240913143632.5277-4-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240913143632.5277-1-ilpo.jarvinen@linux.intel.com> References: <20240913143632.5277-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 --- 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); }