New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-Wuninitialized in arch/mips/lib/uncached.c #606
Comments
I'm guessing |
The |
Is there a problem with initializing it to zero then? |
Although I guess that would change the value in it? |
Yeah. :-) The other option is write it as inline assembly instead of ... the name for that code, which I forget at the moment. |
If it is the stack pointer, is it uninitialized then? Should clang even be warning about this? |
Probably not. I have a vague memory that this cropped up before. But that could just be a false memory. |
Interestingly enough, there was a patch that commented on this a while ago: https://git.kernel.org/linus/fe92da0f355e9f664a56702c36c50e20e84c51cd Looks like this is actually pointing out there is a problem: https://lore.kernel.org/linux-mips/20200102030229.GA4478@ubuntu-m2-xlarge-x86/ |
Link: ClangBuiltLinux/linux#606 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Albert I <kras@raphielgang.org>
Link: ClangBuiltLinux/linux#606 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Albert I <kras@raphielgang.org> Signed-off-by: Akito Mizukito <akito@evolution-x.org>
Link: ClangBuiltLinux/linux#606 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Albert I <kras@raphielgang.org>
Link: ClangBuiltLinux/linux#606 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Albert I <kras@raphielgang.org>
Link: ClangBuiltLinux/linux#606 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Albert I <kras@raphielgang.org>
Link: ClangBuiltLinux/linux#606 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Link: ClangBuiltLinux/linux#606 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Merged into mainline: https://git.kernel.org/linus/5b058973d3205578aa6c9a71392e072a11ca44ef |
Not really sure how to solve this one.
Full code: https://github.com/torvalds/linux/blob/3b2663ca844648c1b511f4dc8b1d5918174da58b/arch/mips/lib/uncached.c#L38-L80
The text was updated successfully, but these errors were encountered: