diff options
| author | Ryan Libby <rlibby@FreeBSD.org> | 2025-10-17 22:43:06 +0000 |
|---|---|---|
| committer | Ryan Libby <rlibby@FreeBSD.org> | 2025-10-17 22:43:06 +0000 |
| commit | 5bd3ce4ef629d2ffd57b4b58a7e7d56cb0e171a8 (patch) | |
| tree | 9f3a755744d63f7a9656ec17f89709ea91b836ed | |
| parent | bf427a09b617b60068af65a4c14632fea4ef7dda (diff) | |
achiem: quiet gcc -Warray-bounds
gcc complains about accessing the byte as ads->common.bytes[3] as that
field is declared as being one byte.
Reviewed by: mav
Differential Revision: https://reviews.freebsd.org/D53152
| -rw-r--r-- | sys/dev/ahci/ahciem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ahci/ahciem.c b/sys/dev/ahci/ahciem.c index c9e6c35f4233..012796aa5d6f 100644 --- a/sys/dev/ahci/ahciem.c +++ b/sys/dev/ahci/ahciem.c @@ -479,7 +479,7 @@ ahci_em_emulate_ses_on_led(device_t dev, union ccb *ccb) else ads->common.bytes[0] |= SES_OBJSTAT_NOTINSTALLED; if (ch->disablephy) - ads->common.bytes[3] |= SESCTL_DEVOFF; + ads->bytes[2] |= SESCTL_DEVOFF; ahci_putch(ch); } ccb->ccb_h.status = CAM_REQ_CMP; |
