Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1485468
| From | Peng Sun <sironhide0null@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 5/7] staging: slicoss: slicoss.c: fix different address space sparse warning |
| Date | 2016-09-17 04:10 +0200 |
| Message-ID | <sideN-4J0-11@gated-at.bofh.it> (permalink) |
| References | <sideN-4J0-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Signed-off-by: Peng Sun <sironhide0null@gmail.com> --- drivers/staging/slicoss/slicoss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index c92b8c5..bf9b381 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -2230,7 +2230,7 @@ static int slic_if_init(struct adapter *adapter, unsigned long *flags) struct sliccard *card = adapter->card; struct net_device *dev = adapter->netdev; struct slic_shmemory *sm = &adapter->shmem; - struct slic_shmem_data *sm_data = sm->shmem_data; + struct slic_shmem_data __iomem *sm_data = sm->shmem_data; int rc; /* adapter should be down at this point */ @@ -2314,7 +2314,7 @@ static int slic_if_init(struct adapter *adapter, unsigned long *flags) /* * clear any pending events, then enable interrupts */ - sm_data->isr = 0; + IOMEM_SET_FIELD32(0, sm_data, isr); slic_write32(adapter, SLIC_REG_ISR, 0); slic_write32(adapter, SLIC_REG_ICR, ICR_INT_ON); -- 2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/7] staging: slicoss: fix different address space sparse warnings Peng Sun <sironhide0null@gmail.com> - 2016-09-17 04:10 +0200 [PATCH 2/7] staging: slicoss: slicoss.c: fix different address space sparse warning Peng Sun <sironhide0null@gmail.com> - 2016-09-17 04:10 +0200 [PATCH 5/7] staging: slicoss: slicoss.c: fix different address space sparse warning Peng Sun <sironhide0null@gmail.com> - 2016-09-17 04:10 +0200 [PATCH 6/7] staging: slicoss: slicoss.c: fix different address space sparse warning Peng Sun <sironhide0null@gmail.com> - 2016-09-17 04:10 +0200 Re: [PATCH 0/7] staging: slicoss: fix different address space sparse warnings Greg KH <gregkh@linuxfoundation.org> - 2016-09-17 10:40 +0200
csiph-web