[0/2] csky: Convert memory accessors to static inlines

Message ID 20230808-csky-virt-to-phys-v1-0-ac727f8def2f@linaro.org
Headers
Series csky: Convert memory accessors to static inlines |

Message

Linus Walleij Aug. 8, 2023, 8:25 a.m. UTC
  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@linaro.org>
---
Linus Walleij (2):
      csky: Cast argument to virt_to_pfn() to (void *)
      csky: Make pfn accessors static inlines

 arch/arc/include/asm/page.h  |  2 +-
 arch/csky/include/asm/page.h | 13 ++++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)
---
base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
change-id: 20230808-csky-virt-to-phys-3d80c17211f9

Best regards,
  

Comments

Guo Ren Aug. 9, 2023, 12:15 a.m. UTC | #1
On Tue, Aug 8, 2023 at 4:26 PM Linus Walleij <linus.walleij@linaro.org> wrote:
>
> 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@linaro.org>
> ---
> Linus Walleij (2):
>       csky: Cast argument to virt_to_pfn() to (void *)
>       csky: Make pfn accessors static inlines
>
>  arch/arc/include/asm/page.h  |  2 +-
>  arch/csky/include/asm/page.h | 13 ++++++++++---
>  2 files changed, 11 insertions(+), 4 deletions(-)
> ---
> base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
> change-id: 20230808-csky-virt-to-phys-3d80c17211f9
>
> Best regards,
> --
> Linus Walleij <linus.walleij@linaro.org>
>
Thx, Approved.