mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Finn Thain <fthain@linux-m68k.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	 Bart Van Assche <bvanassche@acm.org>,
	 Geert Uytterhoeven <geert@linux-m68k.org>,
	 kernel test robot <lkp@intel.com>,
	oe-kbuild-all@lists.linux.dev,  linux-kernel@vger.kernel.org,
	 Linux Memory Management List <linux-mm@kvack.org>,
	 "James E . J . Bottomley"
	<James.Bottomley@hansenpartnership.com>,
	 "Martin K. Petersen" <mkp@kernel.org>,
	scsi <linux-scsi@vger.kernel.org>,
	 Nilesh Javali <njavali@marvell.com>,
	 GR-QLogic-Storage-Upstream@marvell.com
Subject: 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)
Date: Thu, 26 Nov 2026 07:36:56 +1100 (AEDT)	[thread overview]
Message-ID: <8109e47f-b7d7-80a6-6a0c-73613683b495@linux-m68k.org> (raw)
In-Reply-To: <cb52daef-8182-1821-60bf-ccb6475b613c@linux-m68k.org>


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?

  reply	other threads:[~2026-11-25 20:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21  2:49 kernel test robot
2026-11-21  4:10 ` Finn Thain
2026-11-23  9:48   ` Geert Uytterhoeven
2026-11-23 23:05     ` Finn Thain
2026-11-23 23:37       ` Bart Van Assche
2026-11-24  3:31         ` Finn Thain
2026-11-24 10:18           ` Arnd Bergmann
2026-11-25  0:18             ` Finn Thain
2026-11-25  7:25               ` Arnd Bergmann
2026-11-25  8:53                 ` Finn Thain
2026-11-25 20:36                   ` Finn Thain [this message]
2026-11-25 10:00             ` David Laight

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8109e47f-b7d7-80a6-6a0c-73613683b495@linux-m68k.org \
    --to=fthain@linux-m68k.org \
    --cc=GR-QLogic-Storage-Upstream@marvell.com \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=bvanassche@acm.org \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mkp@kernel.org \
    --cc=njavali@marvell.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®