Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5ca2dfc authored by Julia Lawall's avatar Julia Lawall Committed by Greg Kroah-Hartman
Browse files

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: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e7fcbf0e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -164,8 +164,8 @@ struct binder_transaction_log {
	int full;
	struct binder_transaction_log_entry entry[32];
};
struct binder_transaction_log binder_transaction_log;
struct binder_transaction_log binder_transaction_log_failed;
static struct binder_transaction_log binder_transaction_log;
static struct binder_transaction_log binder_transaction_log_failed;

static struct binder_transaction_log_entry *binder_transaction_log_add(
	struct binder_transaction_log *log)
+1 −1
Original line number Diff line number Diff line
@@ -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)
{
+1 −1
Original line number Diff line number Diff line
@@ -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)
{
+1 −1
Original line number Diff line number Diff line
@@ -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)
{
+1 −1
Original line number Diff line number Diff line
@@ -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)
{
Loading