Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
60cfff35
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看板
提交
60cfff35
编写于
8月 26, 2005
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Auto-update from upstream
上级
89ef1a21
212d6d22
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
57 addition
and
63 deletion
+57
-63
arch/ppc/syslib/m8xx_setup.c
arch/ppc/syslib/m8xx_setup.c
+1
-1
drivers/hwmon/adm1026.c
drivers/hwmon/adm1026.c
+1
-1
drivers/hwmon/adm1031.c
drivers/hwmon/adm1031.c
+1
-1
drivers/hwmon/adm9240.c
drivers/hwmon/adm9240.c
+1
-1
drivers/hwmon/fscpos.c
drivers/hwmon/fscpos.c
+1
-1
drivers/hwmon/smsc47b397.c
drivers/hwmon/smsc47b397.c
+1
-1
drivers/hwmon/smsc47m1.c
drivers/hwmon/smsc47m1.c
+1
-1
drivers/ieee1394/ohci1394.c
drivers/ieee1394/ohci1394.c
+7
-1
drivers/net/ibm_emac/ibm_emac_core.c
drivers/net/ibm_emac/ibm_emac_core.c
+1
-1
drivers/net/tg3.c
drivers/net/tg3.c
+2
-4
drivers/pci/setup-bus.c
drivers/pci/setup-bus.c
+1
-1
drivers/pci/setup-res.c
drivers/pci/setup-res.c
+3
-1
drivers/s390/cio/qdio.c
drivers/s390/cio/qdio.c
+1
-1
fs/cifs/file.c
fs/cifs/file.c
+1
-1
fs/hppfs/hppfs_kern.c
fs/hppfs/hppfs_kern.c
+12
-18
fs/inotify.c
fs/inotify.c
+1
-1
kernel/cpuset.c
kernel/cpuset.c
+13
-19
lib/idr.c
lib/idr.c
+1
-1
net/ipv4/fib_trie.c
net/ipv4/fib_trie.c
+7
-7
未找到文件。
arch/ppc/syslib/m8xx_setup.c
浏览文件 @
60cfff35
...
...
@@ -423,7 +423,7 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
ppc_md
.
find_end_of_memory
=
m8xx_find_end_of_memory
;
ppc_md
.
setup_io_mappings
=
m8xx_map_io
;
#if defined(CONFIG_BLK_DEV_
IDE) || defined(CONFIG_BLK_DEV_IDE_MODUL
E)
#if defined(CONFIG_BLK_DEV_
MPC8xx_ID
E)
m8xx_ide_init
();
#endif
}
drivers/hwmon/adm1026.c
浏览文件 @
60cfff35
...
...
@@ -1691,7 +1691,7 @@ int adm1026_detect(struct i2c_adapter *adapter, int address,
/* Error out and cleanup code */
exitfree:
kfree
(
new_client
);
kfree
(
data
);
exit:
return
err
;
}
...
...
drivers/hwmon/adm1031.c
浏览文件 @
60cfff35
...
...
@@ -834,7 +834,7 @@ static int adm1031_detect(struct i2c_adapter *adapter, int address, int kind)
return
0
;
exit_free:
kfree
(
new_client
);
kfree
(
data
);
exit:
return
err
;
}
...
...
drivers/hwmon/adm9240.c
浏览文件 @
60cfff35
...
...
@@ -616,7 +616,7 @@ static int adm9240_detect(struct i2c_adapter *adapter, int address, int kind)
return
0
;
exit_free:
kfree
(
new_client
);
kfree
(
data
);
exit:
return
err
;
}
...
...
drivers/hwmon/fscpos.c
浏览文件 @
60cfff35
...
...
@@ -167,7 +167,7 @@ static ssize_t set_temp_reset(struct i2c_client *client, struct fscpos_data
"experience to the module author.
\n
"
);
/* Supported value: 2 (clears the status) */
fscpos_write_value
(
client
,
FSCPOS_REG_TEMP_STATE
[
nr
],
2
);
fscpos_write_value
(
client
,
FSCPOS_REG_TEMP_STATE
[
nr
-
1
],
2
);
return
count
;
}
...
...
drivers/hwmon/smsc47b397.c
浏览文件 @
60cfff35
...
...
@@ -298,7 +298,7 @@ static int smsc47b397_detect(struct i2c_adapter *adapter, int addr, int kind)
return
0
;
error_free:
kfree
(
new_client
);
kfree
(
data
);
error_release:
release_region
(
addr
,
SMSC_EXTENT
);
return
err
;
...
...
drivers/hwmon/smsc47m1.c
浏览文件 @
60cfff35
...
...
@@ -495,7 +495,7 @@ static int smsc47m1_detect(struct i2c_adapter *adapter, int address, int kind)
return
0
;
error_free:
kfree
(
new_client
);
kfree
(
data
);
error_release:
release_region
(
address
,
SMSC_EXTENT
);
return
err
;
...
...
drivers/ieee1394/ohci1394.c
浏览文件 @
60cfff35
...
...
@@ -478,7 +478,6 @@ static void ohci_initialize(struct ti_ohci *ohci)
int
num_ports
,
i
;
spin_lock_init
(
&
ohci
->
phy_reg_lock
);
spin_lock_init
(
&
ohci
->
event_lock
);
/* Put some defaults to these undefined bus options */
buf
=
reg_read
(
ohci
,
OHCI1394_BusOptions
);
...
...
@@ -3402,7 +3401,14 @@ static int __devinit ohci1394_pci_probe(struct pci_dev *dev,
/* We hopefully don't have to pre-allocate IT DMA like we did
* for IR DMA above. Allocate it on-demand and mark inactive. */
ohci
->
it_legacy_context
.
ohci
=
NULL
;
spin_lock_init
(
&
ohci
->
event_lock
);
/*
* interrupts are disabled, all right, but... due to SA_SHIRQ we
* might get called anyway. We'll see no event, of course, but
* we need to get to that "no event", so enough should be initialized
* by that point.
*/
if
(
request_irq
(
dev
->
irq
,
ohci_irq_handler
,
SA_SHIRQ
,
OHCI1394_DRIVER_NAME
,
ohci
))
FAIL
(
-
ENOMEM
,
"Failed to allocate shared interrupt %d"
,
dev
->
irq
);
...
...
drivers/net/ibm_emac/ibm_emac_core.c
浏览文件 @
60cfff35
...
...
@@ -1253,7 +1253,7 @@ static int emac_init_tah(struct ocp_enet_private *fep)
TAH_MR_CVR
|
TAH_MR_ST_768
|
TAH_MR_TFS_10KB
|
TAH_MR_DTFP
|
TAH_MR_DIG
);
iounmap
(
&
tahp
);
iounmap
(
tahp
);
return
0
;
}
...
...
drivers/net/tg3.c
浏览文件 @
60cfff35
...
...
@@ -66,8 +66,8 @@
#define DRV_MODULE_NAME "tg3"
#define PFX DRV_MODULE_NAME ": "
#define DRV_MODULE_VERSION "3.3
6
"
#define DRV_MODULE_RELDATE "August
19
, 2005"
#define DRV_MODULE_VERSION "3.3
7
"
#define DRV_MODULE_RELDATE "August
25
, 2005"
#define TG3_DEF_MAC_MODE 0
#define TG3_DEF_RX_MODE 0
...
...
@@ -7865,8 +7865,6 @@ static int tg3_test_loopback(struct tg3 *tp)
err
=
-
EIO
;
tg3_abort_hw
(
tp
,
1
);
tg3_reset_hw
(
tp
);
mac_mode
=
(
tp
->
mac_mode
&
~
MAC_MODE_PORT_MODE_MASK
)
|
...
...
drivers/pci/setup-bus.c
浏览文件 @
60cfff35
...
...
@@ -40,7 +40,7 @@
* FIXME: IO should be max 256 bytes. However, since we may
* have a P2P bridge below a cardbus bridge, we need 4K.
*/
#define CARDBUS_IO_SIZE (
409
6)
#define CARDBUS_IO_SIZE (
25
6)
#define CARDBUS_MEM_SIZE (32*1024*1024)
static
void
__devinit
...
...
drivers/pci/setup-res.c
浏览文件 @
60cfff35
...
...
@@ -53,7 +53,9 @@ pci_update_resource(struct pci_dev *dev, struct resource *res, int resno)
if
(
resno
<
6
)
{
reg
=
PCI_BASE_ADDRESS_0
+
4
*
resno
;
}
else
if
(
resno
==
PCI_ROM_RESOURCE
)
{
new
|=
res
->
flags
&
IORESOURCE_ROM_ENABLE
;
if
(
!
(
res
->
flags
&
IORESOURCE_ROM_ENABLE
))
return
;
new
|=
PCI_ROM_ADDRESS_ENABLE
;
reg
=
dev
->
rom_base_reg
;
}
else
{
/* Hmm, non-standard resource. */
...
...
drivers/s390/cio/qdio.c
浏览文件 @
60cfff35
...
...
@@ -112,7 +112,7 @@ qdio_min(int a,int b)
/***************** SCRUBBER HELPER ROUTINES **********************/
static
inline
volatile
__u64
static
inline
__u64
qdio_get_micros
(
void
)
{
return
(
get_clock
()
>>
10
);
/* time>>12 is microseconds */
...
...
fs/cifs/file.c
浏览文件 @
60cfff35
...
...
@@ -643,7 +643,7 @@ int cifs_lock(struct file *file, int cmd, struct file_lock *pfLock)
netfid
,
length
,
pfLock
->
fl_start
,
numUnlock
,
numLock
,
lockType
,
wait_flag
);
if
(
rc
==
0
&&
(
pfLock
->
fl_flags
&
FL_POSIX
)
)
if
(
pfLock
->
fl_flags
&
FL_POSIX
)
posix_lock_file_wait
(
file
,
pfLock
);
FreeXid
(
xid
);
return
rc
;
...
...
fs/hppfs/hppfs_kern.c
浏览文件 @
60cfff35
...
...
@@ -38,7 +38,7 @@ struct hppfs_inode_info {
static
inline
struct
hppfs_inode_info
*
HPPFS_I
(
struct
inode
*
inode
)
{
return
(
list_entry
(
inode
,
struct
hppfs_inode_info
,
vfs_inode
)
);
return
container_of
(
inode
,
struct
hppfs_inode_info
,
vfs_inode
);
}
#define HPPFS_SUPER_MAGIC 0xb00000ee
...
...
@@ -662,42 +662,36 @@ static int hppfs_readlink(struct dentry *dentry, char *buffer, int buflen)
{
struct
file
*
proc_file
;
struct
dentry
*
proc_dentry
;
int
(
*
readlink
)(
struct
dentry
*
,
char
*
,
int
);
int
err
,
n
;
int
ret
;
proc_dentry
=
HPPFS_I
(
dentry
->
d_inode
)
->
proc_dentry
;
proc_file
=
dentry_open
(
dget
(
proc_dentry
),
NULL
,
O_RDONLY
);
err
=
PTR_ERR
(
proc_dentry
);
if
(
IS_ERR
(
proc_dentry
))
return
(
err
);
if
(
IS_ERR
(
proc_file
))
return
PTR_ERR
(
proc_file
);
readlink
=
proc_dentry
->
d_inode
->
i_op
->
readlink
;
n
=
(
*
readlink
)(
proc_dentry
,
buffer
,
buflen
);
ret
=
proc_dentry
->
d_inode
->
i_op
->
readlink
(
proc_dentry
,
buffer
,
buflen
);
fput
(
proc_file
);
return
(
n
)
;
return
ret
;
}
static
int
hppfs_follow_link
(
struct
dentry
*
dentry
,
struct
nameidata
*
nd
)
static
void
*
hppfs_follow_link
(
struct
dentry
*
dentry
,
struct
nameidata
*
nd
)
{
struct
file
*
proc_file
;
struct
dentry
*
proc_dentry
;
int
(
*
follow_link
)(
struct
dentry
*
,
struct
nameidata
*
);
int
err
,
n
;
void
*
ret
;
proc_dentry
=
HPPFS_I
(
dentry
->
d_inode
)
->
proc_dentry
;
proc_file
=
dentry_open
(
dget
(
proc_dentry
),
NULL
,
O_RDONLY
);
err
=
PTR_ERR
(
proc_dentry
);
if
(
IS_ERR
(
proc_dentry
))
return
(
err
);
if
(
IS_ERR
(
proc_file
))
return
proc_file
;
follow_link
=
proc_dentry
->
d_inode
->
i_op
->
follow_link
;
n
=
(
*
follow_link
)(
proc_dentry
,
nd
);
ret
=
proc_dentry
->
d_inode
->
i_op
->
follow_link
(
proc_dentry
,
nd
);
fput
(
proc_file
);
return
(
n
)
;
return
ret
;
}
static
struct
inode_operations
hppfs_dir_iops
=
{
...
...
fs/inotify.c
浏览文件 @
60cfff35
...
...
@@ -353,7 +353,7 @@ static int inotify_dev_get_wd(struct inotify_device *dev,
do
{
if
(
unlikely
(
!
idr_pre_get
(
&
dev
->
idr
,
GFP_KERNEL
)))
return
-
ENOSPC
;
ret
=
idr_get_new_above
(
&
dev
->
idr
,
watch
,
dev
->
last_wd
,
&
watch
->
wd
);
ret
=
idr_get_new_above
(
&
dev
->
idr
,
watch
,
dev
->
last_wd
+
1
,
&
watch
->
wd
);
}
while
(
ret
==
-
EAGAIN
);
return
ret
;
...
...
kernel/cpuset.c
浏览文件 @
60cfff35
...
...
@@ -627,6 +627,14 @@ static int validate_change(const struct cpuset *cur, const struct cpuset *trial)
* Call with cpuset_sem held. May nest a call to the
* lock_cpu_hotplug()/unlock_cpu_hotplug() pair.
*/
/*
* Hack to avoid 2.6.13 partial node dynamic sched domain bug.
* Disable letting 'cpu_exclusive' cpusets define dynamic sched
* domains, until the sched domain can handle partial nodes.
* Remove this #if hackery when sched domains fixed.
*/
#if 0
static void update_cpu_domains(struct cpuset *cur)
{
struct cpuset *c, *par = cur->parent;
...
...
@@ -635,25 +643,6 @@ static void update_cpu_domains(struct cpuset *cur)
if (par == NULL || cpus_empty(cur->cpus_allowed))
return;
/*
* Hack to avoid 2.6.13 partial node dynamic sched domain bug.
* Require the 'cpu_exclusive' cpuset to include all (or none)
* of the CPUs on each node, or return w/o changing sched domains.
* Remove this hack when dynamic sched domains fixed.
*/
{
int
i
,
j
;
for_each_cpu_mask
(
i
,
cur
->
cpus_allowed
)
{
cpumask_t
mask
=
node_to_cpumask
(
cpu_to_node
(
i
));
for_each_cpu_mask
(
j
,
mask
)
{
if
(
!
cpu_isset
(
j
,
cur
->
cpus_allowed
))
return
;
}
}
}
/*
* Get all cpus from parent's cpus_allowed not part of exclusive
* children
...
...
@@ -686,6 +675,11 @@ static void update_cpu_domains(struct cpuset *cur)
partition_sched_domains(&pspan, &cspan);
unlock_cpu_hotplug();
}
#else
static
void
update_cpu_domains
(
struct
cpuset
*
cur
)
{
}
#endif
static
int
update_cpumask
(
struct
cpuset
*
cs
,
char
*
buf
)
{
...
...
lib/idr.c
浏览文件 @
60cfff35
...
...
@@ -207,7 +207,7 @@ static int idr_get_new_above_int(struct idr *idp, void *ptr, int starting_id)
}
/**
* idr_get_new_above - allocate new idr entry above a start id
* idr_get_new_above - allocate new idr entry above
or equal to
a start id
* @idp: idr handle
* @ptr: pointer you want associated with the ide
* @start_id: id to start search at
...
...
net/ipv4/fib_trie.c
浏览文件 @
60cfff35
...
...
@@ -1333,9 +1333,9 @@ err:;
}
static
inline
int
check_leaf
(
struct
trie
*
t
,
struct
leaf
*
l
,
t_key
key
,
int
*
plen
,
const
struct
flowi
*
flp
,
struct
fib_result
*
res
,
int
*
err
)
struct
fib_result
*
res
)
{
int
i
;
int
err
,
i
;
t_key
mask
;
struct
leaf_info
*
li
;
struct
hlist_head
*
hhead
=
&
l
->
list
;
...
...
@@ -1348,18 +1348,18 @@ static inline int check_leaf(struct trie *t, struct leaf *l, t_key key, int *pl
if
(
l
->
key
!=
(
key
&
mask
))
continue
;
if
((
(
*
err
)
=
fib_semantic_match
(
&
li
->
falh
,
flp
,
res
,
l
->
key
,
mask
,
i
))
=
=
0
)
{
if
((
err
=
fib_semantic_match
(
&
li
->
falh
,
flp
,
res
,
l
->
key
,
mask
,
i
))
<
=
0
)
{
*
plen
=
i
;
#ifdef CONFIG_IP_FIB_TRIE_STATS
t
->
stats
.
semantic_match_passed
++
;
#endif
return
1
;
return
err
;
}
#ifdef CONFIG_IP_FIB_TRIE_STATS
t
->
stats
.
semantic_match_miss
++
;
#endif
}
return
0
;
return
1
;
}
static
int
...
...
@@ -1386,7 +1386,7 @@ fn_trie_lookup(struct fib_table *tb, const struct flowi *flp, struct fib_result
/* Just a leaf? */
if
(
IS_LEAF
(
n
))
{
if
(
check_leaf
(
t
,
(
struct
leaf
*
)
n
,
key
,
&
plen
,
flp
,
res
,
&
ret
)
)
if
(
(
ret
=
check_leaf
(
t
,
(
struct
leaf
*
)
n
,
key
,
&
plen
,
flp
,
res
))
<=
0
)
goto
found
;
goto
failed
;
}
...
...
@@ -1508,7 +1508,7 @@ fn_trie_lookup(struct fib_table *tb, const struct flowi *flp, struct fib_result
continue
;
}
if
(
IS_LEAF
(
n
))
{
if
(
check_leaf
(
t
,
(
struct
leaf
*
)
n
,
key
,
&
plen
,
flp
,
res
,
&
ret
)
)
if
(
(
ret
=
check_leaf
(
t
,
(
struct
leaf
*
)
n
,
key
,
&
plen
,
flp
,
res
))
<=
0
)
goto
found
;
}
backtrace:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录