Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1346785
| From | Paul Walmsley <paul@pwsan.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] soc: qcom: smp2p: Use memset_io to zero out new entries |
| Date | 2016-03-01 18:20 +0100 |
| Message-ID | <r7W7M-3DI-33@gated-at.bofh.it> (permalink) |
| References | <r66NY-6of-3@gated-at.bofh.it> <r6cgG-1Uy-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 25 Feb 2016, Andy Gross wrote: > On Thu, Feb 25, 2016 at 08:17:37AM -0800, Bjorn Andersson wrote: > > Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> > > --- > > drivers/soc/qcom/smp2p.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/soc/qcom/smp2p.c b/drivers/soc/qcom/smp2p.c > > index f1eed7f9dd67..61df598444e6 100644 > > --- a/drivers/soc/qcom/smp2p.c > > +++ b/drivers/soc/qcom/smp2p.c > > @@ -379,7 +379,7 @@ static int qcom_smp2p_alloc_outbound_item(struct qcom_smp2p *smp2p) > > return PTR_ERR(out); > > } > > > > - memset(out, 0, sizeof(*out)); > > + memset_io(out, 0, sizeof(*out)); > > out->magic = SMP2P_MAGIC; > > out->local_pid = smp2p->local_pid; > > out->remote_pid = smp2p->remote_pid; > > Good catch. I'll add this fix for the pull. Folks, is qmem_smem_get() intended to return pointers to device-mapped memory, as implied by this change? If so, shouldn't the return type of qmem_smem_get() et al. be void __iomem * rather than void *? - Paul
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] soc: qcom: smp2p: Use memset_io to zero out new entries Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-02-25 17:20 +0100
Re: [PATCH] soc: qcom: smp2p: Use memset_io to zero out new entries Andy Gross <andy.gross@linaro.org> - 2016-02-25 23:10 +0100
Re: [PATCH] soc: qcom: smp2p: Use memset_io to zero out new entries Paul Walmsley <paul@pwsan.com> - 2016-03-01 18:20 +0100
Re: [PATCH] soc: qcom: smp2p: Use memset_io to zero out new entries Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-03-01 18:30 +0100
csiph-web