Skip to content

LLVMLinux: Patches to enable the kernel to be compiled with clang/LLVM

[email protected] dm-devel linux-btrfs linux-crypto linux-raid lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest12 patches 1 replyIn review
  2. v312 patches 9 repliesSuperseded
  3. v2 posting 2/27 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/26 patches0 repliesSuperseded
v14 patches10 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12crypto: LLVMLinux: Add macro to remove use of VLAIS in crypto codeinclude/crypto/hash.h+5 -00 replies
2/12btrfs: LLVMLinux: Remove VLAISfs/btrfs/hash.c+7 -90 replies
3/12crypto: LLVMLinux: Remove VLAIS from crypto/ccp/ccp-crypto-sha.cdrivers/crypto/ccp/ccp-crypto-sha.c+6 -70 replies
4/12crypto: LLVMLinux: Remove VLAIS from crypto/mv_cesa.cdrivers/crypto/mv_cesa.c+18 -230 replies
5/12crypto: LLVMLinux: Remove VLAIS from crypto/n2_core.cdrivers/crypto/n2_core.c+4 -70 replies
6/12crypto: LLVMLinux: Remove VLAIS from crypto/omap_sham.cdrivers/crypto/omap-sham.c+11 -170 replies
7/12crypto: LLVMLinux: Remove VLAIS from crypto/.../qat_algs.cdrivers/crypto/qat/qat_common/qat_algs.c+14 -170 replies
8/12crypto, dm: LLVMLinux: Remove VLAIS usage from dm-cryptdrivers/md/dm-crypt.c+14 -200 replies
9/12crypto: LLVMLinux: Remove VLAIS usage from crypto/hmac.ccrypto/hmac.c+11 -140 replies
10/12crypto: LLVMLinux: Remove VLAIS usage from libcrc32c.clib/libcrc32c.c+7 -90 replies
11/12security, crypto: LLVMLinux: Remove VLAIS from ima_crypto.csecurity/integrity/ima/ima_crypto.c+19 -281 reply
12/12crypto: LLVMLinux: Remove VLAIS usage from crypto/testmgr.ccrypto/testmgr.c+6 -80 replies

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchMark CharleboisHerbert XuJan-Simon MöllerChris MasonDmitry Kasatkin
1/12R-b A-b
2/12R-b A-b R-b A-b
3/12R-b A-b
4/12R-b A-b R-b
5/12R-b A-b R-b
6/12R-b A-b R-b
7/12R-b A-b R-b
8/12R-b A-b
9/12R-b A-b
10/12R-b A-b
11/12R-b A-b R-b A-b
12/12R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/12] LLVMLinux: Patches to enable the kernel to be compiled with clang/LLVM

From: Behan Webster <[email protected]>

Replaced the use of a Variable Length Array In Struct (VLAIS) with a C99 compliant equivalent. These patches allocate the appropriate amount of memory using a char array using the SHASH_DESC_ON_STACK macro.

There are places in the kernel whose maintainers have previously taken our patches to remove VLAIS from their crypto code. Once this patch set is accepted into mainline, I'll go back and resubmit patches to these maintainers to use this new macro so the same approach is used consistently in all places in the kernel.

The LLVMLinux project aims to fully build the Linux kernel using both gcc and clang (the C front end for the LLVM compiler infrastructure project).

Behan Webster (6):
crypto: LLVMLinux: Add macro to remove use of VLAIS in crypto code
crypto: LLVMLinux: Remove VLAIS from crypto/mv_cesa.c
crypto: LLVMLinux: Remove VLAIS from crypto/n2_core.c
crypto: LLVMLinux: Remove VLAIS from crypto/omap_sham.c
crypto: LLVMLinux: Remove VLAIS from crypto/.../qat_algs.c security, crypto: LLVMLinux: Remove VLAIS from ima_crypto.c

Jan-Simon Möller (5):
crypto: LLVMLinux: Remove VLAIS from crypto/ccp/ccp-crypto-sha.c crypto, dm: LLVMLinux: Remove VLAIS usage from dm-crypt
crypto: LLVMLinux: Remove VLAIS usage from crypto/hmac.c
crypto: LLVMLinux: Remove VLAIS usage from libcrc32c.c
crypto: LLVMLinux: Remove VLAIS usage from crypto/testmgr.c

Vinícius Tinti (1):
btrfs: LLVMLinux: Remove VLAIS

 crypto/hmac.c                            | 25 ++++++++---------
 crypto/testmgr.c                         | 14 ++++------
 drivers/crypto/ccp/ccp-crypto-sha.c      | 13 ++++-----
 drivers/crypto/mv_cesa.c                 | 41 ++++++++++++----------------
 drivers/crypto/n2_core.c                 | 11 +++-----
 drivers/crypto/omap-sham.c               | 28 ++++++++-----------
 drivers/crypto/qat/qat_common/qat_algs.c | 31 ++++++++++-----------
 drivers/md/dm-crypt.c                    | 34 ++++++++++-------------
 fs/btrfs/hash.c                          | 16 +++++------
 include/crypto/hash.h                    |  5 ++++
 lib/libcrc32c.c                          | 16 +++++------
 security/integrity/ima/ima_crypto.c      | 47 +++++++++++++-------------------
 12 files changed, 122 insertions(+), 159 deletions(-)
Signature · 1 line
1.9.1