x86: make variables static
These variables are only used in their source files, so make them static. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
2515ddc6db
commit
8bcad30f2e
@ -17,7 +17,7 @@
|
|||||||
#include "boot.h"
|
#include "boot.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
|
||||||
__videocard video_bios;
|
static __videocard video_bios;
|
||||||
|
|
||||||
/* Set a conventional BIOS mode */
|
/* Set a conventional BIOS mode */
|
||||||
static int set_bios_mode(u8 mode);
|
static int set_bios_mode(u8 mode);
|
||||||
@ -119,7 +119,7 @@ static int bios_probe(void)
|
|||||||
return nmodes;
|
return nmodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
__videocard video_bios =
|
static __videocard video_bios =
|
||||||
{
|
{
|
||||||
.card_name = "BIOS",
|
.card_name = "BIOS",
|
||||||
.probe = bios_probe,
|
.probe = bios_probe,
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
static struct vesa_general_info vginfo;
|
static struct vesa_general_info vginfo;
|
||||||
static struct vesa_mode_info vminfo;
|
static struct vesa_mode_info vminfo;
|
||||||
|
|
||||||
__videocard video_vesa;
|
static __videocard video_vesa;
|
||||||
|
|
||||||
#ifndef _WAKEUP
|
#ifndef _WAKEUP
|
||||||
static void vesa_store_mode_params_graphics(void);
|
static void vesa_store_mode_params_graphics(void);
|
||||||
@ -293,7 +293,7 @@ void vesa_store_edid(void)
|
|||||||
|
|
||||||
#endif /* not _WAKEUP */
|
#endif /* not _WAKEUP */
|
||||||
|
|
||||||
__videocard video_vesa =
|
static __videocard video_vesa =
|
||||||
{
|
{
|
||||||
.card_name = "VESA",
|
.card_name = "VESA",
|
||||||
.probe = vesa_probe,
|
.probe = vesa_probe,
|
||||||
|
@ -248,7 +248,7 @@ clear:
|
|||||||
* This will be saved when ever the FP and extended state context is
|
* This will be saved when ever the FP and extended state context is
|
||||||
* saved on the user stack during the signal handler delivery to the user.
|
* saved on the user stack during the signal handler delivery to the user.
|
||||||
*/
|
*/
|
||||||
void prepare_fx_sw_frame(void)
|
static void prepare_fx_sw_frame(void)
|
||||||
{
|
{
|
||||||
int size_extended = (xstate_size - sizeof(struct i387_fxsave_struct)) +
|
int size_extended = (xstate_size - sizeof(struct i387_fxsave_struct)) +
|
||||||
FP_XSTATE_MAGIC2_SIZE;
|
FP_XSTATE_MAGIC2_SIZE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user