staging: keucr: fix sparse warning
fix sparse warning: drivers/staging/keucr/smilmain.c:163:5: warning: symbol 'Check_D_MediaFmt' was not declared. Should it be static? by declaring it in the right header. And remove duplication of definition of SM_INIT Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8c4842d682
commit
b7b1462ec4
|
@ -9,6 +9,7 @@
|
||||||
#include "usb.h"
|
#include "usb.h"
|
||||||
#include "scsiglue.h"
|
#include "scsiglue.h"
|
||||||
#include "transport.h"
|
#include "transport.h"
|
||||||
|
#include "smil.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
extern u32 MediaChange;
|
extern u32 MediaChange;
|
||||||
extern int Check_D_MediaFmt(struct us_data *);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -204,6 +204,7 @@ extern struct keucr_media_area CisArea;
|
||||||
int Init_D_SmartMedia(void);
|
int Init_D_SmartMedia(void);
|
||||||
int Pwoff_D_SmartMedia(void);
|
int Pwoff_D_SmartMedia(void);
|
||||||
int Check_D_SmartMedia(void);
|
int Check_D_SmartMedia(void);
|
||||||
|
int Check_D_MediaFmt(struct us_data *);
|
||||||
int Check_D_Parameter(struct us_data *, u16 *, u8 *, u8 *);
|
int Check_D_Parameter(struct us_data *, u16 *, u8 *, u8 *);
|
||||||
int Media_D_ReadSector(struct us_data *, u32, u16, u8 *);
|
int Media_D_ReadSector(struct us_data *, u32, u16, u8 *);
|
||||||
int Media_D_WriteSector(struct us_data *, u32, u16, u8 *);
|
int Media_D_WriteSector(struct us_data *, u32, u16, u8 *);
|
||||||
|
@ -284,6 +285,4 @@ u8 correct_data(u8 *, u8 *, u8, u8, u8);
|
||||||
int _Correct_D_SwECC(u8 *, u8 *, u8 *);
|
int _Correct_D_SwECC(u8 *, u8 *, u8 *);
|
||||||
void _Calculate_D_SwECC(u8 *, u8 *);
|
void _Calculate_D_SwECC(u8 *, u8 *);
|
||||||
|
|
||||||
void SM_Init(void);
|
|
||||||
|
|
||||||
#endif /* already included */
|
#endif /* already included */
|
||||||
|
|
Loading…
Reference in New Issue