linux-next/arch/powerpc/crypto
Peter Zijlstra cdd30ebb1b module: Convert symbol namespace to string literal
Clean up the existing export namespace code along the same lines of
commit 33def8498f ("treewide: Convert macro and uses of __section(foo)
to __section("foo")") and for the same reason, it is not desired for the
namespace argument to be a macro expansion itself.

Scripted using

  git grep -l -e MODULE_IMPORT_NS -e EXPORT_SYMBOL_NS | while read file;
  do
    awk -i inplace '
      /^#define EXPORT_SYMBOL_NS/ {
        gsub(/__stringify\(ns\)/, "ns");
        print;
        next;
      }
      /^#define MODULE_IMPORT_NS/ {
        gsub(/__stringify\(ns\)/, "ns");
        print;
        next;
      }
      /MODULE_IMPORT_NS/ {
        $0 = gensub(/MODULE_IMPORT_NS\(([^)]*)\)/, "MODULE_IMPORT_NS(\"\\1\")", "g");
      }
      /EXPORT_SYMBOL_NS/ {
        if ($0 ~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+),/) {
  	if ($0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/ &&
  	    $0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(\)/ &&
  	    $0 !~ /^my/) {
  	  getline line;
  	  gsub(/[[:space:]]*\\$/, "");
  	  gsub(/[[:space:]]/, "", line);
  	  $0 = $0 " " line;
  	}

  	$0 = gensub(/(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/,
  		    "\\1(\\2, \"\\3\")", "g");
        }
      }
      { print }' $file;
  done

Requested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://mail.google.com/mail/u/2/#inbox/FMfcgzQXKWgMmjdFwwdsfgxzKpVHWPlc
Acked-by: Greg KH <gregkh@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2024-12-02 11:34:44 -08:00
..
.gitignore powerpc/crypto: Add generated P8 asm to .gitignore 2024-06-04 17:45:46 +10:00
aes_cbc.c crypto: vmx - Move to arch/powerpc/crypto 2024-01-26 16:36:57 +08:00
aes_ctr.c crypto: vmx - Move to arch/powerpc/crypto 2024-01-26 16:36:57 +08:00
aes_xts.c crypto: vmx - Move to arch/powerpc/crypto 2024-01-26 16:36:57 +08:00
aes-gcm-p10-glue.c This update includes the following changes: 2024-11-19 10:28:41 -08:00
aes-gcm-p10.S crypto: powerpc/p10-aes-gcm - Re-write AES/GCM stitched implementation 2024-10-05 13:22:05 +08:00
aes-spe-core.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
aes-spe-glue.c cyrpto: powerpc/aes - delete the rebundant word "block" in comments 2022-07-22 16:22:04 +08:00
aes-spe-keys.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
aes-spe-modes.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
aes-spe-regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
aes-tab-4k.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
aes.c crypto: vmx - Move to arch/powerpc/crypto 2024-01-26 16:36:57 +08:00
aesp8-ppc.h crypto: vmx - Move to arch/powerpc/crypto 2024-01-26 16:36:57 +08:00
aesp8-ppc.pl crypto: vmx - Move to arch/powerpc/crypto 2024-01-26 16:36:57 +08:00
aesp10-ppc.pl powerpc/crypto: Fix aes-gcm-p10 link errors 2023-05-30 15:50:32 +10:00
chacha-p10-glue.c powerpc/crypto/chacha-p10: Fix failure on non Power10 2024-04-05 00:02:18 +11:00
chacha-p10le-8x.S crypto: chacha20-p10 - An optimized Chacha20 implementation with 8-way unrolling for ppc64le 2023-07-14 18:21:30 +10:00
crc32-vpmsum_core.S crypto: powerpc - Use address generation helper for asm 2023-02-10 22:17:36 +11:00
crc32c-vpmsum_asm.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
crc32c-vpmsum_glue.c crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN 2020-01-09 11:30:53 +08:00
crc-vpmsum_test.c treewide: use get_random_u32_below() instead of deprecated function 2022-11-18 02:15:15 +01:00
crct10dif-vpmsum_asm.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 136 2019-05-30 11:25:15 -07:00
crct10dif-vpmsum_glue.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
curve25519-ppc64le_asm.S crypto: ppc/curve25519 - Low-level primitives for ppc64le 2024-05-31 17:34:56 +08:00
curve25519-ppc64le-core.c crypto: ppc/curve25519 - add missing MODULE_DESCRIPTION() macro 2024-08-02 21:11:20 +08:00
ghash.c crypto: vmx - Move to arch/powerpc/crypto 2024-01-26 16:36:57 +08:00
ghashp8-ppc.pl crypto: vmx - Move to arch/powerpc/crypto 2024-01-26 16:36:57 +08:00
ghashp10-ppc.pl powerpc/crypto: Fix aes-gcm-p10 link errors 2023-05-30 15:50:32 +10:00
Kconfig crypto: powerpc/p10-aes-gcm - Add dependency on CRYPTO_SIMDand re-enable CRYPTO_AES_GCM_P10 2024-10-05 13:22:05 +08:00
Makefile crypto: ppc/curve25519 - Update Kconfig and Makefile for ppc64le 2024-05-31 17:34:56 +08:00
md5-asm.S powerpc: flexible GPR range save/restore macros 2021-11-29 23:15:20 +11:00
md5-glue.c crypto: lib/sha1 - remove unnecessary includes of linux/cryptohash.h 2020-05-08 15:32:17 +10:00
poly1305-p10-glue.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
poly1305-p10le_64.S crypto: poly1305-p10 - An optimized Poly1305 implementation with 4-way unrolling for ppc64le 2023-07-14 18:21:31 +10:00
ppc-xlate.pl crypto: p10-aes-gcm - A perl script to process PowerPC assembler source. 2023-03-14 17:06:43 +08:00
sha1-powerpc-asm.S powerpc: flexible GPR range save/restore macros 2021-11-29 23:15:20 +11:00
sha1-spe-asm.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
sha1-spe-glue.c crypto: powerpc/sha - remove duplicate hash init function 2021-12-31 18:10:55 +11:00
sha1.c crypto: powerpc/sha - remove duplicate hash init function 2021-12-31 18:10:55 +11:00
sha256-spe-asm.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
sha256-spe-glue.c crypto: powerpc/sha - remove duplicate hash init function 2021-12-31 18:10:55 +11:00
vmx.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00