u-boot/net
Heinrich Schuchardt 5a5d1def59 net: nfs: remove superfluous packed attribute
With GCC 9.2.1 net/nfs.c leads to multiple errors of type
address-of-packed-member.

net/nfs.c: In function ‘rpc_req’:
net/nfs.c:199:18: error: taking address of packed member of
‘struct rpc_t’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
  199 |  p = (uint32_t *)&(rpc_pkt.u.call.data);
      |                  ^~~~~~~~~~~~~~~~~~~~~~
net/nfs.c: In function ‘nfs_readlink_reply’:
net/nfs.c:631:46: error: taking address of packed member of
‘struct rpc_t’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
  631 |    nfs3_get_attributes_offset(rpc_pkt.u.reply.data);
      |                               ~~~~~~~~~~~~~~~^~~~~
  LD      drivers/block/built-in.o
net/nfs.c: In function ‘nfs_read_reply’:
net/nfs.c:692:46: error: taking address of packed member of
‘struct rpc_t’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
  692 |    nfs3_get_attributes_offset(rpc_pkt.u.reply.data);
      |                               ~~~~~~~~~~~~~~~^~~~~

struct rpc_t is only used as local variable. It is naturally packed. So
there is no need for the attribute packed.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2019-09-04 11:37:19 -05:00
..
arp.c
arp.h
bootp.c
bootp.h
cdp.c
cdp.h
checksum.c
dns.c
dns.h
eth-uclass.c net: introduce packet capture support 2019-09-04 11:37:19 -05:00
eth_common.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
eth_internal.h
eth_legacy.c net: introduce packet capture support 2019-09-04 11:37:19 -05:00
fastboot.c
Kconfig
link_local.c
link_local.h
Makefile net: introduce packet capture support 2019-09-04 11:37:19 -05:00
mdio-mux-uclass.c
mdio-uclass.c net: mdio-uclass: name MDIO according to device-name property if preset 2019-09-04 11:37:19 -05:00
net.c CVE: net: fix unbounded memcpy of UDP packet 2019-09-04 11:37:19 -05:00
net_rand.h
nfs.c net: nfs: remove superfluous conversions 2019-09-04 11:37:19 -05:00
nfs.h net: nfs: remove superfluous packed attribute 2019-09-04 11:37:19 -05:00
pcap.c net: introduce packet capture support 2019-09-04 11:37:19 -05:00
ping.c
ping.h
rarp.c
rarp.h
sntp.c
sntp.h
tftp.c
wol.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
wol.h