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-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 22 Jan 2010 22:41:10 +0100
From:	Henrik Kretzschmar <henne@...htwindheim.de>
To:	jonathan@...zard.org.uk
Cc:	alan@...ux.intel.com, tlinux-users@....toshiba-dme.co.jp,
	linux-kernel@...r.kernel.org,
	Henrik Kretzschmar <henne@...htwindheim.de>
Subject: [PATCH 2/4] [DRIVERS]: use __init in drivers/char/toshiba.c

Use __init on functions which are only called while loading the driver.

Signed-off-by: Henrik Kretzschmar <henne@...htwindheim.de>
---
 drivers/char/toshiba.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/char/toshiba.c b/drivers/char/toshiba.c
index 4644ea8..8e686ac 100644
--- a/drivers/char/toshiba.c
+++ b/drivers/char/toshiba.c
@@ -344,7 +344,7 @@ static const struct file_operations proc_toshiba_fops = {
 /*
  * Determine which port to use for the Fn key status
  */
-static void tosh_set_fn_port(void)
+static void __init tosh_set_fn_port(void)
 {
 	switch (tosh_id) {
 		case 0xfc02: case 0xfc04: case 0xfc09: case 0xfc0a: case 0xfc10:
@@ -368,7 +368,7 @@ static void tosh_set_fn_port(void)
 /*
  * Get the machine identification number of the current model
  */
-static int tosh_get_machine_id(void __iomem *bios)
+static int __init tosh_get_machine_id(void __iomem *bios)
 {
 	int id;
 	SMMRegisters regs;
@@ -424,7 +424,7 @@ static int tosh_get_machine_id(void __iomem *bios)
  *   laptop, otherwise zero and determines the Machine ID, BIOS version and
  *   date, and SCI version.
  */
-static int tosh_probe(void)
+static int __init tosh_probe(void)
 {
 	int i,major,minor,day,year,month,flag;
 	unsigned char signature[7] = { 0x54,0x4f,0x53,0x48,0x49,0x42,0x41 };
-- 
1.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ