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 net: Don't overwrite waiting packets with asynchronous replies 2018-10-10 12:29:01 -05:00
arp.h net: Don't overwrite waiting packets with asynchronous replies 2018-10-10 12:29:01 -05:00
bootp.c env: Move env_get_ulong() to env.h 2019-08-11 16:43:41 -04:00
bootp.h net: Use packed structures for networking 2017-08-07 15:18:31 -05:00
cdp.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
cdp.h SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
checksum.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dns.c env: Move env_set() to env.h 2019-08-11 16:43:41 -04:00
dns.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
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 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
eth_legacy.c net: introduce packet capture support 2019-09-04 11:37:19 -05:00
fastboot.c net: fastboot: Fix build when FASTBOOT_FLASH is disabled 2018-07-02 14:14:20 -05:00
Kconfig net: Convert CONFIG_TFTP_BLOCKSIZE to Kconfig 2019-06-14 16:10:36 -04:00
link_local.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
link_local.h net: Add link-local addressing support 2012-05-23 17:53:08 -05:00
Makefile net: introduce packet capture support 2019-09-04 11:37:19 -05:00
mdio-mux-uclass.c net: add MDIO_MUX DM class 2019-07-18 16:37:13 -05:00
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 net: Get mac address from driver as seed 2017-08-07 15:18:28 -05:00
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 net: Consolidate UDP header functions 2018-10-10 12:29:02 -05:00
ping.h SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
rarp.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rarp.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sntp.c dm: net: rtc: Support using driver model for rtc in sntp 2015-05-05 20:58:40 -06:00
sntp.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tftp.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
wol.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
wol.h net: Add new wol command - Wake on LAN 2018-07-02 14:14:20 -05:00