Skip to content

Commit db49a24

Browse files
committed
WIP
Signed-off-by: Boqun Feng <[email protected]>
1 parent b207507 commit db49a24

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

rust/kernel/thread.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl RawThread {
5151
/// This function might sleep in `kthread_create_on_node` due to the memory
5252
/// allocation and waiting for the completion, therefore do not call this
5353
/// in atomic contexts (i.e. preemption-off contexts).
54-
pub unsafe fn try_new(
54+
pub unsafe fn spawn(
5555
name: &CStr,
5656
f: unsafe extern "C" fn(*mut c_types::c_void) -> c_types::c_int,
5757
arg: *mut c_types::c_void,
@@ -214,7 +214,7 @@ impl Thread {
214214
// SAFETY: `bridge::<F>` is a proper function pointer to a C function,
215215
// and [`Box::from_raw`] will be used in it to consume the raw pointer
216216
// in the new thread.
217-
let result = unsafe { RawThread::try_new(name, bridge::<F>, data as _) };
217+
let result = unsafe { RawThread::spawn(name, bridge::<F>, data as _) };
218218

219219
if result.is_err() {
220220
// Creation fails, we need to consume the raw pointer `data` because

scripts/link-vmlinux.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,7 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then
409409
size1=$(${CONFIG_SHELL} "${srctree}/scripts/file-size.sh" ${kallsymso_prev})
410410
size2=$(${CONFIG_SHELL} "${srctree}/scripts/file-size.sh" ${kallsymso})
411411

412-
if [ $size1 -ne $size2 ] || [ -n "${KALLSYMS_EXTRA_PASS}" ]; then
413-
kallsyms_step 3
414-
fi
412+
kallsyms_step 3
415413
fi
416414

417415
vmlinux_link vmlinux "${kallsymso}" ${btf_vmlinux_bin_o}

0 commit comments

Comments
 (0)