Thomas Huth 9ae6d4935e testptp: Silence compiler warnings on ppc64
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=]
           event.t.sec, event.t.nsec);
           ^
Documentation/ptp/testptp.c:505:5: warning: format ‘%lld’ expects argument
    of type ‘long long int’, but argument 2 has type ‘__s64’ [-Wformat=]
     (pct+2*i)->sec, (pct+2*i)->nsec);
     ^
Documentation/ptp/testptp.c:507:5: warning: format ‘%lld’ expects argument
    of type ‘long long int’, but argument 2 has type ‘__s64’ [-Wformat=]
     (pct+2*i+1)->sec, (pct+2*i+1)->nsec);
     ^
Documentation/ptp/testptp.c:509:5: warning: format ‘%lld’ expects argument
    of type ‘long long int’, but argument 2 has type ‘__s64’ [-Wformat=]
     (pct+2*i+2)->sec, (pct+2*i+2)->nsec);

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.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-09-29 21:16:56 -07:00
..
2015-09-08 11:46:48 -07:00
2015-09-01 12:18:40 -07:00
2015-09-25 11:16:53 -07:00
2015-09-09 10:55:32 -07:00
2015-08-28 22:59:36 -04:00
2015-09-03 10:01:44 -07:00
2015-09-08 16:26:18 -07:00
2015-06-08 16:43:09 -06:00
2014-12-10 17:41:10 -08:00
2015-02-11 13:03:11 -08:00
2015-06-26 14:51:15 -07:00
2015-06-08 23:15:45 +02:00
2015-06-26 11:23:38 -04:00
2015-09-02 12:22:54 -07:00
2015-07-14 12:35:42 -06:00
2015-08-22 14:57:59 -07:00
2015-09-10 13:29:01 -07:00
2015-06-24 20:01:36 -07:00
2015-02-27 11:44:24 -08:00
2015-06-24 18:17:40 +02:00
2015-06-23 06:49:44 -06:00