Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

netbsd-11 kernel build failure



Hi,

a custom netbsd-11 kernel config build errors out with

[...]
#   compile  NKVM/pckbc_acpi.o
/u/netbsd-builds/11/amd64/tools/bin/x86_64--netbsd-gcc -mcmodel=kernel 
-mno-red-zone -mno-mmx -mno-sse -mno-avx -msoft-float -mindirect-bran
/u/sources/netbsd-11/src/sys/dev/acpi/pckbc_acpi.c: In function 
'pckbc_acpi_intr_establish':
/u/sources/netbsd-11/src/sys/dev/acpi/pckbc_acpi.c:242:22: error: 
'handle' may be used uninitialized [-Werror=maybe-uninitialized]
  242 |                 rv = acpi_intr_establish(sc->sc_dv, 
(uint64_t)(uintptr_t)handle,
      |                      
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  243 |                     IPL_TTY, false, pckbcintr, sc, intr_name);
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/u/sources/netbsd-11/src/sys/dev/acpi/pckbc_acpi.c:224:21: note: 
'handle' was declared here
  224 |         ACPI_HANDLE handle;
      |                     ^~~~~~
cc1: all warnings being treated as errors
[...]


I guess 'handle' should be initialized (with what?).

Cheerio,
Hauke

-- 
Hauke Fath                        <hauke%Espresso.Rhein-Neckar.DE@localhost>
Linnéweg 7
64342 Seeheim-Jugenheim
Germany


Home | Main Index | Thread Index | Old Index