From: Jesse Gross Date: Fri, 2 May 2014 17:33:45 +0000 (-0700) Subject: datapath: Fix feature check for HAVE_RXHASH. X-Git-Tag: v2.1.3~42 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=c3bbaa66ed7167a062d397b8e7977cdefbaf87d5 datapath: Fix feature check for HAVE_RXHASH. The check for HAVE_RXHASH use #if rather than #ifdef, which provokes a warning when it isn't defined. Signed-off-by: Jesse Gross --- diff --git a/datapath/compat.h b/datapath/compat.h index 33632b0ac..c5d3c832c 100644 --- a/datapath/compat.h +++ b/datapath/compat.h @@ -27,10 +27,10 @@ static inline void skb_clear_rxhash(struct sk_buff *skb) { -#if HAVE_RXHASH +#ifdef HAVE_RXHASH skb->rxhash = 0; #endif -#if HAVE_L4_RXHASH +#ifdef HAVE_L4_RXHASH skb->l4_rxhash = 0; #endif }