public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Consolidate IO memcpy functions
@ 2024-09-10 13:43 Julian Vetter
  2024-09-10 13:43 ` [PATCH v3 1/4] Consolidate __memcpy_{to,from}io and __memset_io into a single lib Julian Vetter
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Julian Vetter @ 2024-09-10 13:43 UTC (permalink / raw)
  To: Arnd Bergmann, Catalin Marinas, Will Deacon, Guo Ren, Huacai Chen,
	WANG Xuerui, Andrew Morton
  Cc: linux-arm-kernel, linux-kernel, linux-csky, loongarch,
	Yann Sionneau, Julian Vetter

Fixed compilation problems on 32bit architectures.

Signed-off-by: Julian Vetter <jvetter@kalrayinc.com>

---
Changes for v3:
- Replaced again 'if(IS_ENABLED(CONFIG_64BIT))' by '#ifdef CONFIG_64BIT'
  because on 32bit architectures (e.g., csky), __raw_{read,write}q are
  not defined. So, it leads to compilation errors
---
Julian Vetter (4):
  Consolidate __memcpy_{to,from}io and __memset_io into a single lib
  Use generic io memcpy functions on the arm64 architecture
  Use generic io memcpy functions on the csky architecture
  Use generic io memcpy functions on the loongarch architecture

 arch/arm64/Kconfig             |   1 +
 arch/arm64/kernel/io.c         |  87 --------------------------
 arch/csky/Kconfig              |   1 +
 arch/csky/kernel/Makefile      |   2 +-
 arch/csky/kernel/io.c          |  91 ---------------------------
 arch/loongarch/Kconfig         |   1 +
 arch/loongarch/kernel/Makefile |   2 +-
 arch/loongarch/kernel/io.c     |  94 ----------------------------
 lib/Kconfig                    |   3 +
 lib/Makefile                   |   1 +
 lib/io_copy.c                  | 110 +++++++++++++++++++++++++++++++++
 11 files changed, 119 insertions(+), 274 deletions(-)
 delete mode 100644 arch/csky/kernel/io.c
 delete mode 100644 arch/loongarch/kernel/io.c
 create mode 100644 lib/io_copy.c

-- 
2.34.1






^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-09-16 16:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-10 13:43 [PATCH v3 0/4] Consolidate IO memcpy functions Julian Vetter
2024-09-10 13:43 ` [PATCH v3 1/4] Consolidate __memcpy_{to,from}io and __memset_io into a single lib Julian Vetter
2024-09-16 16:06   ` Catalin Marinas
2024-09-10 13:43 ` [PATCH v3 2/4] Use generic io memcpy functions on the arm64 architecture Julian Vetter
2024-09-16 16:07   ` Catalin Marinas
2024-09-10 13:43 ` [PATCH v3 3/4] Use generic io memcpy functions on the csky architecture Julian Vetter
2024-09-10 13:43 ` [PATCH v3 4/4] Use generic io memcpy functions on the loongarch architecture Julian Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox