Re: [Bug 219192] drivers/iio/imu/adis16400.o: warning: objtool: adis16400_write_raw() falls through to next function adis16400_show_flash_count()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 23 Jan 2025 17:45:29 +0000
bugzilla-daemon@xxxxxxxxxx wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=219192
> 
> --- Comment #11 from Andy Shevchenko (andy.shevchenko@xxxxxxxxx) ---
> Do we still have this issue in the latest vanilla (v6.13)? Looking again at the
> code I'm wondering why we can't simply use guard()() instead of scoped_guard().
> It might actually fix this.
> 

Is this actually a bug rather than a false warning?
My impression was that this is a compiler problem and I'm not that keen to modify
drivers to work around that unless the resulting module is actually broken.

If we have to, just add pointless returns instead of unreachable() markings
with a comment to say they are unreachable but we suppressing a toolchain
issue.

Jonathan





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux