Thread (24 messages) 24 messages, 2 authors, 2016-03-07

Re: [ethtool PATCH v3 01/12] internal.h: change to new sane powerpc64 kernel headers

From: Ben Hutchings <hidden>
Date: 2016-03-07 15:54:10

On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote:
[...]
quoted hunk ↗ jump to hunk
--- a/internal.h
+++ b/internal.h
@@ -3,6 +3,13 @@
 #ifndef ETHTOOL_INTERNAL_H__
 #define ETHTOOL_INTERNAL_H__
 
+#ifdef __powerpc64__
+/* Powerpc needs __SANE_USERSPACE_TYPES__ before  to select
+ * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu.
+ */
+#define __SANE_USERSPACE_TYPES__
+#endif
This is also true for several other architectures so let's define this
unconditionally.

Ben.
 #ifdef HAVE_CONFIG_H
 #include "ethtool-config.h"
 #endif
-- 
Ben Hutchings
The most exhausting thing in life is being insincere. - Anne Morrow Lindberg

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help