diff options
author | Julia Lawall <julia@diku.dk> | 2009-08-14 20:10:00 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 19:02:24 (GMT) |
commit | a5ca2dfc4ebd33e18f981f562833c39efdc2585c (patch) | |
tree | b3b45805fdf7b1cedc53a7231574f9d3788e6550 /drivers/staging/dream | |
parent | e7fcbf0e51e8a8bac9d20ac19f8ba62c8a256cc5 (diff) | |
download | linux-fsl-qoriq-a5ca2dfc4ebd33e18f981f562833c39efdc2585c.tar.xz |
staging: Make some structures static
This was done using a semantic patch (http://coccinelle.lip6.fr/) that
checks that the declaration is not inside a function definition, that the
defined variable is not exported using EXPORTED_SYMBOL, etc, and that the
defined variable does not occur in any other file. If these conditions
hold, static is added before the declaration.
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/dream')
-rw-r--r-- | drivers/staging/dream/qdsp5/audio_aac.c | 2 | ||||
-rw-r--r-- | drivers/staging/dream/qdsp5/audio_in.c | 2 | ||||
-rw-r--r-- | drivers/staging/dream/qdsp5/audio_mp3.c | 2 | ||||
-rw-r--r-- | drivers/staging/dream/qdsp5/audio_out.c | 2 | ||||
-rw-r--r-- | drivers/staging/dream/smd/smd_rpcrouter.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/dream/qdsp5/audio_aac.c b/drivers/staging/dream/qdsp5/audio_aac.c index 1c20f28..ad2390f 100644 --- a/drivers/staging/dream/qdsp5/audio_aac.c +++ b/drivers/staging/dream/qdsp5/audio_aac.c @@ -950,7 +950,7 @@ static int audio_release(struct inode *inode, struct file *file) return 0; } -struct audio the_aac_audio; +static struct audio the_aac_audio; static int audio_open(struct inode *inode, struct file *file) { diff --git a/drivers/staging/dream/qdsp5/audio_in.c b/drivers/staging/dream/qdsp5/audio_in.c index 6df70d8..3d950a2 100644 --- a/drivers/staging/dream/qdsp5/audio_in.c +++ b/drivers/staging/dream/qdsp5/audio_in.c @@ -785,7 +785,7 @@ static int audio_in_release(struct inode *inode, struct file *file) return 0; } -struct audio_in the_audio_in; +static struct audio_in the_audio_in; static int audio_in_open(struct inode *inode, struct file *file) { diff --git a/drivers/staging/dream/qdsp5/audio_mp3.c b/drivers/staging/dream/qdsp5/audio_mp3.c index 72b8d70..b95574f 100644 --- a/drivers/staging/dream/qdsp5/audio_mp3.c +++ b/drivers/staging/dream/qdsp5/audio_mp3.c @@ -864,7 +864,7 @@ static int audio_release(struct inode *inode, struct file *file) return 0; } -struct audio the_mp3_audio; +static struct audio the_mp3_audio; static int audio_open(struct inode *inode, struct file *file) { diff --git a/drivers/staging/dream/qdsp5/audio_out.c b/drivers/staging/dream/qdsp5/audio_out.c index 5a76ecc..d1adcf6 100644 --- a/drivers/staging/dream/qdsp5/audio_out.c +++ b/drivers/staging/dream/qdsp5/audio_out.c @@ -699,7 +699,7 @@ static int audio_release(struct inode *inode, struct file *file) return 0; } -struct audio the_audio; +static struct audio the_audio; static int audio_open(struct inode *inode, struct file *file) { diff --git a/drivers/staging/dream/smd/smd_rpcrouter.c b/drivers/staging/dream/smd/smd_rpcrouter.c index 56557b8..d4a4a88 100644 --- a/drivers/staging/dream/smd/smd_rpcrouter.c +++ b/drivers/staging/dream/smd/smd_rpcrouter.c @@ -122,7 +122,7 @@ struct rr_context { uint32_t count; /* bytes needed in this state */ }; -struct rr_context the_rr_context; +static struct rr_context the_rr_context; static struct platform_device rpcrouter_pdev = { .name = "oncrpc_router", |