Re: [PATCH net 2/3] net: bcmgenet: use __be16 for htons(ETH_P_IP)

2020-06-24 Thread Florian Fainelli
On 6/24/2020 6:14 PM, Doug Berger wrote: > The 16-bit value that holds a short in network byte order should > be declared as a restricted big endian type to allow type checks > to succeed during assignment. > > Fixes: 3e370952287c ("net: bcmgenet: add support for ethtool rxnfc flows") > Reporte

[PATCH net 2/3] net: bcmgenet: use __be16 for htons(ETH_P_IP)

2020-06-24 Thread Doug Berger
The 16-bit value that holds a short in network byte order should be declared as a restricted big endian type to allow type checks to succeed during assignment. Fixes: 3e370952287c ("net: bcmgenet: add support for ethtool rxnfc flows") Reported-by: kbuild test robot Signed-off-by: Doug Berger ---