[PATCH v2 0/6] crypto: use 2-arg strscpy where destination size is known

Thorsten Blum posted 6 patches 2 days, 6 hours ago
crypto/api.c                                             | 2 +-
crypto/crypto_user.c                                     | 9 ++++-----
crypto/hctr2.c                                           | 3 +--
crypto/lrw.c                                             | 2 +-
crypto/lskcipher.c                                       | 3 +--
crypto/xts.c                                             | 3 ++-
drivers/crypto/cavium/nitrox/nitrox_hal.c                | 3 ++-
drivers/crypto/ccp/ccp-crypto-sha.c                      | 2 +-
drivers/crypto/hisilicon/qm.c                            | 5 +----
drivers/crypto/intel/qat/qat_common/adf_cfg.c            | 7 ++++---
drivers/crypto/intel/qat/qat_common/adf_cfg_services.c   | 2 +-
drivers/crypto/intel/qat/qat_common/adf_mstate_mgr.c     | 3 ++-
.../crypto/intel/qat/qat_common/adf_transport_debug.c    | 3 ++-
drivers/crypto/intel/qat/qat_common/qat_compression.c    | 3 ++-
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c        | 4 ++--
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c      | 4 ++--
16 files changed, 29 insertions(+), 29 deletions(-)
[PATCH v2 0/6] crypto: use 2-arg strscpy where destination size is known
Posted by Thorsten Blum 2 days, 6 hours ago
To simplify the code, drop explicit and hard-coded size arguments from
strscpy() where the destination buffer has a fixed size and strscpy()
can automatically determine it using sizeof().

Changes in v2:
- Rebase and split up
- v1: https://lore.kernel.org/r/20260525103038.825690-4-thorsten.blum@linux.dev/

Thorsten Blum (6):
  crypto: use 2-arg strscpy where destination size is known
  crypto: cavium - use 2-arg strscpy where destination size is known
  crypto: ccp - use 2-arg strscpy where destination size is known
  crypto: hisilicon - use 2-arg strscpy where destination size is known
  crypto: qat - use 2-arg strscpy where destination size is known
  crypto: octeontx - use 2-arg strscpy where destination size is known

 crypto/api.c                                             | 2 +-
 crypto/crypto_user.c                                     | 9 ++++-----
 crypto/hctr2.c                                           | 3 +--
 crypto/lrw.c                                             | 2 +-
 crypto/lskcipher.c                                       | 3 +--
 crypto/xts.c                                             | 3 ++-
 drivers/crypto/cavium/nitrox/nitrox_hal.c                | 3 ++-
 drivers/crypto/ccp/ccp-crypto-sha.c                      | 2 +-
 drivers/crypto/hisilicon/qm.c                            | 5 +----
 drivers/crypto/intel/qat/qat_common/adf_cfg.c            | 7 ++++---
 drivers/crypto/intel/qat/qat_common/adf_cfg_services.c   | 2 +-
 drivers/crypto/intel/qat/qat_common/adf_mstate_mgr.c     | 3 ++-
 .../crypto/intel/qat/qat_common/adf_transport_debug.c    | 3 ++-
 drivers/crypto/intel/qat/qat_common/qat_compression.c    | 3 ++-
 drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c        | 4 ++--
 drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c      | 4 ++--
 16 files changed, 29 insertions(+), 29 deletions(-)


base-commit: 5624ea54f3ba5c83d2e5503411a31a8be0278c1e