Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752133AbdFQAHw (ORCPT ); Fri, 16 Jun 2017 20:07:52 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:32862 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751144AbdFQAHu (ORCPT ); Fri, 16 Jun 2017 20:07:50 -0400 From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: bcm-kernel-feedback-list@broadcom.com, Florian Fainelli , Russell King , Catalin Marinas , Will Deacon , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org (open list), linux-arch@vger.kernel.org (open list:GENERIC INCLUDE/ASM HEADER FILES), Dave Gerlach , Tony Lindgren , Keerthy J , Alexandre Belloni , linux-omap@vger.kernel.org, Shawn Guo Subject: [PATCH v3 0/4] Generalize fncpy availability Date: Fri, 16 Jun 2017 17:07:40 -0700 Message-Id: <20170617000744.22158-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1125 Lines: 35 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 -- 2.9.3