summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/crypto/nx/nx-842-pseries.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/crypto/nx/nx-842-pseries.c b/drivers/crypto/nx/nx-842-pseries.c
index 5c4aa606208c..938332ce3b60 100644
--- a/drivers/crypto/nx/nx-842-pseries.c
+++ b/drivers/crypto/nx/nx-842-pseries.c
@@ -856,8 +856,8 @@ static ssize_t nx842_##_name##_show(struct device *dev, \
856 rcu_read_lock(); \ 856 rcu_read_lock(); \
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, "%ld\n", \ 859 p = snprintf(buf, PAGE_SIZE, "%lld\n", \
860 atomic64_read(&local_devdata->counters->_name)); \ 860 (s64)atomic64_read(&local_devdata->counters->_name)); \
861 rcu_read_unlock(); \ 861 rcu_read_unlock(); \
862 return p; \ 862 return p; \
863} 863}
@@ -909,17 +909,17 @@ static ssize_t nx842_timehist_show(struct device *dev,
909 } 909 }
910 910
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%ld\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 atomic64_read(&times[i])); 914 (s64)atomic64_read(&times[i]));
915 bytes_remain -= bytes; 915 bytes_remain -= bytes;
916 p += bytes; 916 p += bytes;
917 } 917 }
918 /* The last bucket holds everything over 918 /* The last bucket holds everything over
919 * 2<<(NX842_HIST_SLOTS - 2) us */ 919 * 2<<(NX842_HIST_SLOTS - 2) us */
920 bytes = snprintf(p, bytes_remain, "%uus - :\t%ld\n", 920 bytes = snprintf(p, bytes_remain, "%uus - :\t%lld\n",
921 2<<(NX842_HIST_SLOTS - 2), 921 2<<(NX842_HIST_SLOTS - 2),
922 atomic64_read(&times[(NX842_HIST_SLOTS - 1)])); 922 (s64)atomic64_read(&times[(NX842_HIST_SLOTS - 1)]));
923 p += bytes; 923 p += bytes;
924 924
925 rcu_read_unlock(); 925 rcu_read_unlock();