Commit 6a30cddb authored by Mark Hounschell's avatar Mark Hounschell Committed by Greg Kroah-Hartman

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

This patch fixes sparse warnings for the entire cm_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 405b26d9
...@@ -1304,7 +1304,7 @@ static int dgap_tty_init(struct board_t *brd) ...@@ -1304,7 +1304,7 @@ static int dgap_tty_init(struct board_t *brd)
u8 modem = 0; u8 modem = 0;
struct channel_t *ch; struct channel_t *ch;
struct bs_t __iomem *bs; struct bs_t __iomem *bs;
struct cm_t *cm; struct cm_t __iomem *cm;
if (!brd) if (!brd)
return -ENXIO; return -ENXIO;
...@@ -4744,7 +4744,7 @@ static void dgap_cmdb(struct channel_t *ch, u8 cmd, u8 byte1, ...@@ -4744,7 +4744,7 @@ static void dgap_cmdb(struct channel_t *ch, u8 cmd, u8 byte1,
u8 byte2, uint ncmds) u8 byte2, uint ncmds)
{ {
char __iomem *vaddr; char __iomem *vaddr;
struct cm_t *cm_addr = NULL; struct __iomem cm_t *cm_addr;
uint count; uint count;
uint n; uint n;
u16 head; u16 head;
...@@ -4829,7 +4829,7 @@ static void dgap_cmdb(struct channel_t *ch, u8 cmd, u8 byte1, ...@@ -4829,7 +4829,7 @@ static void dgap_cmdb(struct channel_t *ch, u8 cmd, u8 byte1,
static void dgap_cmdw(struct channel_t *ch, u8 cmd, u16 word, uint ncmds) static void dgap_cmdw(struct channel_t *ch, u8 cmd, u16 word, uint ncmds)
{ {
char __iomem *vaddr; char __iomem *vaddr;
struct cm_t *cm_addr = NULL; struct __iomem cm_t *cm_addr;
uint count; uint count;
uint n; uint n;
u16 head; u16 head;
...@@ -4912,7 +4912,7 @@ static void dgap_cmdw(struct channel_t *ch, u8 cmd, u16 word, uint ncmds) ...@@ -4912,7 +4912,7 @@ static void dgap_cmdw(struct channel_t *ch, u8 cmd, u16 word, uint ncmds)
static void dgap_cmdw_ext(struct channel_t *ch, u16 cmd, u16 word, uint ncmds) static void dgap_cmdw_ext(struct channel_t *ch, u16 cmd, u16 word, uint ncmds)
{ {
char __iomem *vaddr; char __iomem *vaddr;
struct cm_t *cm_addr = NULL; struct __iomem cm_t *cm_addr;
uint count; uint count;
uint n; uint n;
u16 head; u16 head;
......
...@@ -969,7 +969,7 @@ struct digi_cmd { ...@@ -969,7 +969,7 @@ struct digi_cmd {
struct channel_t { struct channel_t {
int magic; /* Channel Magic Number */ int magic; /* Channel Magic Number */
struct bs_t __iomem *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 __iomem *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 */
unsigned char *ch_taddr; /* Write buffer origin */ unsigned char *ch_taddr; /* Write buffer 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