]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
rasdaemon: Move definition for BIT and BIT_ULL to a common file
authorShiju Jose <shiju.jose@huawei.com>
Mon, 16 Jan 2023 17:13:32 +0000 (17:13 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 30 Apr 2023 08:43:10 +0000 (09:43 +0100)
Move definition for BIT() and BIT_ULL() to the
common file ras-record.h

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
ras-non-standard-handler.h
ras-record.h

index 4d9f93835a27384dc232282c9d15b75fd7583b9e..c360eaf04cab2e40685543975c97d0826c1fa1a3 100644 (file)
@@ -17,9 +17,6 @@
 #include "ras-events.h"
 #include <traceevent/event-parse.h>
 
-#define BIT(nr)                 (1UL << (nr))
-#define BIT_ULL(nr)             (1ULL << (nr))
-
 struct ras_ns_ev_decoder {
        struct ras_ns_ev_decoder *next;
        const char *sec_type;
index d9f7733248300c6a7418bcddc16974637328cd62..219f10bef280f87cefb13457e193f7a2b1766639 100644 (file)
@@ -25,6 +25,9 @@
 
 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(*(x)))
 
+#define BIT(nr)                 (1UL << (nr))
+#define BIT_ULL(nr)             (1ULL << (nr))
+
 extern long user_hz;
 
 struct ras_events;