The branch main has been updated by rlibby:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=5bd3ce4ef629d2ffd57b4b58a7e7d56cb0e171a8

commit 5bd3ce4ef629d2ffd57b4b58a7e7d56cb0e171a8
Author:     Ryan Libby <[email protected]>
AuthorDate: 2025-10-17 22:43:06 +0000
Commit:     Ryan Libby <[email protected]>
CommitDate: 2025-10-17 22:43:06 +0000

    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
---
 sys/dev/ahci/ahciem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;

Reply via email to