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:	Sat, 13 Jan 2007 10:56:29 +0100
From:	Adrian Bunk <bunk@...sta.de>
To:	Andrew Morton <akpm@...l.org>,
	Anderson Briglia <anderson.briglia@...t.org.br>,
	Pierre Ossman <drzeus@...eus.cx>
Cc:	linux-kernel@...r.kernel.org
Subject: [-mm patch] make mmc_sysfs.c:mmc_key_type static

On Thu, Jan 11, 2007 at 10:26:27PM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.20-rc3-mm1:
>...
>  git-mmc.patch
>...
>  git trees
>...


This patch makes the needlessly global struct mmc_key_type static.

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

---

 drivers/mmc/mmc.h       |    1 -
 drivers/mmc/mmc_sysfs.c |    4 +++-
 2 files changed, 3 insertions(+), 2 deletions(-)

--- linux-2.6.20-rc4-mm1/drivers/mmc/mmc.h.old	2007-01-13 08:28:31.000000000 +0100
+++ linux-2.6.20-rc4-mm1/drivers/mmc/mmc.h	2007-01-13 08:28:38.000000000 +0100
@@ -20,7 +20,6 @@
 void mmc_free_host_sysfs(struct mmc_host *host);
 
 /* core-internal data */
-extern struct key_type mmc_key_type;
 struct mmc_key_payload {
 	struct rcu_head	rcu;		/* RCU destructor */
 	unsigned short	datalen;	/* length of this data */
--- linux-2.6.20-rc4-mm1/drivers/mmc/mmc_sysfs.c.old	2007-01-13 08:28:44.000000000 +0100
+++ linux-2.6.20-rc4-mm1/drivers/mmc/mmc_sysfs.c	2007-01-13 08:29:21.000000000 +0100
@@ -66,6 +66,8 @@
 
 static struct device_attribute mmc_dev_attr_scr = MMC_ATTR_RO(scr);
 
+static struct key_type mmc_key_type;
+
 #ifdef	CONFIG_MMC_PASSWORDS
 
 static ssize_t
@@ -432,7 +434,7 @@
 	kfree(mpayload);
 }
 
-struct key_type mmc_key_type = {
+static struct key_type mmc_key_type = {
 	.name		= "mmc",
 	.def_datalen	= MMC_KEYLEN_MAXBYTES,
 	.instantiate	= mmc_key_instantiate,

-
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