]> git.karo-electronics.de Git - linux-beck.git/commitdiff
net: thunderx: fix constants
authorAleksey Makarov <aleksey.makarov@caviumnetworks.com>
Tue, 2 Jun 2015 18:00:19 +0000 (11:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jun 2015 19:49:27 +0000 (12:49 -0700)
This fixes sparse messages like this:

drivers/net/ethernet/cavium/thunder/thunder_bgx.c:897:24: sparse:
constant 0x300000000000 is so big it is long

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Aleksey Makarov <aleksey.makarov@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c

index abd446e6155b33783d10f1767e14a7b21d8cd18b..f81182caedc2cd1e61d6a81d9bb10d3d34765f29 100644 (file)
@@ -326,11 +326,11 @@ static int nicvf_rss_init(struct nicvf *nic)
        rss->enable = true;
 
        /* Using the HW reset value for now */
-       rss->key[0] = 0xFEED0BADFEED0BAD;
-       rss->key[1] = 0xFEED0BADFEED0BAD;
-       rss->key[2] = 0xFEED0BADFEED0BAD;
-       rss->key[3] = 0xFEED0BADFEED0BAD;
-       rss->key[4] = 0xFEED0BADFEED0BAD;
+       rss->key[0] = 0xFEED0BADFEED0BADULL;
+       rss->key[1] = 0xFEED0BADFEED0BADULL;
+       rss->key[2] = 0xFEED0BADFEED0BADULL;
+       rss->key[3] = 0xFEED0BADFEED0BADULL;
+       rss->key[4] = 0xFEED0BADFEED0BADULL;
 
        nicvf_set_rss_key(nic);