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>] [day] [month] [year] [list]
Message-ID: <20070729145909.GE16817@stusta.de>
Date:	Sun, 29 Jul 2007 16:59:09 +0200
From:	Adrian Bunk <bunk@...sta.de>
To:	rpurdie@...ys.net
Cc:	linux-kernel@...r.kernel.org
Subject: [2.6 patch] backlight: make 2 structs static

This patch makes two needlessly global structs static.

Signed-off-by: Adrian Bunk <bunk@...sta.de>

---

 drivers/video/backlight/backlight.c |    2 +-
 drivers/video/backlight/lcd.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.23-rc1-mm1/drivers/video/backlight/backlight.c.old	2007-07-26 21:56:23.000000000 +0200
+++ linux-2.6.23-rc1-mm1/drivers/video/backlight/backlight.c	2007-07-26 21:56:31.000000000 +0200
@@ -164,7 +164,7 @@
 	return rc;
 }
 
-struct class *backlight_class;
+static struct class *backlight_class;
 
 static void bl_device_release(struct device *dev)
 {
--- linux-2.6.23-rc1-mm1/drivers/video/backlight/lcd.c.old	2007-07-26 21:57:40.000000000 +0200
+++ linux-2.6.23-rc1-mm1/drivers/video/backlight/lcd.c	2007-07-26 22:18:23.000000000 +0200
@@ -149,7 +149,7 @@
 	return sprintf(buf, "%d\n", ld->props.max_contrast);
 }
 
-struct class *lcd_class;
+static struct class *lcd_class;
 
 static void lcd_device_release(struct device *dev)
 {

-
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