Project

General

Profile

Actions

Bug #12376

closed

i86xpv/unix: 'rsdp' may be used uninitialized in this function

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build error with gcc 9:

    ../../i86pc/os/fakebop.c: In function 'build_firmware_properties':
    ../../i86pc/os/fakebop.c:2932:8: error: 'rsdp' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     2932 |   tp = find_fw_table(rsdp, ACPI_SIG_MCFG);
          |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

Testing done: build/install (I only do have i86pc).

Indeed, we are missing call to find_rsdp().

Actions

Also available in: Atom PDF