mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 07:06:47 +00:00
修正一些编译器警告
This commit is contained in:
parent
34205659b5
commit
173c988d5d
@ -78,4 +78,4 @@ extern void __cmpxchg_wrong_size(void) __compiletime_error("Bad argument size fo
|
||||
})
|
||||
|
||||
#define arch_try_cmpxchg(ptr, old_ptr, new_ptr) \
|
||||
__raw_try_cmpxchg((ptr), (old_ptr), (new_ptr), sizeof(*ptr))
|
||||
__raw_try_cmpxchg((ptr), (old_ptr), (new_ptr), sizeof(*ptr))
|
||||
|
@ -77,7 +77,7 @@ struct hid_parser
|
||||
int usage_max;
|
||||
|
||||
int cnt_objects; // report descriptor中的对象数目
|
||||
int cnt_report // report desc中的report数目
|
||||
int cnt_report; // report desc中的report数目
|
||||
};
|
||||
|
||||
|
||||
|
@ -44,7 +44,8 @@
|
||||
.next_pcb = &proc, \
|
||||
.parent_pcb = &proc, \
|
||||
.exit_code = 0, \
|
||||
.wait_child_proc_exit = 0 \
|
||||
.wait_child_proc_exit = 0, \
|
||||
.worker_private = NULL \
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -37,9 +37,3 @@ struct process_control_block *sched_cfs_dequeue();
|
||||
*
|
||||
*/
|
||||
void sched_cfs_init();
|
||||
|
||||
/**
|
||||
* @brief 当时钟中断到达时,更新时间片
|
||||
*
|
||||
*/
|
||||
void sched_update_jiffies();
|
||||
|
@ -15,4 +15,10 @@ void sched_enqueue(struct process_control_block *pcb);
|
||||
void sched();
|
||||
|
||||
|
||||
void sched_init();
|
||||
void sched_init();
|
||||
|
||||
/**
|
||||
* @brief 当时钟中断到达时,更新时间片
|
||||
*
|
||||
*/
|
||||
void sched_update_jiffies();
|
Loading…
x
Reference in New Issue
Block a user