代码拉取完成,页面将自动刷新
From 4d0017a4c4e45983b1090884160c7053398879bd Mon Sep 17 00:00:00 2001
From: Shiju Jose <[email protected]>
Date: Mon, 16 Jan 2023 17:13:32 +0000
Subject: [PATCH 19/85] rasdaemon: Move definition for BIT and BIT_ULL to a
common file
Move definition for BIT() and BIT_ULL() to the
common file ras-record.h
Signed-off-by: Shiju Jose <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
---
ras-non-standard-handler.h | 3 ---
ras-record.h | 3 +++
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ras-non-standard-handler.h b/ras-non-standard-handler.h
index 57d4cb5..393b756 100644
--- a/ras-non-standard-handler.h
+++ b/ras-non-standard-handler.h
@@ -17,9 +17,6 @@
#include "ras-events.h"
#include "libtrace/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;
diff --git a/ras-record.h b/ras-record.h
index 1d1046f..cc49ae2 100644
--- a/ras-record.h
+++ b/ras-record.h
@@ -26,6 +26,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;
--
2.33.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。