HomeFreeBSD

e1000: clean LTO warnings

Description

e1000: clean LTO warnings

During LTO build compiler reports some 'false positive' warnings about
variables being possibly used uninitialized. This patch silences these
warnings.

Exemplary compiler warning to suppress (with LTO enabled):
error: 'link' may be used uninitialized in this function
[-Werror=maybe-uninitialized]

if (link) {

Signed-off-by: Andrzej Ostruszka <aostruszka@marvell.com>

Approved by: imp
Obtained from: DPDK (46136031f19107f4e9b6b3a952cb7f57877a7f0f)
MFC after: 1 week

(cherry picked from commit 089cdb3990f47be3cd34d1a57567a2e89c917929)

Details

Provenance
Andrzej Ostruszka <aostruszka@marvell.com>Authored on Nov 7 2019, 3:03 PM
Kevin Bowling <kbowling@FreeBSD.org>Committed on Sep 24 2021, 1:40 AM
Parents
rGdf90074502a0: e1000: fix multicast setting in VF
Branches
Unknown
Tags
Unknown

Event Timeline

Kevin Bowling <kbowling@FreeBSD.org> committed rGf4d49d0a6cd0: e1000: clean LTO warnings (authored by Andrzej Ostruszka <aostruszka@marvell.com>).Sep 24 2021, 1:40 AM