netbsd-11 kernel build failure

Hauke Fath <[email protected]>
Newsgroups gmane.os.netbsd.current
Organization Lacking
Message-ID <[email protected]>
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                        <[email protected]>
Linnéweg 7
64342 Seeheim-Jugenheim
Germany
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.