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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241014131917.324667-1-trintaeoitogc@gmail.com>
Date: Mon, 14 Oct 2024 10:19:17 -0300
From: Guilherme Giacomo Simoes <trintaeoitogc@...il.com>
To: trintaeoitogc@...il.com,
	scott@...teful.org,
	bhelgaas@...gle.com
Cc: linux-pci@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH] PCI: cpcihp: remove uneccessary field

The hardware_test field in cpci_hp_controller_ops is uneccessary because
no file is being used. How a pointer need a space in memory for storage
the address (4 bytes in 32bits systems and 8 bytes in 64 bits sustems),
remove this dead code to reduce resource consumption.

Signed-off-by: Guilherme Giacomo Simoes <trintaeoitogc@...il.com>
---
 drivers/pci/hotplug/cpci_hotplug.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/hotplug/cpci_hotplug.h b/drivers/pci/hotplug/cpci_hotplug.h
index 6d8970d8c3f2..03fa39ab0c88 100644
--- a/drivers/pci/hotplug/cpci_hotplug.h
+++ b/drivers/pci/hotplug/cpci_hotplug.h
@@ -44,7 +44,6 @@ struct cpci_hp_controller_ops {
 	int (*enable_irq)(void);
 	int (*disable_irq)(void);
 	int (*check_irq)(void *dev_id);
-	int (*hardware_test)(struct slot *slot, u32 value);
 	u8  (*get_power)(struct slot *slot);
 	int (*set_power)(struct slot *slot, int value);
 };
-- 
2.46.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ