Documentation/prctl: don't build tsc tests when cross compiling
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 21 Jun 2015 01:22:20 +0000 (21:22 -0400)
committerJonathan Corbet <corbet@lwn.net>
Mon, 22 Jun 2015 22:05:04 +0000 (16:05 -0600)
commitf59514b6a8c5ca6dd282881a25e367e20ef4cb68
tree8407530408b79599f7678bdc818d41f11d6b9cbc
parent6a407a81a9abcf6664698b22e70d070605063f7c
Documentation/prctl: don't build tsc tests when cross compiling

The following was seen in linux-next build coverage, which is somewhat
unique since it uses powerpc host to cross compile x86:

Documentation/prctl/disable-tsc-on-off-stress-test.c:36:1: error:
 impossible register constraint in 'asm'
Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c:34:1: error:
 impossible register constraint in 'asm'
Documentation/prctl/disable-tsc-test.c:36:1: error: impossible
 register constraint in 'asm'

It probably makes sense to just skip building these tests when
we are cross compiling.

Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
Cc: Erik Bosman <ejbosman@cs.vu.nl>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/prctl/Makefile