Re: [linux-yocto] [PATCH 4.14&4.15] staging: octeon: Add a workaround for the issue of GCC8

2018-06-20 Thread Bruce Ashfield
On 06/20/2018 06:41 AM, Kevin Hao wrote: In function cvm_oct_xmit(), the packet length is set with code like this: pko_command.s.total_bytes = skb->len; But when building with gcc8, the pko_command.s.total_bytes doesn't emit the right value when it is used in the following codes: /*

[linux-yocto] [PATCH 4.14&4.15] staging: octeon: Add a workaround for the issue of GCC8

2018-06-20 Thread Kevin Hao
In function cvm_oct_xmit(), the packet length is set with code like this: pko_command.s.total_bytes = skb->len; But when building with gcc8, the pko_command.s.total_bytes doesn't emit the right value when it is used in the following codes: /* Send the packet to the output queue */