修正一些编译器警告

This commit is contained in:
longjin 2022-10-17 18:40:07 +08:00
parent 34205659b5
commit 173c988d5d
5 changed files with 11 additions and 10 deletions

View File

@ -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) \ #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))

View File

@ -77,7 +77,7 @@ struct hid_parser
int usage_max; int usage_max;
int cnt_objects; // report descriptor中的对象数目 int cnt_objects; // report descriptor中的对象数目
int cnt_report // report desc中的report数目 int cnt_report; // report desc中的report数目
}; };

View File

@ -44,7 +44,8 @@
.next_pcb = &proc, \ .next_pcb = &proc, \
.parent_pcb = &proc, \ .parent_pcb = &proc, \
.exit_code = 0, \ .exit_code = 0, \
.wait_child_proc_exit = 0 \ .wait_child_proc_exit = 0, \
.worker_private = NULL \
} }
/** /**

View File

@ -37,9 +37,3 @@ struct process_control_block *sched_cfs_dequeue();
* *
*/ */
void sched_cfs_init(); void sched_cfs_init();
/**
* @brief
*
*/
void sched_update_jiffies();

View File

@ -15,4 +15,10 @@ void sched_enqueue(struct process_control_block *pcb);
void sched(); void sched();
void sched_init(); void sched_init();
/**
* @brief
*
*/
void sched_update_jiffies();