summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/crypto/nx/nx-842-pseries.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/crypto/nx/nx-842-pseries.c b/drivers/crypto/nx/nx-842-pseries.c
index 938332ce3b60..2de5e3672e42 100644
--- a/drivers/crypto/nx/nx-842-pseries.c
+++ b/drivers/crypto/nx/nx-842-pseries.c
@@ -857,7 +857,7 @@ static ssize_t nx842_##_name##_show(struct device *dev, \
857 local_devdata = rcu_dereference(devdata); \ 857 local_devdata = rcu_dereference(devdata); \
858 if (local_devdata) \ 858 if (local_devdata) \
859 p = snprintf(buf, PAGE_SIZE, "%lld\n", \ 859 p = snprintf(buf, PAGE_SIZE, "%lld\n", \
860 (s64)atomic64_read(&local_devdata->counters->_name)); \ 860 atomic64_read(&local_devdata->counters->_name)); \
861 rcu_read_unlock(); \ 861 rcu_read_unlock(); \
862 return p; \ 862 return p; \
863} 863}
@@ -911,7 +911,7 @@ static ssize_t nx842_timehist_show(struct device *dev,
911 for (i = 0; i < (NX842_HIST_SLOTS - 2); i++) { 911 for (i = 0; i < (NX842_HIST_SLOTS - 2); i++) {
912 bytes = snprintf(p, bytes_remain, "%u-%uus:\t%lld\n", 912 bytes = snprintf(p, bytes_remain, "%u-%uus:\t%lld\n",
913 i ? (2<<(i-1)) : 0, (2<<i)-1, 913 i ? (2<<(i-1)) : 0, (2<<i)-1,
914 (s64)atomic64_read(&times[i])); 914 atomic64_read(&times[i]));
915 bytes_remain -= bytes; 915 bytes_remain -= bytes;
916 p += bytes; 916 p += bytes;
917 } 917 }
@@ -919,7 +919,7 @@ static ssize_t nx842_timehist_show(struct device *dev,
919 * 2<<(NX842_HIST_SLOTS - 2) us */ 919 * 2<<(NX842_HIST_SLOTS - 2) us */
920 bytes = snprintf(p, bytes_remain, "%uus - :\t%lld\n", 920 bytes = snprintf(p, bytes_remain, "%uus - :\t%lld\n",
921 2<<(NX842_HIST_SLOTS - 2), 921 2<<(NX842_HIST_SLOTS - 2),
922 (s64)atomic64_read(&times[(NX842_HIST_SLOTS - 1)])); 922 atomic64_read(&times[(NX842_HIST_SLOTS - 1)]));
923 p += bytes; 923 p += bytes;
924 924
925 rcu_read_unlock(); 925 rcu_read_unlock();