Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
c6684b26
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c6684b26
编写于
7月 26, 2011
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch spufs guts to umode_t
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
685dd2d5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
12 deletion
+12
-12
arch/powerpc/include/asm/spu.h
arch/powerpc/include/asm/spu.h
+1
-1
arch/powerpc/platforms/cell/spufs/inode.c
arch/powerpc/platforms/cell/spufs/inode.c
+8
-8
arch/powerpc/platforms/cell/spufs/spufs.h
arch/powerpc/platforms/cell/spufs/spufs.h
+2
-2
arch/powerpc/platforms/cell/spufs/syscalls.c
arch/powerpc/platforms/cell/spufs/syscalls.c
+1
-1
未找到文件。
arch/powerpc/include/asm/spu.h
浏览文件 @
c6684b26
...
@@ -237,7 +237,7 @@ extern long spu_sys_callback(struct spu_syscall_block *s);
...
@@ -237,7 +237,7 @@ extern long spu_sys_callback(struct spu_syscall_block *s);
struct
file
;
struct
file
;
struct
spufs_calls
{
struct
spufs_calls
{
long
(
*
create_thread
)(
const
char
__user
*
name
,
long
(
*
create_thread
)(
const
char
__user
*
name
,
unsigned
int
flags
,
mode_t
mode
,
unsigned
int
flags
,
u
mode_t
mode
,
struct
file
*
neighbor
);
struct
file
*
neighbor
);
long
(
*
spu_run
)(
struct
file
*
filp
,
__u32
__user
*
unpc
,
long
(
*
spu_run
)(
struct
file
*
filp
,
__u32
__user
*
unpc
,
__u32
__user
*
ustatus
);
__u32
__user
*
ustatus
);
...
...
arch/powerpc/platforms/cell/spufs/inode.c
浏览文件 @
c6684b26
...
@@ -91,7 +91,7 @@ spufs_init_once(void *p)
...
@@ -91,7 +91,7 @@ spufs_init_once(void *p)
}
}
static
struct
inode
*
static
struct
inode
*
spufs_new_inode
(
struct
super_block
*
sb
,
in
t
mode
)
spufs_new_inode
(
struct
super_block
*
sb
,
umode_
t
mode
)
{
{
struct
inode
*
inode
;
struct
inode
*
inode
;
...
@@ -123,7 +123,7 @@ spufs_setattr(struct dentry *dentry, struct iattr *attr)
...
@@ -123,7 +123,7 @@ spufs_setattr(struct dentry *dentry, struct iattr *attr)
static
int
static
int
spufs_new_file
(
struct
super_block
*
sb
,
struct
dentry
*
dentry
,
spufs_new_file
(
struct
super_block
*
sb
,
struct
dentry
*
dentry
,
const
struct
file_operations
*
fops
,
in
t
mode
,
const
struct
file_operations
*
fops
,
umode_
t
mode
,
size_t
size
,
struct
spu_context
*
ctx
)
size_t
size
,
struct
spu_context
*
ctx
)
{
{
static
const
struct
inode_operations
spufs_file_iops
=
{
static
const
struct
inode_operations
spufs_file_iops
=
{
...
@@ -193,7 +193,7 @@ static int spufs_rmdir(struct inode *parent, struct dentry *dir)
...
@@ -193,7 +193,7 @@ static int spufs_rmdir(struct inode *parent, struct dentry *dir)
}
}
static
int
spufs_fill_dir
(
struct
dentry
*
dir
,
static
int
spufs_fill_dir
(
struct
dentry
*
dir
,
const
struct
spufs_tree_descr
*
files
,
in
t
mode
,
const
struct
spufs_tree_descr
*
files
,
umode_
t
mode
,
struct
spu_context
*
ctx
)
struct
spu_context
*
ctx
)
{
{
struct
dentry
*
dentry
,
*
tmp
;
struct
dentry
*
dentry
,
*
tmp
;
...
@@ -263,7 +263,7 @@ EXPORT_SYMBOL_GPL(spufs_context_fops);
...
@@ -263,7 +263,7 @@ EXPORT_SYMBOL_GPL(spufs_context_fops);
static
int
static
int
spufs_mkdir
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
unsigned
int
flags
,
spufs_mkdir
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
unsigned
int
flags
,
in
t
mode
)
umode_
t
mode
)
{
{
int
ret
;
int
ret
;
struct
inode
*
inode
;
struct
inode
*
inode
;
...
@@ -446,7 +446,7 @@ spufs_set_affinity(unsigned int flags, struct spu_context *ctx,
...
@@ -446,7 +446,7 @@ spufs_set_affinity(unsigned int flags, struct spu_context *ctx,
static
int
static
int
spufs_create_context
(
struct
inode
*
inode
,
struct
dentry
*
dentry
,
spufs_create_context
(
struct
inode
*
inode
,
struct
dentry
*
dentry
,
struct
vfsmount
*
mnt
,
int
flags
,
in
t
mode
,
struct
vfsmount
*
mnt
,
int
flags
,
umode_
t
mode
,
struct
file
*
aff_filp
)
struct
file
*
aff_filp
)
{
{
int
ret
;
int
ret
;
...
@@ -520,7 +520,7 @@ spufs_create_context(struct inode *inode, struct dentry *dentry,
...
@@ -520,7 +520,7 @@ spufs_create_context(struct inode *inode, struct dentry *dentry,
}
}
static
int
static
int
spufs_mkgang
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
)
spufs_mkgang
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
)
{
{
int
ret
;
int
ret
;
struct
inode
*
inode
;
struct
inode
*
inode
;
...
@@ -583,7 +583,7 @@ static int spufs_gang_open(struct dentry *dentry, struct vfsmount *mnt)
...
@@ -583,7 +583,7 @@ static int spufs_gang_open(struct dentry *dentry, struct vfsmount *mnt)
static
int
spufs_create_gang
(
struct
inode
*
inode
,
static
int
spufs_create_gang
(
struct
inode
*
inode
,
struct
dentry
*
dentry
,
struct
dentry
*
dentry
,
struct
vfsmount
*
mnt
,
in
t
mode
)
struct
vfsmount
*
mnt
,
umode_
t
mode
)
{
{
int
ret
;
int
ret
;
...
@@ -611,7 +611,7 @@ static int spufs_create_gang(struct inode *inode,
...
@@ -611,7 +611,7 @@ static int spufs_create_gang(struct inode *inode,
static
struct
file_system_type
spufs_type
;
static
struct
file_system_type
spufs_type
;
long
spufs_create
(
struct
path
*
path
,
struct
dentry
*
dentry
,
long
spufs_create
(
struct
path
*
path
,
struct
dentry
*
dentry
,
unsigned
int
flags
,
mode_t
mode
,
struct
file
*
filp
)
unsigned
int
flags
,
u
mode_t
mode
,
struct
file
*
filp
)
{
{
int
ret
;
int
ret
;
...
...
arch/powerpc/platforms/cell/spufs/spufs.h
浏览文件 @
c6684b26
...
@@ -237,7 +237,7 @@ struct spufs_inode_info {
...
@@ -237,7 +237,7 @@ struct spufs_inode_info {
struct
spufs_tree_descr
{
struct
spufs_tree_descr
{
const
char
*
name
;
const
char
*
name
;
const
struct
file_operations
*
ops
;
const
struct
file_operations
*
ops
;
in
t
mode
;
umode_
t
mode
;
size_t
size
;
size_t
size
;
};
};
...
@@ -249,7 +249,7 @@ extern const struct spufs_tree_descr spufs_dir_debug_contents[];
...
@@ -249,7 +249,7 @@ extern const struct spufs_tree_descr spufs_dir_debug_contents[];
extern
struct
spufs_calls
spufs_calls
;
extern
struct
spufs_calls
spufs_calls
;
long
spufs_run_spu
(
struct
spu_context
*
ctx
,
u32
*
npc
,
u32
*
status
);
long
spufs_run_spu
(
struct
spu_context
*
ctx
,
u32
*
npc
,
u32
*
status
);
long
spufs_create
(
struct
path
*
nd
,
struct
dentry
*
dentry
,
unsigned
int
flags
,
long
spufs_create
(
struct
path
*
nd
,
struct
dentry
*
dentry
,
unsigned
int
flags
,
mode_t
mode
,
struct
file
*
filp
);
u
mode_t
mode
,
struct
file
*
filp
);
/* ELF coredump callbacks for writing SPU ELF notes */
/* ELF coredump callbacks for writing SPU ELF notes */
extern
int
spufs_coredump_extra_notes_size
(
void
);
extern
int
spufs_coredump_extra_notes_size
(
void
);
extern
int
spufs_coredump_extra_notes_write
(
struct
file
*
file
,
loff_t
*
foffset
);
extern
int
spufs_coredump_extra_notes_write
(
struct
file
*
file
,
loff_t
*
foffset
);
...
...
arch/powerpc/platforms/cell/spufs/syscalls.c
浏览文件 @
c6684b26
...
@@ -60,7 +60,7 @@ static long do_spu_run(struct file *filp,
...
@@ -60,7 +60,7 @@ static long do_spu_run(struct file *filp,
}
}
static
long
do_spu_create
(
const
char
__user
*
pathname
,
unsigned
int
flags
,
static
long
do_spu_create
(
const
char
__user
*
pathname
,
unsigned
int
flags
,
mode_t
mode
,
struct
file
*
neighbor
)
u
mode_t
mode
,
struct
file
*
neighbor
)
{
{
struct
path
path
;
struct
path
path
;
struct
dentry
*
dentry
;
struct
dentry
*
dentry
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录