Skip to content

Generalize fncpy availability

Florian Fainelli linux-arch linux-arm-kernel linux-omap lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 18 repliesIn review
  2. v24 patches 0 repliesSuperseded
  3. v13 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- correct include guard names in asm-generic/fncpy.h to __ASM_FNCPY_H
- utilize Kbuild to provide the fncpy.h header on ARM64

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ARM: fncpy: Rename include guardsarch/arm/include/asm/fncpy.h+3 -30 replies
2/4asm-generic: Provide a fncpy() implementationinclude/asm-generic/fncpy.h+93 -08 replies
3/4arm64: Provide a fncpy implementationarch/arm64/include/asm/Kbuild+1 -00 replies
4/4misc: sram: Allow ARM64 to select SRAM_EXECdrivers/misc/Kconfig+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] Generalize fncpy availability

Hi all,

This patch series makes ARM's fncpy() implementation more generic (dropping the Thumb-specifics) and available in an asm-generic header file.

Tested on a Broadcom ARM64 STB platform with code that is written to SRAM.

Changes in v3 (thanks Doug!):
- correct include guard names in asm-generic/fncpy.h to __ASM_FNCPY_H
- utilize Kbuild to provide the fncpy.h header on ARM64

Changes in v2:
- leave the ARM implementation where it is
- make the generic truly generic (no)

This is helpful in making SoC-specific power management code become true drivers that can be shared between different architectures.

Thanks!

Florian Fainelli (4):
ARM: fncpy: Rename include guards
asm-generic: Provide a fncpy() implementation
arm64: Provide a fncpy implementation
misc: sram: Allow ARM64 to select SRAM_EXEC

 arch/arm/include/asm/fncpy.h  |  6 +--
 arch/arm64/include/asm/Kbuild |  1 +
 drivers/misc/Kconfig          |  2 +-
 include/asm-generic/fncpy.h   | 93 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 98 insertions(+), 4 deletions(-)
 create mode 100644 include/asm-generic/fncpy.h
Signature · 1 line
2.9.3