Skip to content

Commit b6339d0

Browse files
Mark Hounschellgregkh
authored andcommitted
staging: dgap: fix sparse warnings for re_map_membase and re_map_port
This patch fixes sparse warnings for the re_map_membase and re_map_port variables. Signed-off-by: Mark Hounschell <markh@compro.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 23aa2ad commit b6339d0

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎drivers/staging/dgap/dgap.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ static int dgap_tty_init(struct board_t *brd)
13001300
int i;
13011301
int tlw;
13021302
uint true_count = 0;
1303-
u8 *vaddr;
1303+
u8 __iomem *vaddr;
13041304
u8 modem = 0;
13051305
struct channel_t *ch;
13061306
struct bs_t *bs;
@@ -4310,7 +4310,7 @@ static int dgap_tty_register_ports(struct board_t *brd)
43104310
*/
43114311
static void dgap_do_bios_load(struct board_t *brd, const u8 *ubios, int len)
43124312
{
4313-
u8 *addr;
4313+
u8 __iomem *addr;
43144314
uint offset;
43154315
int i;
43164316

@@ -4343,7 +4343,7 @@ static void dgap_do_bios_load(struct board_t *brd, const u8 *ubios, int len)
43434343
*/
43444344
static int dgap_test_bios(struct board_t *brd)
43454345
{
4346-
u8 *addr;
4346+
u8 __iomem *addr;
43474347
u16 word;
43484348
u16 err1;
43494349
u16 err2;
@@ -4386,7 +4386,7 @@ static int dgap_test_bios(struct board_t *brd)
43864386
*/
43874387
static void dgap_do_fep_load(struct board_t *brd, const u8 *ufep, int len)
43884388
{
4389-
u8 *addr;
4389+
u8 __iomem *addr;
43904390
uint offset;
43914391

43924392
if (!brd || (brd->magic != DGAP_BOARD_MAGIC) || !brd->re_map_membase)
@@ -4430,7 +4430,7 @@ static void dgap_do_fep_load(struct board_t *brd, const u8 *ufep, int len)
44304430
*/
44314431
static int dgap_test_fep(struct board_t *brd)
44324432
{
4433-
u8 *addr;
4433+
u8 __iomem *addr;
44344434
u16 word;
44354435
u16 err1;
44364436
u16 err2;
@@ -4529,7 +4529,7 @@ static void dgap_do_reset_board(struct board_t *brd)
45294529
*/
45304530
static void dgap_do_conc_load(struct board_t *brd, u8 *uaddr, int len)
45314531
{
4532-
char *vaddr;
4532+
char __iomem *vaddr;
45334533
u16 offset = 0;
45344534
struct downld_t *to_dp;
45354535

@@ -4667,7 +4667,7 @@ static void dgap_poll_tasklet(unsigned long data)
46674667
{
46684668
struct board_t *bd = (struct board_t *) data;
46694669
ulong lock_flags;
4670-
char *vaddr;
4670+
char __iomem *vaddr;
46714671
u16 head, tail;
46724672

46734673
if (!bd || (bd->magic != DGAP_BOARD_MAGIC))
@@ -4743,7 +4743,7 @@ static void dgap_poll_tasklet(unsigned long data)
47434743
static void dgap_cmdb(struct channel_t *ch, u8 cmd, u8 byte1,
47444744
u8 byte2, uint ncmds)
47454745
{
4746-
char *vaddr = NULL;
4746+
char __iomem *vaddr;
47474747
struct cm_t *cm_addr = NULL;
47484748
uint count;
47494749
uint n;
@@ -4828,7 +4828,7 @@ static void dgap_cmdb(struct channel_t *ch, u8 cmd, u8 byte1,
48284828
*=======================================================================*/
48294829
static void dgap_cmdw(struct channel_t *ch, u8 cmd, u16 word, uint ncmds)
48304830
{
4831-
char *vaddr = NULL;
4831+
char __iomem *vaddr;
48324832
struct cm_t *cm_addr = NULL;
48334833
uint count;
48344834
uint n;
@@ -4911,7 +4911,7 @@ static void dgap_cmdw(struct channel_t *ch, u8 cmd, u16 word, uint ncmds)
49114911
*=======================================================================*/
49124912
static void dgap_cmdw_ext(struct channel_t *ch, u16 cmd, u16 word, uint ncmds)
49134913
{
4914-
char *vaddr = NULL;
4914+
char __iomem *vaddr;
49154915
struct cm_t *cm_addr = NULL;
49164916
uint count;
49174917
uint n;
@@ -5058,7 +5058,7 @@ static void dgap_wmove(struct channel_t *ch, char *buf, uint cnt)
50585058
*/
50595059
static uint dgap_get_custom_baud(struct channel_t *ch)
50605060
{
5061-
u8 *vaddr;
5061+
u8 __iomem *vaddr;
50625062
ulong offset = 0;
50635063
uint value = 0;
50645064

@@ -5580,7 +5580,7 @@ static int dgap_event(struct board_t *bd)
55805580
ulong lock_flags2;
55815581
struct bs_t *bs;
55825582
u8 *event;
5583-
u8 *vaddr = NULL;
5583+
u8 __iomem *vaddr;
55845584
struct ev_t *eaddr = NULL;
55855585
uint head;
55865586
uint tail;

‎drivers/staging/dgap/dgap.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ struct board_t {
571571
ulong membase; /* Start of base memory of the card */
572572
ulong membase_end; /* End of base memory of the card */
573573

574-
u8 *re_map_port; /* Remapped io port of the card */
575-
u8 *re_map_membase;/* Remapped memory of the card */
574+
u8 __iomem *re_map_port; /* Remapped io port of the card */
575+
u8 __iomem *re_map_membase;/* Remapped memory of the card */
576576

577577
u8 runwait; /* # Processes waiting for FEP */
578578
u8 inhibit_poller; /* Tells the poller to leave us alone */

0 commit comments

Comments
 (0)