From patchwork Wed Dec 18 14:37:43 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: 13913790 X-Patchwork-Delegate: bhelgaas@google.com Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (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 D2D451BEF9E; Wed, 18 Dec 2024 14:38:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734532707; cv=none; b=SkYjP9aEKwb5XGggwvoSy/hOnwZuE2WTVKaYmcAdAe5A9DY88IDftK8me7B5zOxZhKtbYfgmGYJqsRKsJzlPm/TrSfULwfuEOgo149bE+JE44VSXzWFVBBbqRty0ufEEo6GqVl+rbj5QG1JyJ5YHLXoJP/2E+/NmLiZCr+L7mt0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734532707; c=relaxed/simple; bh=z7XBwv6cx/fb2OyBxd6hhF91iwJqm4GWqCEk7rKMIic=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=FzdSSCZDruOyToxx6d4RNgGvQVDKfXCaLsf6CXjiinYhrDcjIPEr2ko767dNXuk7uh6xnTLVSFj6o5HSH1GlCqPmelG8OByd7GHJufRMfVm6yEeIc9oYyJzNLfCl4HffsT1ZiqE9066xSqozjivyxVTnpe73byU6A4LEixsYCnM= 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=hraonRbJ; arc=none smtp.client-ip=192.198.163.16 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="hraonRbJ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734532706; x=1766068706; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=z7XBwv6cx/fb2OyBxd6hhF91iwJqm4GWqCEk7rKMIic=; b=hraonRbJAWUjhvaQqWgHXFll+zjsXXmO1RwxKn+/9cVhHSLFqmfvyHId XznwY+vZnhcNDnzck+DphHSSp3f5nr+5JFFaEwOjjLA/DBealFGxiiv5W PdpNCtV+mNTa1allm5ACBXnZ3orxFO6KHZ6NRLu7aKgvqCjJnBuxc+fT3 ioAReJWFQwLDGYf5/Srq+zNuMnNoFYeHJKgI93rKIDC3VQ0V+m15rDb7L tgrbMHI7cPDzDfOBJadrVpZ/GgANZRXBXGgSJ5oXTrl+0gSVN2Ct44tgx s9jYtyf3Klhjr2Ut1Y+cN5DndkrTjJaQWsz7N17zh107+JakpjGgD/ocL w==; X-CSE-ConnectionGUID: Igx7KwRFR7KrzYd+uqqwxw== X-CSE-MsgGUID: UtTTWW16TOKxGpFzJ6AbAA== X-IronPort-AV: E=McAfee;i="6700,10204,11290"; a="22597361" X-IronPort-AV: E=Sophos;i="6.12,244,1728975600"; d="scan'208";a="22597361" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2024 06:38:25 -0800 X-CSE-ConnectionGUID: I4wnBeYUQ66x153Ycq8VgQ== X-CSE-MsgGUID: haTFWO+SQUWKguDQNvepuw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="102974627" Received: from ijarvine-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.244.138]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2024 06:38:21 -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 , Yazen Ghannam , 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 v8 3/7] PCI: Make pcie_read_tlp_log() signature same Date: Wed, 18 Dec 2024 16:37:43 +0200 Message-Id: <20241218143747.3159-4-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241218143747.3159-1-ilpo.jarvinen@linux.intel.com> References: <20241218143747.3159-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); }