View Change
1 comment:
File it85spi.c:
Patch Set #11, Line 77: unsigned int shm_io_base;
For 100% consistency with existing code, this should be: […]
In existing code, wrapping this with ifdef-endif was needed, because otherwise compiler would produce a warning that shm_io_base is unused (it was not used on !LPC_IO code path). After shm_io_base becomes a member of a struct, compiler checks that struct is used (and it is), does not check individual members usage.
The only reason to have ifdef-endif around shm_io_base was to avoid compiler warning, and since it is not an issue anymore - ifdef-endif not needed anymore here.
To view, visit change 47655. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I389d34d62e753c012910aa5ff24a496b24a4753c
Gerrit-Change-Number: 47655
Gerrit-PatchSet: 11
Gerrit-Owner: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Daniel Kurtz <djkurtz@google.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Eizan Miyamoto <eizan@chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Comment-Date: Tue, 05 Jan 2021 22:21:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Daniel Kurtz <djkurtz@google.com>
Gerrit-MessageType: comment