mainline build failure due to f1e4c916f97f ("drm/edid: add EDID block count and size helpers")
torvalds at linux-foundation.org
Tue May 31 16:41:24 UTC 2022
On Tue, May 31, 2022 at 1:04 AM Arnd Bergmann <arnd at arndb.de> wrote:
> As an experiment: what kind of results would we get when looking
> for packed structures and unions that contain any of these:
Yeah, any atomics or locks should always be aligned, and won't even
work (or might be *very* slow) on multiple architectures. Even x86 -
which does very well on unaligned data - reacts badly to sufficiently
unaligned atomics (ie cacheline crossing).
I don't think we have that. Not only because it would already cause
breakage, but simply because the kinds of structures that people pack
aren't generally the kind that contain these kinds of things.
That said, you might have a struct that is packed, but that
intentionally aligns parts of itself, so it *could* be valid.
But it would probably not be a bad idea to check that packed
structures/unions don't have atomic types or locks in them. I _think_
we're all good, but who knows..
More information about the dri-devel