2006-11-20 02:24:14

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] make ecryptfs_version_str_map[] static

This patch makes the needlessly global ecryptfs_version_str_map[]
static.

Signed-off-by: Adrian Bunk <[email protected]>

--- linux-2.6.19-rc5-mm2/fs/ecryptfs/main.c.old 2006-11-20 01:27:17.000000000 +0100
+++ linux-2.6.19-rc5-mm2/fs/ecryptfs/main.c 2006-11-20 01:27:25.000000000 +0100
@@ -692,7 +692,7 @@

static struct ecryptfs_attribute sysfs_attr_version = __ATTR_RO(version);

-struct ecryptfs_version_str_map_elem {
+static struct ecryptfs_version_str_map_elem {
u32 flag;
char *str;
} ecryptfs_version_str_map[] = {


2006-11-20 16:13:31

by Michael Halcrow

[permalink] [raw]
Subject: Re: [2.6 patch] make ecryptfs_version_str_map[] static

On Mon, Nov 20, 2006 at 03:24:06AM +0100, Adrian Bunk wrote:
> This patch makes the needlessly global ecryptfs_version_str_map[]
> static.
>
> Signed-off-by: Adrian Bunk <[email protected]>

Acked-by: Michael Halcrow <[email protected]>

> --- linux-2.6.19-rc5-mm2/fs/ecryptfs/main.c.old 2006-11-20 01:27:17.000000000 +0100
> +++ linux-2.6.19-rc5-mm2/fs/ecryptfs/main.c 2006-11-20 01:27:25.000000000 +0100
> @@ -692,7 +692,7 @@
>
> static struct ecryptfs_attribute sysfs_attr_version = __ATTR_RO(version);
>
> -struct ecryptfs_version_str_map_elem {
> +static struct ecryptfs_version_str_map_elem {
> u32 flag;
> char *str;
> } ecryptfs_version_str_map[] = {
>