[PATCH] uml: mostly const a structure
The chan_opts structure is mostly const, and needs no locking. Comment the lack of locking on the one field that can change. Make all the other fields const. It turned out that console_open_chan didn't use its chan_opts argument, so that is deleted from the function and its callers. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
99b0278f95
commit
a52f362f86
@@ -9,11 +9,11 @@
|
||||
#include "init.h"
|
||||
|
||||
struct chan_opts {
|
||||
void (*announce)(char *dev_name, int dev);
|
||||
void (*const announce)(char *dev_name, int dev);
|
||||
char *xterm_title;
|
||||
int raw;
|
||||
unsigned long tramp_stack;
|
||||
int in_kernel;
|
||||
const int raw;
|
||||
const unsigned long tramp_stack;
|
||||
const int in_kernel;
|
||||
};
|
||||
|
||||
enum chan_init_pri { INIT_STATIC, INIT_ALL, INIT_ONE };
|
||||
|
Reference in New Issue
Block a user