Messages in this thread Patch in this message | | | Date | Sat, 13 Jan 2007 10:56:29 +0100 | From | Adrian Bunk <> | 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@stusta.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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |