• Andy Zhou's avatar
    net: fix a sparse warning · 42350dca
    Andy Zhou authored
    Fix a sparse warning introduced by Commit
    0b5e8b8e (net: Add Geneve tunneling
    protocol driver) caught by kbuild test robot:
    
      # apt-get install sparse
      #   git checkout 0b5e8b8e
      #     make ARCH=x86_64 allmodconfig
      #       make C=1 CF=-D__CHECK_ENDIAN__
      #
      #
      #       sparse warnings: (new ones prefixed by >>)
      #
      #       >> net/ipv4/geneve.c:230:42: sparse: incorrect type in assignment (different base types)
      #          net/ipv4/geneve.c:230:42:    expected restricted __be32 [addressable] [assigned] [usertype] s_addr
      #             net/ipv4/geneve.c:230:42:    got unsigned long [unsigned] <noident>
      #
    Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
    Signed-off-by: default avatarAndy Zhou <azhou@nicira.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    42350dca
geneve.c 8.69 KB