* [PATCH] PCI: tegra: use __pgprot() around static pgprot_t initializer
@ 2015-06-30 16:30 Ard Biesheuvel
[not found] ` <1435681818-14155-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Ard Biesheuvel @ 2015-06-30 16:30 UTC (permalink / raw)
To: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
thierry.reding-Re5JQEeQqe8AvxtiuMwx3w
Cc: swarren-3lzwWm7+Weoh9ZMKESR00Q, gnurou-Re5JQEeQqe8AvxtiuMwx3w,
Ard Biesheuvel
In order to comply with the rules that apply when STRICT_MM_TYPECHECKS
is defined, wrap the initializer for a pgprot_t in __pgprot().
Signed-off-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
drivers/pci/host/pci-tegra.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c
index 00e92720d7f7..f8a70b64b55c 100644
--- a/drivers/pci/host/pci-tegra.c
+++ b/drivers/pci/host/pci-tegra.c
@@ -382,8 +382,8 @@ static unsigned long tegra_pcie_conf_offset(unsigned int devfn, int where)
static struct tegra_pcie_bus *tegra_pcie_bus_alloc(struct tegra_pcie *pcie,
unsigned int busnr)
{
- pgprot_t prot = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY | L_PTE_XN |
- L_PTE_MT_DEV_SHARED | L_PTE_SHARED;
+ pgprot_t prot = __pgprot(L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY |
+ L_PTE_XN | L_PTE_MT_DEV_SHARED | L_PTE_SHARED);
phys_addr_t cs = pcie->cs->start;
struct tegra_pcie_bus *bus;
unsigned int i;
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <1435681818-14155-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
* Re: [PATCH] PCI: tegra: use __pgprot() around static pgprot_t initializer [not found] ` <1435681818-14155-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> @ 2015-08-25 15:05 ` Ard Biesheuvel [not found] ` <CAKv+Gu82vaxgjkURo_0-Ho6i8pDXM0EuPRxRZobkf4re+DFgKQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Ard Biesheuvel @ 2015-08-25 15:05 UTC (permalink / raw) To: linux-tegra-u79uwXL29TY76Z2rM5mHXA, Thierry Reding Cc: Stephen Warren, Alexandre Courbot, Ard Biesheuvel On 30 June 2015 at 18:30, Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote: > In order to comply with the rules that apply when STRICT_MM_TYPECHECKS > is defined, wrap the initializer for a pgprot_t in __pgprot(). > > Signed-off-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> > --- > drivers/pci/host/pci-tegra.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c > index 00e92720d7f7..f8a70b64b55c 100644 > --- a/drivers/pci/host/pci-tegra.c > +++ b/drivers/pci/host/pci-tegra.c > @@ -382,8 +382,8 @@ static unsigned long tegra_pcie_conf_offset(unsigned int devfn, int where) > static struct tegra_pcie_bus *tegra_pcie_bus_alloc(struct tegra_pcie *pcie, > unsigned int busnr) > { > - pgprot_t prot = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY | L_PTE_XN | > - L_PTE_MT_DEV_SHARED | L_PTE_SHARED; > + pgprot_t prot = __pgprot(L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY | > + L_PTE_XN | L_PTE_MT_DEV_SHARED | L_PTE_SHARED); > phys_addr_t cs = pcie->cs->start; > struct tegra_pcie_bus *bus; > unsigned int i; Ping? ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CAKv+Gu82vaxgjkURo_0-Ho6i8pDXM0EuPRxRZobkf4re+DFgKQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] PCI: tegra: use __pgprot() around static pgprot_t initializer [not found] ` <CAKv+Gu82vaxgjkURo_0-Ho6i8pDXM0EuPRxRZobkf4re+DFgKQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-08-25 15:56 ` Stephen Warren [not found] ` <55DC9020.2090300-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Stephen Warren @ 2015-08-25 15:56 UTC (permalink / raw) To: Ard Biesheuvel Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, Thierry Reding, Alexandre Courbot On 08/25/2015 09:05 AM, Ard Biesheuvel wrote: > On 30 June 2015 at 18:30, Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote: >> In order to comply with the rules that apply when STRICT_MM_TYPECHECKS >> is defined, wrap the initializer for a pgprot_t in __pgprot(). ... > > Ping? You forgot to send this to the PCI maintainer or mailing list, so I imagine they never received it. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <55DC9020.2090300-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>]
* Re: [PATCH] PCI: tegra: use __pgprot() around static pgprot_t initializer [not found] ` <55DC9020.2090300-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> @ 2015-08-26 8:50 ` Ard Biesheuvel 0 siblings, 0 replies; 4+ messages in thread From: Ard Biesheuvel @ 2015-08-26 8:50 UTC (permalink / raw) To: Stephen Warren Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, Thierry Reding, Alexandre Courbot On 25 August 2015 at 17:56, Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> wrote: > On 08/25/2015 09:05 AM, Ard Biesheuvel wrote: >> >> On 30 June 2015 at 18:30, Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> >> wrote: >>> >>> In order to comply with the rules that apply when STRICT_MM_TYPECHECKS >>> is defined, wrap the initializer for a pgprot_t in __pgprot(). > > ... >> >> >> Ping? > > > You forgot to send this to the PCI maintainer or mailing list, so I imagine > they never received it. Oops, my bad. Resent it just now Thanks, Ard. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-08-26 8:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 16:30 [PATCH] PCI: tegra: use __pgprot() around static pgprot_t initializer Ard Biesheuvel
[not found] ` <1435681818-14155-1-git-send-email-ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-08-25 15:05 ` Ard Biesheuvel
[not found] ` <CAKv+Gu82vaxgjkURo_0-Ho6i8pDXM0EuPRxRZobkf4re+DFgKQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-25 15:56 ` Stephen Warren
[not found] ` <55DC9020.2090300-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-08-26 8:50 ` Ard Biesheuvel
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.