[Bug 271903] amd64-gcc12 build failure

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 08 Jun 2023 13:31:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271903

            Bug ID: 271903
           Summary: amd64-gcc12 build failure
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: emaste@freebsd.org
                CC: bapt@FreeBSD.org

In Cirrus-CI (e.g.
https://cirrus-ci.com/task/5521951851020288?logs=main#L11717)

--- cam_xpt.o ---
/usr/local/bin/x86_64-unknown-freebsd13.1-gcc12
--sysroot=/usr/obj/tmp/cirrus-ci-build/amd64.amd64/tmp
-B/usr/local/x86_64-unknown-freebsd13.1/bin/ -c -O2 -pipe -frename-registers
-fno-strict-aliasing  -g -nostdinc  -I. -I/tmp/cirrus-ci-build/sys
-I/tmp/cirrus-ci-build/sys/contrib/ck/include
-I/tmp/cirrus-ci-build/sys/contrib/libfdt -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common   
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD  -MF.depend.cam_xpt.o
-MTcam_xpt.o
-fdebug-prefix-map=./machine=/tmp/cirrus-ci-build/sys/amd64/include
-fdebug-prefix-map=./x86=/tmp/cirrus-ci-build/sys/x86/include
-fdebug-prefix-map=./i386=/tmp/cirrus-ci-build/sys/i386/include -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables
-ffreestanding -fwrapv -fstack-protector -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=address
-Wno-error=aggressive-loop-optimizations -Wno-error=array-bounds
-Wno-error=attributes -Wno-error=cast-qual -Wno-error=enum-compare
-Wno-error=maybe-uninitialized -Wno-error=misleading-indentation
-Wno-error=nonnull-compare -Wno-error=overflow -Wno-error=sequence-point
-Wno-error=shift-overflow -Wno-error=tautological-compare
-Wno-error=unused-function -Wno-error=stringop-overflow
-Wno-error=memset-elt-size -Wno-error=packed-not-aligned
-Wno-address-of-packed-member -Wno-error=alloca-larger-than= -Wno-error=nonnull
-Wno-dangling-pointer -Wno-zero-length-bounds -Wno-return-type
-Wno-format-zero-length   -fms-extensions -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000 -fms-extensions 
-std=iso9899:1999 -Werror /tmp/cirrus-ci-build/sys/cam/cam_xpt.c
--- cam_queue.o ---
In file included from /tmp/cirrus-ci-build/sys/sys/bus.h:170,
                 from /tmp/cirrus-ci-build/sys/dev/mmc/bridge.h:59,
                 from /tmp/cirrus-ci-build/sys/cam/mmc/mmc_bus.h:5,
                 from /tmp/cirrus-ci-build/sys/cam/cam_ccb.h:1055,
                 from /tmp/cirrus-ci-build/sys/cam/cam_queue.c:41:
/tmp/cirrus-ci-build/sys/sys/devctl.h:16:20: error: 'devctl_systems' defined
but not used [-Werror=unused-variable]
   16 | static const char *devctl_systems[] = {
      |                    ^~~~~~~~~~~~~~
--- cam_sim.o ---
In file included from /tmp/cirrus-ci-build/sys/sys/bus.h:170,
                 from /tmp/cirrus-ci-build/sys/cam/cam_sim.c:35:
/tmp/cirrus-ci-build/sys/sys/devctl.h:16:20: error: 'devctl_systems' defined
but not used [-Werror=unused-variable]
   16 | static const char *devctl_systems[] = {
      |                    ^~~~~~~~~~~~~~
--- cam.o ---
In file included from /tmp/cirrus-ci-build/sys/sys/bus.h:170,
                 from /tmp/cirrus-ci-build/sys/dev/mmc/bridge.h:59,
                 from /tmp/cirrus-ci-build/sys/cam/mmc/mmc_bus.h:5,
                 from /tmp/cirrus-ci-build/sys/cam/cam_ccb.h:1055,
                 from /tmp/cirrus-ci-build/sys/cam/cam.c:47:
/tmp/cirrus-ci-build/sys/sys/devctl.h:16:20: error: 'devctl_systems' defined
but not used [-Werror=unused-variable]
   16 | static const char *devctl_systems[] = {
      |                    ^~~~~~~~~~~~~~
--- cam_compat.o ---
In file included from /tmp/cirrus-ci-build/sys/sys/bus.h:170,
                 from /tmp/cirrus-ci-build/sys/dev/mmc/bridge.h:59,
                 from /tmp/cirrus-ci-build/sys/cam/mmc/mmc_bus.h:5,
                 from /tmp/cirrus-ci-build/sys/cam/cam_ccb.h:1055,
                 from /tmp/cirrus-ci-build/sys/cam/cam_compat.c:48:
/tmp/cirrus-ci-build/sys/sys/devctl.h:16:20: error: 'devctl_systems' defined
but not used [-Werror=unused-variable]
   16 | static const char *devctl_systems[] = {
      |                    ^~~~~~~~~~~~~~
--- cam_iosched.o ---
In file included from /tmp/cirrus-ci-build/sys/sys/bus.h:170,
                 from /tmp/cirrus-ci-build/sys/dev/mmc/bridge.h:59,
                 from /tmp/cirrus-ci-build/sys/cam/mmc/mmc_bus.h:5,
                 from /tmp/cirrus-ci-build/sys/cam/cam_ccb.h:1055,
                 from /tmp/cirrus-ci-build/sys/cam/cam_iosched.c:50:
/tmp/cirrus-ci-build/sys/sys/devctl.h:16:20: error: 'devctl_systems' defined
but not used [-Werror=unused-variable]
   16 | static const char *devctl_systems[] = {
      |                    ^~~~~~~~~~~~~~
--- modules-all ---
--- all_subdir_aac ---
===> aac (all)
[Creating objdir
/usr/obj/tmp/cirrus-ci-build/amd64.amd64/sys/GENERIC/modules/tmp/cirrus-ci-build/sys/modules/aac...]
--- machine ---
machine -> /tmp/cirrus-ci-build/sys/amd64/include
--- x86 ---
x86 -> /tmp/cirrus-ci-build/sys/x86/include
--- i386 ---
i386 -> /tmp/cirrus-ci-build/sys/i386/include
--- cam_periph.o ---
In file included from /tmp/cirrus-ci-build/sys/cam/cam_periph.c:42:
/tmp/cirrus-ci-build/sys/sys/devctl.h:16:20: error: 'devctl_systems' defined
but not used [-Werror=unused-variable]
   16 | static const char *devctl_systems[] = {
      |                    ^~~~~~~~~~~~~~
--- cam_sim.o ---
cc1: all warnings being treated as errors
--- modules-all ---
--- opt_scsi.h ---
ln -sf /usr/obj/tmp/cirrus-ci-build/amd64.amd64/sys/GENERIC/opt_scsi.h
opt_scsi.h
--- cam_sim.o ---
*** [cam_sim.o] Error code 1
make[2]: stopped in /usr/obj/tmp/cirrus-ci-build/amd64.amd64/sys/GENERIC
--- modules-all ---
*** [modules-all] Error code 6
make[2]: stopped in /usr/obj/tmp/cirrus-ci-build/amd64.amd64/sys/GENERIC
--- cam_iosched.o ---
cc1: all warnings being treated as errors
*** [cam_iosched.o] Error code 1
make[2]: stopped in /usr/obj/tmp/cirrus-ci-build/amd64.amd64/sys/GENERIC
--- cam_xpt.o ---
In file included from /tmp/cirrus-ci-build/sys/sys/bus.h:170,
                 from /tmp/cirrus-ci-build/sys/cam/cam_xpt.c:39:
/tmp/cirrus-ci-build/sys/sys/devctl.h:16:20: error: 'devctl_systems' defined
but not used [-Werror=unused-variable]
   16 | static const char *devctl_systems[] = {
      |                    ^~~~~~~~~~~~~~
--- cam_queue.o ---
cc1: all warnings being treated as errors
*** [cam_queue.o] Error code 1
make[2]: stopped in /usr/obj/tmp/cirrus-ci-build/amd64.amd64/sys/GENERIC
--- cam.o ---
cc1: all warnings being treated as errors
*** [cam.o] Error code 1
make[2]: stopped in /usr/obj/tmp/cirrus-ci-build/amd64.amd64/sys/GENERIC
--- cam_compat.o ---
cc1: all warnings being treated as errors
*** [cam_compat.o] Error code 1
make[2]: stopped in /usr/obj/tmp/cirrus-ci-build/amd64.amd64/sys/GENERIC
--- cam_xpt.o ---
In function 'xpt_action',
    inlined from 'xpt_getattr' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:1275:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2608:33: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_dev_advinfo[1]'
[-Warray-bounds]
 2608 |         start_ccb->ccb_h.status = CAM_REQ_INPROG;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_getattr':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:1246:32: note: object 'cdai' of size 232
 1246 |         struct ccb_dev_advinfo cdai;
      |                                ^~~~
In function 'xpt_action',
    inlined from 'xpt_getattr' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:1275:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2609:28: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_dev_advinfo[1]'
[-Warray-bounds]
 2609 |         (*(start_ccb->ccb_h.path->bus->xport->ops->action))(start_ccb);
      |            ~~~~~~~~~~~~~~~~^~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_getattr':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:1246:32: note: object 'cdai' of size 232
 1246 |         struct ccb_dev_advinfo cdai;
      |                                ^~~~
--- cam_periph.o ---
cc1: all warnings being treated as errors
*** [cam_periph.o] Error code 1
make[2]: stopped in /usr/obj/tmp/cirrus-ci-build/amd64.amd64/sys/GENERIC
--- cam_xpt.o ---
In function 'xpt_action',
    inlined from 'xpt_start_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5053:2,
    inlined from 'xpt_done_process' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5438:5,
    inlined from 'camisr_runqueue' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5533:4,
    inlined from 'xpt_sim_poll' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3176:2,
    inlined from 'xpt_poll_setup' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3204:3:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2608:33: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2608 |         start_ccb->ccb_h.status = CAM_REQ_INPROG;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_poll_setup':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5028:27: note: object 'crs' of size 216
 5028 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_start_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5053:2,
    inlined from 'xpt_done_process' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5438:5,
    inlined from 'camisr_runqueue' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5533:4,
    inlined from 'xpt_sim_poll' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3176:2,
    inlined from 'xpt_poll_setup' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3204:3:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2609:28: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2609 |         (*(start_ccb->ccb_h.path->bus->xport->ops->action))(start_ccb);
      |            ~~~~~~~~~~~~~~~~^~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_poll_setup':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5028:27: note: object 'crs' of size 216
 5028 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_start_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5053:2,
    inlined from 'xpt_done_process' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5438:5,
    inlined from 'camisr_runqueue' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5533:4,
    inlined from 'xpt_sim_poll' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3176:2,
    inlined from 'xpt_pollwait' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3220:3:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2608:33: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2608 |         start_ccb->ccb_h.status = CAM_REQ_INPROG;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_pollwait':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5028:27: note: object 'crs' of size 216
 5028 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_start_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5053:2,
    inlined from 'xpt_done_process' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5438:5,
    inlined from 'camisr_runqueue' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5533:4,
    inlined from 'xpt_sim_poll' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3176:2,
    inlined from 'xpt_pollwait' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3220:3:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2609:28: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2609 |         (*(start_ccb->ccb_h.path->bus->xport->ops->action))(start_ccb);
      |            ~~~~~~~~~~~~~~~~^~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_pollwait':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5028:27: note: object 'crs' of size 216
 5028 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_start_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5053:2,
    inlined from 'xpt_done_process' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5438:5,
    inlined from 'xpt_async_td' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5482:4:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2608:33: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2608 |         start_ccb->ccb_h.status = CAM_REQ_INPROG;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_async_td':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5028:27: note: object 'crs' of size 216
 5028 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_start_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5053:2,
    inlined from 'xpt_done_process' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5438:5,
    inlined from 'xpt_async_td' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5482:4:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2609:28: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2609 |         (*(start_ccb->ccb_h.path->bus->xport->ops->action))(start_ccb);
      |            ~~~~~~~~~~~~~~~~^~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_async_td':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5028:27: note: object 'crs' of size 216
 5028 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_start_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5053:2,
    inlined from 'xpt_done_process' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5438:5,
    inlined from 'camisr_runqueue' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5533:4,
    inlined from 'xpt_sim_poll' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3176:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2608:33: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2608 |         start_ccb->ccb_h.status = CAM_REQ_INPROG;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_sim_poll':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5028:27: note: object 'crs' of size 216
 5028 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_start_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5053:2,
    inlined from 'xpt_done_process' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5438:5,
    inlined from 'camisr_runqueue' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5533:4,
    inlined from 'xpt_sim_poll' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3176:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2609:28: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2609 |         (*(start_ccb->ccb_h.path->bus->xport->ops->action))(start_ccb);
      |            ~~~~~~~~~~~~~~~~^~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_sim_poll':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5028:27: note: object 'crs' of size 216
 5028 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_start_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5053:2,
    inlined from 'xpt_done_process' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5438:5,
    inlined from 'xpt_done_td' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5511:4:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2608:33: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2608 |         start_ccb->ccb_h.status = CAM_REQ_INPROG;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_done_td':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5028:27: note: object 'crs' of size 216
 5028 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_start_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5053:2,
    inlined from 'xpt_done_process' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5438:5,
    inlined from 'xpt_done_td' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5511:4:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2609:28: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2609 |         (*(start_ccb->ccb_h.path->bus->xport->ops->action))(start_ccb);
      |            ~~~~~~~~~~~~~~~~^~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_done_td':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5028:27: note: object 'crs' of size 216
 5028 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_path_inq' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.h:162:2,
    inlined from 'xptsetasyncbusfunc' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2590:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2608:33: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_pathinq[1]'
[-Warray-bounds]
 2608 |         start_ccb->ccb_h.status = CAM_REQ_INPROG;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xptsetasyncbusfunc':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2582:28: note: object 'cpi' of size 464
 2582 |         struct ccb_pathinq cpi;
      |                            ^~~
In function 'xpt_action',
    inlined from 'xpt_path_inq' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.h:162:2,
    inlined from 'xptsetasyncbusfunc' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2590:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2609:28: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_pathinq[1]'
[-Warray-bounds]
 2609 |         (*(start_ccb->ccb_h.path->bus->xport->ops->action))(start_ccb);
      |            ~~~~~~~~~~~~~~~~^~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xptsetasyncbusfunc':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2582:28: note: object 'cpi' of size 464
 2582 |         struct ccb_pathinq cpi;
      |                            ^~~
In function 'xpt_action',
    inlined from 'xpt_path_inq' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.h:162:2,
    inlined from 'xpt_bus_register' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:4019:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2608:33: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_pathinq[1]'
[-Warray-bounds]
 2608 |         start_ccb->ccb_h.status = CAM_REQ_INPROG;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_bus_register':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3969:28: note: object 'cpi' of size 464
 3969 |         struct ccb_pathinq cpi;
      |                            ^~~
In function 'xpt_action',
    inlined from 'xpt_path_inq' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.h:162:2,
    inlined from 'xpt_bus_register' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:4019:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2609:28: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_pathinq[1]'
[-Warray-bounds]
 2609 |         (*(start_ccb->ccb_h.path->bus->xport->ops->action))(start_ccb);
      |            ~~~~~~~~~~~~~~~~^~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_bus_register':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3969:28: note: object 'cpi' of size 464
 3969 |         struct ccb_pathinq cpi;
      |                            ^~~
In file included from /tmp/cirrus-ci-build/sys/cam/cam_xpt.c:58:
In function 'cam_ccb_status',
    inlined from 'cam_ccb_success' at
/tmp/cirrus-ci-build/sys/cam/cam_ccb.h:1522:10,
    inlined from 'xpt_bus_register' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:4021:6:
/tmp/cirrus-ci-build/sys/cam/cam_ccb.h:1516:40: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_pathinq[1]'
[-Warray-bounds]
 1516 |         return ((cam_status)(ccb->ccb_h.status & CAM_STATUS_MASK));
      |                              ~~~~~~~~~~^~~~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_bus_register':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:3969:28: note: object 'cpi' of size 464
 3969 |         struct ccb_pathinq cpi;
      |                            ^~~
In function 'xpt_action',
    inlined from 'xpt_start_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5053:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2608:33: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2608 |         start_ccb->ccb_h.status = CAM_REQ_INPROG;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_start_tags':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5028:27: note: object 'crs' of size 216
 5028 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_start_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5053:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2609:28: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2609 |         (*(start_ccb->ccb_h.path->bus->xport->ops->action))(start_ccb);
      |            ~~~~~~~~~~~~~~~~^~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_start_tags':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5028:27: note: object 'crs' of size 216
 5028 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_stop_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5079:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2608:33: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2608 |         start_ccb->ccb_h.status = CAM_REQ_INPROG;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_stop_tags':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5059:27: note: object 'crs' of size 216
 5059 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_stop_tags' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5079:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2609:28: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_relsim[1]'
[-Warray-bounds]
 2609 |         (*(start_ccb->ccb_h.path->bus->xport->ops->action))(start_ccb);
      |            ~~~~~~~~~~~~~~~~^~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_stop_tags':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5059:27: note: object 'crs' of size 216
 5059 |         struct ccb_relsim crs;
      |                           ^~~
In function 'xpt_action',
    inlined from 'xpt_register_async' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5235:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2608:33: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_setasync[1]'
[-Warray-bounds]
 2608 |         start_ccb->ccb_h.status = CAM_REQ_INPROG;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_register_async':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5216:29: note: object 'csa' of size 224
 5216 |         struct ccb_setasync csa;
      |                             ^~~
In function 'xpt_action',
    inlined from 'xpt_register_async' at
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5235:2:
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:2609:28: warning: array subscript 'union
ccb[0]' is partly outside array bounds of 'struct ccb_setasync[1]'
[-Warray-bounds]
 2609 |         (*(start_ccb->ccb_h.path->bus->xport->ops->action))(start_ccb);
      |            ~~~~~~~~~~~~~~~~^~~~~
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c: In function 'xpt_register_async':
/tmp/cirrus-ci-build/sys/cam/cam_xpt.c:5216:29: note: object 'csa' of size 224
 5216 |         struct ccb_setasync csa;
      |                             ^~~
cc1: all warnings being treated as errors
*** [cam_xpt.o] Error code 1
make[2]: stopped in /usr/obj/tmp/cirrus-ci-build/amd64.amd64/sys/GENERIC
8 errors
make[2]: stopped in /usr/obj/tmp/cirrus-ci-build/amd64.amd64/sys/GENERIC
        3.00 real         4.73 user         0.61 sys
make[1]: stopped in /tmp/cirrus-ci-build
make: stopped in /tmp/cirrus-ci-build
Exit status: 2

-- 
You are receiving this mail because:
You are the assignee for the bug.