8 Star 1 Fork 7

src-anolis-os/rasdaemon

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
1019-rasdaemon-Move-definition-for-BIT-and-BIT_ULL-to-a-c.patch 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-os/rasdaemon.git
[email protected]:src-anolis-os/rasdaemon.git
src-anolis-os
rasdaemon
rasdaemon
a8

搜索帮助