mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
Make various things static
Building an allnoconfig kernel, sparse asked whether these could be static, so I checked, and they are only used in the file where they are declared. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
9a8d5bb4ad
commit
da2bdf9a6f
3 changed files with 5 additions and 6 deletions
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
/* These are global because they are accessed in tty_io.c */
|
/* These are global because they are accessed in tty_io.c */
|
||||||
#ifdef CONFIG_UNIX98_PTYS
|
#ifdef CONFIG_UNIX98_PTYS
|
||||||
struct tty_driver *ptm_driver;
|
static struct tty_driver *ptm_driver;
|
||||||
static struct tty_driver *pts_driver;
|
static struct tty_driver *pts_driver;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -969,8 +969,7 @@ int vc_resize(struct vc_data *vc, unsigned int cols, unsigned int rows)
|
||||||
* Takes the console sem and the called methods then take the tty
|
* Takes the console sem and the called methods then take the tty
|
||||||
* termios_mutex and the tty ctrl_lock in that order.
|
* termios_mutex and the tty ctrl_lock in that order.
|
||||||
*/
|
*/
|
||||||
|
static int vt_resize(struct tty_struct *tty, struct winsize *ws)
|
||||||
int vt_resize(struct tty_struct *tty, struct winsize *ws)
|
|
||||||
{
|
{
|
||||||
struct vc_data *vc = tty->driver_data;
|
struct vc_data *vc = tty->driver_data;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
|
@ -56,9 +56,9 @@ struct memmap_attribute {
|
||||||
ssize_t (*show)(struct firmware_map_entry *entry, char *buf);
|
ssize_t (*show)(struct firmware_map_entry *entry, char *buf);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct memmap_attribute memmap_start_attr = __ATTR_RO(start);
|
static struct memmap_attribute memmap_start_attr = __ATTR_RO(start);
|
||||||
struct memmap_attribute memmap_end_attr = __ATTR_RO(end);
|
static struct memmap_attribute memmap_end_attr = __ATTR_RO(end);
|
||||||
struct memmap_attribute memmap_type_attr = __ATTR_RO(type);
|
static struct memmap_attribute memmap_type_attr = __ATTR_RO(type);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These are default attributes that are added for every memmap entry.
|
* These are default attributes that are added for every memmap entry.
|
||||||
|
|
Loading…
Reference in a new issue