lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1470351518-22404-3-git-send-email-york.sun@nxp.com>
Date:	Thu, 4 Aug 2016 15:58:27 -0700
From:	York Sun <york.sun@....com>
To:	<linux-edac@...r.kernel.org>
CC:	<morbidrsa@...il.com>, <oss@...error.net>, <stuart.yoder@....com>,
	<bp@...en8.de>, York Sun <york.sun@....com>,
	Michal Simek <monstr@...str.eu>,
	Bjorn Helgaas <bhelgaas@...gle.com>,
	Bharat Kumar Gogada <bharat.kumar.gogada@...inx.com>,
	Ravi Kiran Gummaluri <rgummal@...inx.com>,
	Fengguang Wu <fengguang.wu@...el.com>,
	<linux-kernel@...r.kernel.org>
Subject: [Patch v3 02/11] arch/microblaze/pci: Drop early_find_capability()

This function is a copy from powerpc, and is never used on microblaze.

Signed-off-by: York Sun <york.sun@....com>
Suggested-by: Bjorn Helgaas <helgaas@...nel.org>

---
This patch has nothing to do with this EDAC patch set, but suggested by
Bjorn Helgaas as good code hygiene, along with patch 01/11 to expose
early_find_capability() for powerpc.

Change log
  v3: new patch

 arch/microblaze/include/asm/pci-bridge.h | 3 ---
 arch/microblaze/pci/pci-common.c         | 7 -------
 2 files changed, 10 deletions(-)

diff --git a/arch/microblaze/include/asm/pci-bridge.h b/arch/microblaze/include/asm/pci-bridge.h
index cb5d397..a0f4a91 100644
--- a/arch/microblaze/include/asm/pci-bridge.h
+++ b/arch/microblaze/include/asm/pci-bridge.h
@@ -121,9 +121,6 @@ extern int early_write_config_word(struct pci_controller *hose, int bus,
 extern int early_write_config_dword(struct pci_controller *hose, int bus,
 			int dev_fn, int where, u32 val);
 
-extern int early_find_capability(struct pci_controller *hose, int bus,
-				 int dev_fn, int cap);
-
 extern void setup_indirect_pci(struct pci_controller *hose,
 			       resource_size_t cfg_addr,
 			       resource_size_t cfg_data, u32 flags);
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c
index 14cba60..2f4c79e 100644
--- a/arch/microblaze/pci/pci-common.c
+++ b/arch/microblaze/pci/pci-common.c
@@ -1461,10 +1461,3 @@ EARLY_PCI_OP(read, dword, u32 *)
 EARLY_PCI_OP(write, byte, u8)
 EARLY_PCI_OP(write, word, u16)
 EARLY_PCI_OP(write, dword, u32)
-
-int early_find_capability(struct pci_controller *hose, int bus, int devfn,
-			  int cap)
-{
-	return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap);
-}
-
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ