Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
210af2a5
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
210af2a5
编写于
1月 05, 2017
作者:
C
Corey Minyard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ipmi: make ipmi_usr_hndl const
It's only function pointers. Signed-off-by:
N
Corey Minyard
<
cminyard@mvista.com
>
上级
08f6cd01
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
5 deletion
+5
-5
drivers/char/ipmi/ipmi_devintf.c
drivers/char/ipmi/ipmi_devintf.c
+1
-1
drivers/char/ipmi/ipmi_msghandler.c
drivers/char/ipmi/ipmi_msghandler.c
+2
-2
drivers/char/ipmi/ipmi_watchdog.c
drivers/char/ipmi/ipmi_watchdog.c
+1
-1
include/linux/ipmi.h
include/linux/ipmi.h
+1
-1
未找到文件。
drivers/char/ipmi/ipmi_devintf.c
浏览文件 @
210af2a5
...
...
@@ -108,7 +108,7 @@ static int ipmi_fasync(int fd, struct file *file, int on)
return
(
result
);
}
static
struct
ipmi_user_hndl
ipmi_hndlrs
=
static
const
struct
ipmi_user_hndl
ipmi_hndlrs
=
{
.
ipmi_recv_hndl
=
file_receive_handler
,
};
...
...
drivers/char/ipmi/ipmi_msghandler.c
浏览文件 @
210af2a5
...
...
@@ -102,7 +102,7 @@ struct ipmi_user {
struct
kref
refcount
;
/* The upper layer that handles receive messages. */
struct
ipmi_user_hndl
*
handler
;
const
struct
ipmi_user_hndl
*
handler
;
void
*
handler_data
;
/* The interface this user is bound to. */
...
...
@@ -919,7 +919,7 @@ static int intf_err_seq(ipmi_smi_t intf,
int
ipmi_create_user
(
unsigned
int
if_num
,
struct
ipmi_user_hndl
*
handler
,
const
struct
ipmi_user_hndl
*
handler
,
void
*
handler_data
,
ipmi_user_t
*
user
)
{
...
...
drivers/char/ipmi/ipmi_watchdog.c
浏览文件 @
210af2a5
...
...
@@ -985,7 +985,7 @@ static void ipmi_wdog_pretimeout_handler(void *handler_data)
pretimeout_since_last_heartbeat
=
1
;
}
static
struct
ipmi_user_hndl
ipmi_hndlrs
=
{
static
const
struct
ipmi_user_hndl
ipmi_hndlrs
=
{
.
ipmi_recv_hndl
=
ipmi_wdog_msg_handler
,
.
ipmi_watchdog_pretimeout
=
ipmi_wdog_pretimeout_handler
};
...
...
include/linux/ipmi.h
浏览文件 @
210af2a5
...
...
@@ -100,7 +100,7 @@ struct ipmi_user_hndl {
/* Create a new user of the IPMI layer on the given interface number. */
int
ipmi_create_user
(
unsigned
int
if_num
,
struct
ipmi_user_hndl
*
handler
,
const
struct
ipmi_user_hndl
*
handler
,
void
*
handler_data
,
ipmi_user_t
*
user
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录