of the
architectures page.h file.
Acked-by: Brian Cain
Signed-off-by: Linus Walleij
---
arch/hexagon/include/asm/page.h | 15 +--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/arch/hexagon/include/asm/page.h b/arch/hexagon/include/asm/page.h
index 9c03b9965f07
they get in.
Signed-off-by: Linus Walleij
---
Linus Walleij (2):
ARC: mm: Make virt_to_pfn() a static inline
Hexagon: Make pfn accessors statics inlines
arch/arc/include/asm/page.h | 21 -
arch/arc/include/asm/pgtable-levels.h | 2 +-
arch/hexagon/include
) as arguments
without warnings.
In order to do this we move the virt_to_phys() and
below the definition of the __pa() and __va() macros so it
compiles. The macro version was also able to do recursive
symbol resolution.
Signed-off-by: Linus Walleij
---
arch/arc/include/asm/page.h | 21
) as arguments
without warnings.
In order to do this we move the virt_to_phys() and
below the definition of the __pa() and __va() macros so it
compiles. The macro version was also able to do recursive
symbol resolution.
Signed-off-by: Linus Walleij
---
arch/arc/include/asm/page.h | 21
-by: Guo Ren
Signed-off-by: Linus Walleij
---
arch/csky/include/asm/page.h | 13 ++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/arch/csky/include/asm/page.h b/arch/csky/include/asm/page.h
index b23e3006a9e0..4a0502e324a6 100644
--- a/arch/csky/include/asm/page.h
+++ b/arch
This converts the virt_to_pfn and pfn_to_virt macros
into static inlines so we get proper type checking on
the pointers passed in.
Signed-off-by: Linus Walleij
---
Changes in v3:
- Do not return const void * from pfn_to_virt(), return
void * so we don't case a mess.
- Link to v2:
https
The virt_to_pfn() function takes a (void *) as argument, fix
this up to avoid exploiting the unintended polymorphism of
virt_to_pfn.
Acked-by: Guo Ren
Signed-off-by: Linus Walleij
---
arch/arc/include/asm/page.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arc
-by: Guo Ren
Signed-off-by: Linus Walleij
---
arch/csky/include/asm/page.h | 13 ++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/arch/csky/include/asm/page.h b/arch/csky/include/asm/page.h
index b23e3006a9e0..57b3f106ae77 100644
--- a/arch/csky/include/asm/page.h
+++ b/arch
This converts the virt_to_pfn and pfn_to_virt macros
into static inlines so we get proper type checking on
the pointers passed in.
Signed-off-by: Linus Walleij
---
Changes in v2:
- Fix compilation error on pfn_to_virt() by more casting.
- Return const void * rather than just void * from
The virt_to_pfn() function takes a (void *) as argument, fix
this up to avoid exploiting the unintended polymorphism of
virt_to_pfn.
Acked-by: Guo Ren
Signed-off-by: Linus Walleij
---
arch/arc/include/asm/page.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arc
This converts the virt_to_pfn and pfn_to_virt macros
into static inlines so we get proper type checking on
the pointers passed in.
Signed-off-by: Linus Walleij
---
Linus Walleij (2):
csky: Cast argument to virt_to_pfn() to (void *)
csky: Make pfn accessors static inlines
arch/arc
-by: Linus Walleij
---
arch/csky/include/asm/page.h | 13 ++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/arch/csky/include/asm/page.h b/arch/csky/include/asm/page.h
index b23e3006a9e0..80da7e96a8fa 100644
--- a/arch/csky/include/asm/page.h
+++ b/arch/csky/include/asm
The virt_to_pfn() function takes a (void *) as argument, fix
this up to avoid exploiting the unintended polymorphism of
virt_to_pfn.
Signed-off-by: Linus Walleij
---
arch/arc/include/asm/page.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arc/include/asm/page.h b
becomes polymorphic and accepts both a
(unsigned long) and a (void *).
Fix this in the RISCV mm init code, so we can implement
a strongly typed virt_to_pfn().
Reviewed-by: Alexandre Ghiti
Signed-off-by: Linus Walleij
---
arch/riscv/mm/init.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions
becomes polymorphic and accepts both a
(unsigned long) and a (void *).
Fix up the offending call in arch/arc with an explicit cast.
Signed-off-by: Linus Walleij
---
arch/arc/mm/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c
index
-by: Geert Uytterhoeven
Signed-off-by: Linus Walleij
---
ChangeLog v2->v3:
- Fix up versioning. This is v3.
- Let Coldfire __pte_page() return a (void *) instead of __va
- Delete Coldfire pte_pagenr() which was using unsigned long
semantics from __pte_page()
- Drop ill-advised change to Coldf
) as arguments
without warnings.
For symmetry we do the same change for pfn_to_virt.
Immediately define virt_to_pfn and pfn_to_virt to the static
inline after the static inline since this style of defining
functions is used for the generic helpers.
Signed-off-by: Linus Walleij
---
include/asm
it impossible to include
explicitly.
Link:
https://lore.kernel.org/linux-mm/20220701160004.24e5ab59a55499f4c...@linux-foundation.org/
Signed-off-by: Linus Walleij
---
Russell: the vs inclusion really
gave me headaches, if you have a better idea how to do it
I'm all ears!
---
arch/arm/common
) as arguments
without warnings.
Since arm64 is using to provide
__phys_to_pfn() we need to move the inclusion of that header
up, so we can resolve the static inline at compile time.
Acked-by: Catalin Marinas
Signed-off-by: Linus Walleij
---
arch/arm64/include/asm/memory.h | 9 -
1 file
) as arguments
without warnings.
For symmetry, do the same with pfn_to_virt().
Signed-off-by: Linus Walleij
---
arch/m68k/include/asm/page_mm.h | 11 +--
arch/m68k/include/asm/page_no.h | 11 +--
2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/arch/m68k/include/asm
Talpey
Signed-off-by: Linus Walleij
---
fs/cifs/cifsglob.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 414685c5d530..3d29a4bbbc40 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -2218,7 +2218,7 @@ static inline void
Marinas
Signed-off-by: Linus Walleij
---
arch/arm64/kernel/vdso.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c
index 0119dc91abb5..d9e1355730ef 100644
--- a/arch/arm64/kernel/vdso.c
+++ b/arch/arm64/kernel/vdso.c
@@ -288,7
-by: Linus Walleij
---
fs/netfs/iterator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/netfs/iterator.c b/fs/netfs/iterator.c
index 8a4c86687429..0431ec4a7298 100644
--- a/fs/netfs/iterator.c
+++ b/fs/netfs/iterator.c
@@ -240,7 +240,7 @@ static ssize_t netfs_extract_kvec_to_sg
Talpey
Signed-off-by: Linus Walleij
---
fs/cifs/smbdirect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c
index 0362ebd4fa0f..964f07375a8d 100644
--- a/fs/cifs/smbdirect.c
+++ b/fs/cifs/smbdirect.c
@@ -2500,7 +2500,7 @@ static ssize_t
trimmed it down to the mailing
lists since these people certainly have received the patches
before.
Signed-off-by: Linus Walleij
---
Changes in v3:
- Fix up the Coldfire changes in accordance with Geert's feedback.
- Link to v2:
https://lore.kernel.org/r/20230503-virt-to-pfn-v6-4-rc1-v2-0
The virt_addr_valid() should be passed a pointer, the current
code passing a long unsigned int is just exploiting the
unintentional polymorphism of these calls being implemented
as preprocessor macros.
Signed-off-by: Linus Walleij
---
fs/proc/kcore.c | 2 +-
1 file changed, 1 insertion(+), 1
) as arguments
without warnings.
For symmetry, do the same with pfn_to_virt().
Signed-off-by: Linus Walleij
---
arch/m68k/include/asm/page_mm.h | 11 +--
arch/m68k/include/asm/page_no.h | 11 +--
2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/arch/m68k/include/asm
-by: Linus Walleij
---
fs/netfs/iterator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/netfs/iterator.c b/fs/netfs/iterator.c
index 8a4c86687429..0431ec4a7298 100644
--- a/fs/netfs/iterator.c
+++ b/fs/netfs/iterator.c
@@ -240,7 +240,7 @@ static ssize_t netfs_extract_kvec_to_sg
becomes polymorphic and accepts both a
(unsigned long) and a (void *).
Fix this in the RISCV mm init code, so we can implement
a strongly typed virt_to_pfn().
Reviewed-by: Alexandre Ghiti
Signed-off-by: Linus Walleij
---
arch/riscv/mm/init.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions
Talpey
Signed-off-by: Linus Walleij
---
fs/cifs/cifsglob.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 414685c5d530..3d29a4bbbc40 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -2218,7 +2218,7 @@ static inline void
Marinas
Signed-off-by: Linus Walleij
---
arch/arm64/kernel/vdso.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c
index 0119dc91abb5..d9e1355730ef 100644
--- a/arch/arm64/kernel/vdso.c
+++ b/arch/arm64/kernel/vdso.c
@@ -288,7
) as arguments
without warnings.
Since arm64 is using to provide
__phys_to_pfn() we need to move the inclusion of that header
up, so we can resolve the static inline at compile time.
Acked-by: Catalin Marinas
Signed-off-by: Linus Walleij
---
arch/arm64/include/asm/memory.h | 9 -
1 file
) as arguments
without warnings.
For symmetry we do the same change for pfn_to_virt.
Immediately define virt_to_pfn and pfn_to_virt to the static
inline after the static inline since this style of defining
functions is used for the generic helpers.
Signed-off-by: Linus Walleij
---
include/asm
it impossible to include
explicitly.
Link:
https://lore.kernel.org/linux-mm/20220701160004.24e5ab59a55499f4c...@linux-foundation.org/
Signed-off-by: Linus Walleij
---
Russell: the vs inclusion really
gave me headaches, if you have a better idea how to do it
I'm all ears!
---
arch/arm/common
Talpey
Signed-off-by: Linus Walleij
---
fs/cifs/smbdirect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c
index 0362ebd4fa0f..964f07375a8d 100644
--- a/fs/cifs/smbdirect.c
+++ b/fs/cifs/smbdirect.c
@@ -2500,7 +2500,7 @@ static ssize_t
The virt_addr_valid() should be passed a pointer, the current
code passing a long unsigned int is just exploiting the
unintentional polymorphism of these calls being implemented
as preprocessor macros.
Signed-off-by: Linus Walleij
---
fs/proc/kcore.c | 2 +-
1 file changed, 1 insertion(+), 1
trimmed it down to the mailing
lists since these people certainly have received the patches
before.
Signed-off-by: Linus Walleij
---
Changes in v2:
- Fix some "void * x" into "void *x" in generic page accessors and
in m68k.
- Collected a few ACKs
- All build tests appear to
-by: Geert Uytterhoeven
Signed-off-by: Linus Walleij
---
ChangeLog v2->v3:
- Fix the sun3 pgtable macro to not cast to unsigned long.
- Make a similar change to the ColdFire include.
ChangeLog v1->v2:
- Add an extra parens around the page argument to the
PD_PTABLE() macro, as is normally re
becomes polymorphic and accepts both a
(unsigned long) and a (void *).
Fix up the offending call in arch/arc with an explicit cast.
Signed-off-by: Linus Walleij
---
arch/arc/mm/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c
index
> -((unsigned long) __va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT))
> +(__va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT))
Thanks, folded this into the patch!
Yours,
Linus Walleij
__
-by: Linus Walleij
---
fs/netfs/iterator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/netfs/iterator.c b/fs/netfs/iterator.c
index 8a4c86687429..0431ec4a7298 100644
--- a/fs/netfs/iterator.c
+++ b/fs/netfs/iterator.c
@@ -240,7 +240,7 @@ static ssize_t netfs_extract_kvec_to_sg
) as arguments
without warnings.
For symmetry we do the same change for pfn_to_virt.
Immediately define virt_to_pfn and pfn_to_virt to the static
inline after the static inline since this style of defining
functions is used for the generic helpers.
Signed-off-by: Linus Walleij
---
include/asm
) as arguments
without warnings.
Since arm64 is using to provide
__phys_to_pfn() we need to move the inclusion of that header
up, so we can resolve the static inline at compile time.
Signed-off-by: Linus Walleij
---
arch/arm64/include/asm/memory.h | 9 -
1 file changed, 8 insertions
-by: Linus Walleij
---
fs/cifs/cifsglob.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 414685c5d530..3d29a4bbbc40 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -2218,7 +2218,7 @@ static inline void cifs_sg_set_buf(struct
becomes polymorphic and accepts both a
(unsigned long) and a (void *).
Fix this in the RISCV mm init code, so we can implement
a strongly typed virt_to_pfn().
Signed-off-by: Linus Walleij
---
arch/riscv/mm/init.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/mm
-by: Linus Walleij
---
fs/cifs/smbdirect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c
index 0362ebd4fa0f..964f07375a8d 100644
--- a/fs/cifs/smbdirect.c
+++ b/fs/cifs/smbdirect.c
@@ -2500,7 +2500,7 @@ static ssize_t smb_extract_kvec_to_rdma
becomes polymorphic and accepts both a
(unsigned long) and a (void *).
Fix up the offending calls in arch/m68k with explicit casts.
Signed-off-by: Linus Walleij
---
ChangeLog v1->v2:
- Add an extra parens around the page argument to the
PD_PTABLE() macro, as is normally required.
---
arch/m68k
it impossible to include
explicitly.
Link:
https://lore.kernel.org/linux-mm/20220701160004.24e5ab59a55499f4c...@linux-foundation.org/
Signed-off-by: Linus Walleij
---
Russell: the vs inclusion really
gave me headaches, if you have a better idea how to do it
I'm all ears!
---
arch/arm/common
-by: Linus Walleij
---
arch/arm64/kernel/vdso.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c
index 0119dc91abb5..d9e1355730ef 100644
--- a/arch/arm64/kernel/vdso.c
+++ b/arch/arm64/kernel/vdso.c
@@ -288,7 +288,7 @@ static int
) as arguments
without warnings.
For symmetry, do the same with pfn_to_virt().
Signed-off-by: Linus Walleij
---
arch/m68k/include/asm/page_mm.h | 11 +--
arch/m68k/include/asm/page_no.h | 11 +--
2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/arch/m68k/include/asm
The virt_addr_valid() should be passed a pointer, the current
code passing a long unsigned int is just exploiting the
unintentional polymorphism of these calls being implemented
as preprocessor macros.
Signed-off-by: Linus Walleij
---
fs/proc/kcore.c | 2 +-
1 file changed, 1 insertion(+), 1
becomes polymorphic and accepts both a
(unsigned long) and a (void *).
Fix up the offending call in arch/arc with an explicit cast.
Signed-off-by: Linus Walleij
---
arch/arc/mm/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c
index
ctoring alone
makes the patch highly valuable.
Reviewed-by: Linus Walleij
Yours,
Linus Walleij
___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
rms. This
> should have no user visible effect.
>
> Signed-off-by: Arnd Bergmann
Looks good to me.
Reviewed-by: Linus Walleij
Yours,
Linus Walleij
___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
DMA_CACHE_RWFO option and the cache
> management implementation for it. This also helps with other ARMv6
> issues, but for the moment leaves the ability to build a kernel that
> can run on both ARMv7 SMP and single-processor ARMv6, which we probably
> want to stop supporting as well, but not a
becomes polymorphic and accepts both a
(unsigned long) and a (void *).
Fix up the offending call in arch/arc with an explicit cast.
Signed-off-by: Linus Walleij
---
arch/arc/mm/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c
index
implement a mechanism similar to this one
> in this series (see [2] and [3]).
OK I am not going to challenge the clock source maintainers on this,
so if that is what they want then that is what they should get.
It's fine to convert the Integrator driver to
ock has this limitation by simply commenting out the IRQ
line for it from the device tree.
Maybe there is something about this I don't understand.
Yours,
Linus Walleij
___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
timer with a valid interrupt assigned as clock event,
while a timer without interrupt can be used for clock source.
This has the upside of not needing any special aliases or
chosen things.
Yours,
Linus Walleij
___
linux-snps-arc mailing list
linux-snps-arc@l
> * Small fixies.
Patch applied.
Yours,
Linus Walleij
___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
On Fri, Sep 28, 2018 at 3:15 PM Eugeniy Paltsev
wrote:
> This patch adds documentation of device tree bindings for the Synopsys
> GPIO via CREG driver.
>
> Reviewed-by: Rob Herring
> Reviewed-by: Linus Walleij
> Signed-off-by: Eugeniy Paltsev
> ---
> Changes v3-&
On Thu, Aug 30, 2018 at 8:16 PM Eugeniy Paltsev
wrote:
> On Thu, 2018-08-30 at 10:43 +0200, Linus Walleij wrote:
> > > +- snps,bit-per-line: Number of bits per each gpio line (see picture).
> > > + Array the size of "snps,ngpios"
> > > +- snps,shift: Shi
Default values for different lines can be achieved by hogs
if it's OK to tie them up perpetually, else work on creating generic
inialization values in gpio.txt and implement that in
gpiolib-of.c for everyone. This discussion comes up from time
to time.
Yours,
Linus Walleij
___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Instead of open coding logic for reading and writing GPIO lines,
use the generic GPIO library. Also switch to using the spinlock
from the generic GPIO to protect the registers.
Cc: linux-snps-arc@lists.infradead.org
Cc: Christian Ruppert
Signed-off-by: Linus Walleij
---
drivers/gpio/Kconfig
Ruppert
Signed-off-by: Linus Walleij
---
drivers/gpio/gpio-tb10x.c | 27 ++-
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c
index a12cd0b5c972..422b0ac5a9de 100644
--- a/drivers/gpio/gpio-tb10x.c
+++
This driver includes the legacy and
but all it needs is really .
Cc: linux-snps-arc@lists.infradead.org
Cc: Christian Ruppert
Signed-off-by: Linus Walleij
---
drivers/gpio/gpio-tb10x.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpio/gpio-tb10x.c b/drivers
org>
Reviewed-by: Linus Walleij <linus.wall...@linaro.org>
Yours,
Linus Walleij
___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
emented at the driver
> level.
>
> So instead of dealing with a named clocksource macro, let's use a more generic
> one: TIMER_OF_DECLARE.
>
> The patch has not functional changes.
>
> Signed-off-by: Daniel Lezcano <daniel.lezc...@linaro.org>'
This makes the macro make
On Fri, Apr 22, 2016 at 7:16 AM, Vineet Gupta
<vineet.gup...@synopsys.com> wrote:
> On Wednesday 20 April 2016 02:28 PM, Linus Walleij wrote:
>> Instead of indirectly selecting GPIOLIB via the
>> ARCH_REQUIRE_GPIOLIB symbol, just select GPIOLIB.
>>
>> Cc: Michael B
Instead of indirectly selecting GPIOLIB via the
ARCH_REQUIRE_GPIOLIB symbol, just select GPIOLIB.
Cc: Michael Büsch <m...@bues.ch>
Cc: Vineet Gupta <vgu...@synopsys.com>
Cc: linux-snps-arc@lists.infradead.org
Signed-off-by: Linus Walleij <linus.wall...@linaro.org>
---
Variou
70 matches
Mail list logo