summaryrefslogtreecommitdiff
path: root/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler.h')
-rw-r--r--compiler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler.h b/compiler.h
index 4180086..8153f56 100644
--- a/compiler.h
+++ b/compiler.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2015 Tobias Klauser <tklauser@distanz.ch>
+ * Copyright (C) 2015-2017 Tobias Klauser <tklauser@distanz.ch>
*
* This file is part of llmnrd.
*
@@ -28,6 +28,10 @@
# ifndef __unused
# define __unused __attribute__((unused))
# endif
+# ifndef __check_format_printf
+# define __check_format_printf(__fmt, __args) \
+ __attribute__ ((format (printf, (__fmt), (__args))))
+# endif
# ifndef offsetof
# define offsetof(a, b) __builtin_offsetof(a, b)
# endif
h/arm/boot/dts/keystone-k2hk-netcp.dtsi?h=nds-private-remove&id=5db4992d8f040b8d8db0b86d42806e0c417f7ccf&id2=370ebb0ef6255132373ed35d13e7b1d8d2eb7003'>diff)
usbnet: pegasus: Use net_device_stats from struct net_devicends-private-remove
Instead of using a private copy of struct net_device_stats in struct pegasus, use stats from struct net_device. Also remove the now unnecessary .ndo_get_stats function. Cc: Petko Manolov <petkan@nucleusys.com> Cc: linux-usb@vger.kernel.org Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'arch/arm/boot/dts/keystone-k2hk-netcp.dtsi')