[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1457138533-2417-10-git-send-email-ddecotig@gmail.com>
Date: Fri, 4 Mar 2016 16:42:10 -0800
From: David Decotigny <ddecotig@...il.com>
To: netdev@...r.kernel.org
Cc: Jeff Garzik <jgarzik@...ox.com>,
Ben Hutchings <ben@...adent.org.uk>,
David Miller <davem@...hat.com>,
Vidya Sagar Ravipati <vidya@...ulusnetworks.com>,
Joe Perches <joe@...ches.com>,
David Decotigny <decot@...glers.com>
Subject: [ethtool PATCH v3 09/12] internal.h: fix build for latest ethtool-copy.h
From: David Decotigny <decot@...glers.com>
Signed-off-by: David Decotigny <decot@...glers.com>
---
internal.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/internal.h b/internal.h
index 5f8504d..5df8124 100644
--- a/internal.h
+++ b/internal.h
@@ -13,6 +13,7 @@
#ifdef HAVE_CONFIG_H
#include "ethtool-config.h"
#endif
+#include <limits.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
@@ -36,6 +37,8 @@ typedef uint16_t u16;
typedef uint8_t u8;
typedef int32_t s32;
+#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
+
#include "ethtool-copy.h"
#include "net_tstamp-copy.h"
@@ -72,7 +75,6 @@ static inline u64 cpu_to_be64(u64 value)
#define BITS_PER_BYTE 8
#define BITS_PER_LONG (BITS_PER_BYTE * sizeof(long))
-#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
static inline void set_bit(unsigned int nr, unsigned long *addr)
--
2.7.0.rc3.207.g0ac5344
Powered by blists - more mailing lists