Skip to content

crypto: qat - fix and cleanup RAS sysfs show functions

Giovanni Cabiddu linux-crypto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: qat - fix type mismatch in RAS sysfs show functionsdrivers/crypto/intel/qat/qat_common/adf_sysfs_ras_counters.c+6 -60 replies
2/2crypto: qat - replace scnprintf() with sysfs_emit()drivers/crypto/intel/qat/qat_common/adf_sysfs_ras_counters.c+3 -30 replies

Reviews trailers per patch

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

PatchAhsan AttaAndy Shevchenko
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] crypto: qat - fix and cleanup RAS sysfs show functions

This small series fixes a type mismatch bug in the RAS error counter sysfs interface of the Intel QAT driver and follows up with a cleanup to use the recommended sysfs output API.

Patch #1 fixes a type mismatch in the RAS sysfs show callbacks: the local counter variable was declared as 'unsigned long' while atomic_read() returns int, causing an implicit conversion and a wrong '%ld' format specifier. Patch #2 follows up by migrating the same callbacks from scnprintf() to the recommended sysfs_emit() API.

Atharv Dubey (1):
crypto: qat - replace scnprintf() with sysfs_emit()

Giovanni Cabiddu (1):
crypto: qat - fix type mismatch in RAS sysfs show functions

 .../intel/qat/qat_common/adf_sysfs_ras_counters.c    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

base-commit: 8da773efcd2b505cca6bbd13aad4a28fda61cf37

Signature · 1 line
2.53.0