Re: include/linux/compiler_types.h:631:45: error: call to '__compiletime_assert_433' declared with attribute error: BUILD_BUG_ON failed: offsetof(struct qla_tgt_sess_op, atio) + sizeof(u->atio) != sizeof(*u)
From: Finn Thain
Date: Wed Nov 25 2026 - 15:37:17 EST
On Wed, 25 Nov 2026, I wrote:
>
> Perhaps there is a way to alter the struct layouts in a portable way (so
> as to avoid the build failure) but it's simply not worth it.
>
To be fair, your rework suggestion might have similarly negligible risk to
my "remove" patch, if you could obtain your desired struct layout without
altering object code...
> There is no actual bug here, that affects actual users, to justify the
> churn, or the complexity, or the regression testing effort, or the
> fruitless discussion to-date.
>
> If there was a maintainer who cared about this issue, perhaps that would
> put a different light on it. Maybe.
>
> As I pointed out in March, there is already a comment in the driver to
> make the bogus BUILD_BUG_ON() effectively redundant. So, at some point
> in the future, when I can get interested again, I will re-send the same
> untested yet risk-free patch that I sent back in March, to remove it.
>
One reason I'm against reworking this assertion is that it never did what
it claimed to do, so it's probably worthless.
Also, the kind of bug that could be caught this way could be detected
using automated testing, so it's probably redundant.
Finally, wouldn't it be better to feed the hardware design to an LLM and
validate the actual constraint that way? Guessing at all of the ways in
which actual constraints might be violated (i.e. new struct member in the
wrong place) seems likely to miss what matters and check what doesn't.
Since the vendor probably won't allow us to see the hardware design, why
not use the (existing) natural language commentary in the same way,
instead of translating the comments into assertions or tests?