Commit 405b26d9 authored by Mark Hounschell's avatar Mark Hounschell Committed by Greg Kroah-Hartman

staging: dgap: fix sparse warnings for the entire bs_t structure

This patch fixes sparse warnings for the entire bs_t structure
This entire structure defines a hardware segment
Signed-off-by: default avatarMark Hounschell <markh@compro.net>
Tested-by: default avatarMark Hounschell <markh@compro.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b6339d02
...@@ -1303,7 +1303,7 @@ static int dgap_tty_init(struct board_t *brd) ...@@ -1303,7 +1303,7 @@ static int dgap_tty_init(struct board_t *brd)
u8 __iomem *vaddr; u8 __iomem *vaddr;
u8 modem = 0; u8 modem = 0;
struct channel_t *ch; struct channel_t *ch;
struct bs_t *bs; struct bs_t __iomem *bs;
struct cm_t *cm; struct cm_t *cm;
if (!brd) if (!brd)
...@@ -1635,7 +1635,7 @@ static void dgap_sniff_nowait_nolock(struct channel_t *ch, u8 *text, ...@@ -1635,7 +1635,7 @@ static void dgap_sniff_nowait_nolock(struct channel_t *ch, u8 *text,
static void dgap_input(struct channel_t *ch) static void dgap_input(struct channel_t *ch)
{ {
struct board_t *bd; struct board_t *bd;
struct bs_t *bs; struct bs_t __iomem *bs;
struct tty_struct *tp; struct tty_struct *tp;
struct tty_ldisc *ld; struct tty_ldisc *ld;
uint rmask; uint rmask;
...@@ -1962,7 +1962,7 @@ static int dgap_tty_open(struct tty_struct *tty, struct file *file) ...@@ -1962,7 +1962,7 @@ static int dgap_tty_open(struct tty_struct *tty, struct file *file)
struct board_t *brd; struct board_t *brd;
struct channel_t *ch; struct channel_t *ch;
struct un_t *un; struct un_t *un;
struct bs_t *bs; struct bs_t __iomem *bs;
uint major = 0; uint major = 0;
uint minor = 0; uint minor = 0;
int rc = 0; int rc = 0;
...@@ -2416,7 +2416,7 @@ static int dgap_tty_chars_in_buffer(struct tty_struct *tty) ...@@ -2416,7 +2416,7 @@ static int dgap_tty_chars_in_buffer(struct tty_struct *tty)
struct board_t *bd = NULL; struct board_t *bd = NULL;
struct channel_t *ch = NULL; struct channel_t *ch = NULL;
struct un_t *un = NULL; struct un_t *un = NULL;
struct bs_t *bs = NULL; struct bs_t __iomem *bs;
u8 tbusy; u8 tbusy;
uint chars = 0; uint chars = 0;
u16 thead, ttail, tmask, chead, ctail; u16 thead, ttail, tmask, chead, ctail;
...@@ -2507,7 +2507,7 @@ static int dgap_wait_for_drain(struct tty_struct *tty) ...@@ -2507,7 +2507,7 @@ static int dgap_wait_for_drain(struct tty_struct *tty)
{ {
struct channel_t *ch; struct channel_t *ch;
struct un_t *un; struct un_t *un;
struct bs_t *bs; struct bs_t __iomem *bs;
int ret = -EIO; int ret = -EIO;
uint count = 1; uint count = 1;
ulong lock_flags = 0; ulong lock_flags = 0;
...@@ -2618,7 +2618,7 @@ static int dgap_maxcps_room(struct tty_struct *tty, int bytes_available) ...@@ -2618,7 +2618,7 @@ static int dgap_maxcps_room(struct tty_struct *tty, int bytes_available)
static inline void dgap_set_firmware_event(struct un_t *un, unsigned int event) static inline void dgap_set_firmware_event(struct un_t *un, unsigned int event)
{ {
struct channel_t *ch = NULL; struct channel_t *ch = NULL;
struct bs_t *bs = NULL; struct bs_t __iomem *bs = NULL;
if (!un || un->magic != DGAP_UNIT_MAGIC) if (!un || un->magic != DGAP_UNIT_MAGIC)
return; return;
...@@ -2652,7 +2652,7 @@ static int dgap_tty_write_room(struct tty_struct *tty) ...@@ -2652,7 +2652,7 @@ static int dgap_tty_write_room(struct tty_struct *tty)
{ {
struct channel_t *ch = NULL; struct channel_t *ch = NULL;
struct un_t *un = NULL; struct un_t *un = NULL;
struct bs_t *bs = NULL; struct bs_t __iomem *bs;
u16 head, tail, tmask; u16 head, tail, tmask;
int ret = 0; int ret = 0;
ulong lock_flags = 0; ulong lock_flags = 0;
...@@ -2741,7 +2741,7 @@ static int dgap_tty_write(struct tty_struct *tty, const unsigned char *buf, ...@@ -2741,7 +2741,7 @@ static int dgap_tty_write(struct tty_struct *tty, const unsigned char *buf,
{ {
struct channel_t *ch = NULL; struct channel_t *ch = NULL;
struct un_t *un = NULL; struct un_t *un = NULL;
struct bs_t *bs = NULL; struct bs_t __iomem *bs;
char *vaddr = NULL; char *vaddr = NULL;
u16 head, tail, tmask, remain; u16 head, tail, tmask, remain;
int bufcount = 0, n = 0; int bufcount = 0, n = 0;
...@@ -5006,7 +5006,7 @@ static void dgap_wmove(struct channel_t *ch, char *buf, uint cnt) ...@@ -5006,7 +5006,7 @@ static void dgap_wmove(struct channel_t *ch, char *buf, uint cnt)
{ {
int n; int n;
char *taddr; char *taddr;
struct bs_t *bs; struct bs_t __iomem *bs;
u16 head; u16 head;
if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) if (!ch || ch->magic != DGAP_CHANNEL_MAGIC)
...@@ -5125,7 +5125,7 @@ static int dgap_param(struct tty_struct *tty) ...@@ -5125,7 +5125,7 @@ static int dgap_param(struct tty_struct *tty)
struct ktermios *ts; struct ktermios *ts;
struct board_t *bd; struct board_t *bd;
struct channel_t *ch; struct channel_t *ch;
struct bs_t *bs; struct bs_t __iomem *bs;
struct un_t *un; struct un_t *un;
u16 head; u16 head;
u16 cflag; u16 cflag;
...@@ -5578,7 +5578,7 @@ static int dgap_event(struct board_t *bd) ...@@ -5578,7 +5578,7 @@ static int dgap_event(struct board_t *bd)
struct channel_t *ch; struct channel_t *ch;
ulong lock_flags; ulong lock_flags;
ulong lock_flags2; ulong lock_flags2;
struct bs_t *bs; struct bs_t __iomem *bs;
u8 *event; u8 *event;
u8 __iomem *vaddr; u8 __iomem *vaddr;
struct ev_t *eaddr = NULL; struct ev_t *eaddr = NULL;
......
...@@ -593,7 +593,7 @@ struct board_t { ...@@ -593,7 +593,7 @@ struct board_t {
u32 dgap_Serial_Major; u32 dgap_Serial_Major;
u32 dgap_TransparentPrint_Major; u32 dgap_TransparentPrint_Major;
struct bs_t *bd_bs; /* Base structure pointer */ struct bs_t __iomem *bd_bs; /* Base structure pointer */
char *flipbuf; /* Our flip buffer, alloced if */ char *flipbuf; /* Our flip buffer, alloced if */
/* board is found */ /* board is found */
...@@ -968,7 +968,7 @@ struct digi_cmd { ...@@ -968,7 +968,7 @@ struct digi_cmd {
************************************************************************/ ************************************************************************/
struct channel_t { struct channel_t {
int magic; /* Channel Magic Number */ int magic; /* Channel Magic Number */
struct bs_t *ch_bs; /* Base structure pointer */ struct bs_t __iomem *ch_bs; /* Base structure pointer */
struct cm_t *ch_cm; /* Command queue pointer */ struct cm_t *ch_cm; /* Command queue pointer */
struct board_t *ch_bd; /* Board structure pointer */ struct board_t *ch_bd; /* Board structure pointer */
unsigned char *ch_vaddr; /* FEP memory origin */ unsigned char *ch_vaddr; /* FEP memory origin */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment