Skip to content

Commit

Permalink
core: fix error in ubsan_builtin_unreachable naming
Browse files Browse the repository at this point in the history
There is only __ubsan_handle_builtin_unreachable interface in gcc.
It was there starting from version 4.9.0.

Signed-off-by: Aleksandr Iashchenko <[email protected]>
Reviewed-by: Jens Wiklander <[email protected]>
  • Loading branch information
alexhoppus committed Jan 6, 2025
1 parent 5ca20e8 commit abfa741
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/kernel/ubsan.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void __ubsan_handle_divrem_overflow(void *data_, void *lhs, void *rhs);
void __ubsan_handle_pointer_overflow(void *data_, void *lhs, void *rhs);
void __ubsan_handle_shift_out_of_bounds(void *data_, void *lhs, void *rhs);
void __ubsan_handle_out_of_bounds(void *data_, void *idx);
void __ubsan_handle_unreachable(struct unreachable_data *data);
void __ubsan_handle_builtin_unreachable(void *data_);
void __ubsan_handle_missing_return(void *data_);
void __ubsan_handle_vla_bound_not_positive(void *data_, void *bound);
void __ubsan_handle_load_invalid_value(void *data_, void *val);
Expand Down Expand Up @@ -196,11 +196,11 @@ void __ubsan_handle_out_of_bounds(void *data_, void *idx __unused)
panic();
}

void __ubsan_handle_unreachable(struct unreachable_data *data)
void __ubsan_handle_builtin_unreachable(void *data_)
{
struct unreachable_data *data = data_;
print_loc(__func__, &data->loc);
if (ubsan_panic)
panic();
panic();
}

void __noreturn __ubsan_handle_missing_return(void *data_)
Expand Down

0 comments on commit abfa741

Please sign in to comment.