]> git.ipfire.org Git - thirdparty/grub.git/commit
ofnet: Fix build regression in grub_ieee1275_parse_bootpath()
authorEric Snowberg <eric.snowberg@oracle.com>
Tue, 27 Nov 2018 23:17:26 +0000 (15:17 -0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 28 Nov 2018 12:48:45 +0000 (13:48 +0100)
commit29157553b7fb581fe81b9916f968127f19ef64f3
tree0f2076112b20d5b1c7e617c0a5869f5c293f5a1e
parent386128648606a3aa6ae7108d1c9af52258202279
ofnet: Fix build regression in grub_ieee1275_parse_bootpath()

The grub_ieee1275_parse_bootpath() function (commit a661a32, ofnet: Initialize
structs in bootpath parser) introduces a build regression on SPARC:

cc1: warnings being treated as errors
net/drivers/ieee1275/ofnet.c: In function 'grub_ieee1275_parse_bootpath':
net/drivers/ieee1275/ofnet.c:156: error: missing initializer
net/drivers/ieee1275/ofnet.c:156: error: (near initialization for 'client_addr.type')
net/drivers/ieee1275/ofnet.c:156: error: missing initializer
net/drivers/ieee1275/ofnet.c:156: error: (near initialization for 'gateway_addr.type')
net/drivers/ieee1275/ofnet.c:156: error: missing initializer
net/drivers/ieee1275/ofnet.c:156: error: (near initialization for 'subnet_mask.type')
net/drivers/ieee1275/ofnet.c:157: error: missing initializer
net/drivers/ieee1275/ofnet.c:157: error: (near initialization for 'hw_addr.type')
make[3]: *** [net/drivers/ieee1275/ofnet_module-ofnet.o] Error 1

Initialize the entire structure.

More info can be found here:
  http://lists.gnu.org/archive/html/grub-devel/2018-03/msg00034.html

Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/net/drivers/ieee1275/ofnet.c