Re: [PATCH] testptp: Silence compiler warnings on ppc64

2015-09-29 Thread David Miller
From: Thomas Huth Date: Tue, 29 Sep 2015 17:45:28 +0200 > When compiling Documentation/ptp/testptp.c the following compiler > warnings are printed out: ... > This happens because __s64 is by default defined as "long" on ppc64, > not as "long long". However, to fix these warnings, it's possible t

Re: [PATCH] testptp: Silence compiler warnings on ppc64

2015-09-29 Thread Richard Cochran
On Tue, Sep 29, 2015 at 05:45:28PM +0200, Thomas Huth wrote: > This happens because __s64 is by default defined as "long" on ppc64, > not as "long long". However, to fix these warnings, it's possible to > define the __SANE_USERSPACE_TYPES__ so that __s64 gets defined to > "long long" on ppc64, too.

[PATCH] testptp: Silence compiler warnings on ppc64

2015-09-29 Thread Thomas Huth
When compiling Documentation/ptp/testptp.c the following compiler warnings are printed out: Documentation/ptp/testptp.c: In function ‘main’: Documentation/ptp/testptp.c:367:11: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘__s64’ [-Wformat=]