lkml.org 
[lkml]   [2017]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL for-4.9 46/53] staging: wilc1000: Fix endian sparse warning
    Date
    From: Mike Kofron <mpkofron@gmail.com>

    [ Upstream commit 94500d5667386119c27725fe314f6882f68580a9 ]

    drivers/staging/wilc1000/linux_wlan.c:995:18: warning: restricted __be16 degrades to integer

    Signed-off-by: Mike Kofron <mpkofron@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
    ---
    drivers/staging/wilc1000/linux_wlan.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
    index defffa75ae1c..07d6e4824a9d 100644
    --- a/drivers/staging/wilc1000/linux_wlan.c
    +++ b/drivers/staging/wilc1000/linux_wlan.c
    @@ -1001,7 +1001,7 @@ int wilc_mac_xmit(struct sk_buff *skb, struct net_device *ndev)
    tx_data->skb = skb;

    eth_h = (struct ethhdr *)(skb->data);
    - if (eth_h->h_proto == 0x8e88)
    + if (eth_h->h_proto == cpu_to_be16(0x8e88))
    netdev_dbg(ndev, "EAPOL transmitted\n");

    ih = (struct iphdr *)(skb->data + sizeof(struct ethhdr));
    --
    2.11.0
    \
     
     \ /
      Last update: 2017-11-08 22:05    [W:4.915 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site