Re: [PATCH] objtool/rust: add one more `noreturn` Rust function

Miguel Ojeda <[email protected]>
Newsgroups org.kernel.vger.rust-for-linux
Message-ID <CANiq72moj1pE0XtBgh35uQxPoTghz7chynyZqEDFM7ieWy-XCg@mail.gmail.com>
On Tue, Aug 18, 2026 at 6:38 PM Gary Guo <[email protected]> wrote:
>
> I am seeing this function causing issue on my 1.85.1 -Os build, although the
> error message is different this time:
>
> rust/kernel.o: warning: objtool: _RNvXs2_NtNtCsaNryh1j6xD7_4core3str6traitseINtNtNtB9_3ops5index5IndexINtNtBJ_5range9RangeFromjEE5indexCsldbe0TGTmNx_6kernel+0x1d: stack state mismatch: cfa1=4+8 cfa2=4+16
>
> Disassembly shows that the function call before the warning location is a call
> to _4core3str16slice_error_fail, and objtool thought it can return (which will
> end up with a unbalanced stack if it does return).
>
> Applying the patch fixes the issue.

Thanks Gary, then I will pick it up.

Cheers,
Miguel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.