[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210816114732.1834145-2-daniel.lezcano@linaro.org>
Date: Mon, 16 Aug 2021 13:47:23 +0200
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: andriy.shevchenko@...ux.intel.com, akpm@...ux-foundation.org
Cc: jic23@...nel.org, linux-kernel@...r.kernel.org, ceggers@...i.de,
lukasz.luba@....com, myungjoo.ham@...sung.com,
kyungmin.park@...sung.com, lars@...afoo.de, pmeerw@...erw.net,
rui.zhang@...el.com, linux@...ck-us.net, miquel.raynal@...tlin.com,
mcoquelin.stm32@...il.com, rafael@...nel.org,
daniel.lezcano@...aro.org
Subject: [PATCH v3 01/10] units: Change from 'L' to 'UL'
The users of the macros are safe to be assigned with an unsigned
instead of signed as the variables using them are themselves unsigned.
Signed-off-by: Daniel Lezcano <daniel.lezcano@...aro.org>
---
include/linux/units.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/units.h b/include/linux/units.h
index dcc30a53fa93..ff51d3cfc6a0 100644
--- a/include/linux/units.h
+++ b/include/linux/units.h
@@ -4,9 +4,9 @@
#include <linux/math.h>
-#define MILLIWATT_PER_WATT 1000L
-#define MICROWATT_PER_MILLIWATT 1000L
-#define MICROWATT_PER_WATT 1000000L
+#define MILLIWATT_PER_WATT 1000UL
+#define MICROWATT_PER_MILLIWATT 1000UL
+#define MICROWATT_PER_WATT 1000000UL
#define ABSOLUTE_ZERO_MILLICELSIUS -273150
--
2.25.1
Powered by blists - more mailing lists