summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-02-14 11:31:48 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-02-14 11:31:48 +0000
commitfb861bf2b3ae1e75f4447c7bc6c567082b4bacae (patch)
tree4193c291b09e133b2d2d9ef704075c9b3104bcb7 /sys/dev/pci
parent984e408d71f9f3df7577044eb4b46be4034468be (diff)
use pragma pack around dmub_addr definition
Avoids warnings about alignment changing when embedded inside of a packed struct (dmub_rb_cmd_mall) seen with clang 15 on arm64. reported and compile tested by tb@ sent upstream to amd-gfx list
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/amd/display/dmub/inc/dmub_cmd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/display/dmub/inc/dmub_cmd.h b/sys/dev/pci/drm/amd/display/dmub/inc/dmub_cmd.h
index 7a8f6151742..1bc2832a71d 100644
--- a/sys/dev/pci/drm/amd/display/dmub/inc/dmub_cmd.h
+++ b/sys/dev/pci/drm/amd/display/dmub/inc/dmub_cmd.h
@@ -162,6 +162,7 @@ extern "C" {
#define dmub_udelay(microseconds) udelay(microseconds)
#endif
+#pragma pack(push, 1)
/**
* union dmub_addr - DMUB physical/virtual 64-bit address.
*/
@@ -172,6 +173,7 @@ union dmub_addr {
} u; /*<< Low/high bit access */
uint64_t quad_part; /*<< 64 bit address */
};
+#pragma pack(pop)
/**
* Dirty rect definition.