From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760648AbaKAVQu (ORCPT ); Sat, 1 Nov 2014 17:16:50 -0400 Received: from cantor2.suse.de ([195.135.220.15]:57393 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760205AbaKAVQr (ORCPT ); Sat, 1 Nov 2014 17:16:47 -0400 Message-ID: <54554DBC.3050607@suse.de> Date: Sat, 01 Nov 2014 22:16:44 +0100 From: Alexander Graf User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: "Matwey V. Kornilov" , Jonathan Corbet CC: Peter Foley , LKML , "linux-doc@vger.kernel.org" , Jiri Kosina , Randy Dunlap , "afaerber@suse.de" Subject: Re: [PATCH] Documentation: Restrict TSC test code to x86 References: <1414454639-7491-1-git-send-email-agraf@suse.de> <20141028084735.6338d01b@lwn.net> <5454CC07.1070605@gmail.com> In-Reply-To: <5454CC07.1070605@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01.11.14 13:03, Matwey V. Kornilov wrote: > 28.10.2014 16:12, Alexander Graf пишет: >> >> >> >>> Am 28.10.2014 um 13:47 schrieb Jonathan Corbet : >>> >>> On Mon, 27 Oct 2014 20:07:51 -0400 >>> Peter Foley wrote: >>> >>>>> The prctl test code in Documentation/ tries to show how to >>>>> use a call that only makes sense on x86. Restrict it there >>>>> so that other platforms don't try to call asm("rdtsc"). >>>>> >>>>> Signed-off-by: Alexander Graf >>>> >>>> Acked-by: Peter Foley >>> >>> Snagged into the docs tree, thanks. >> >> Awesome, please make sure this makes it into 3.18 - the build is broken on non-x86 archs there ;). >> >> Alex >> > > Hi, > > Sorry for criticism, but the patch is not complete. > CONFIG_X86 deals with target architecture, at the same time the problem > deals with the host architecture. > > Imagine, that I run arm, aarch64 or something else and do > cross-compiling kernel for x86 on it. Then CONFIG_X86 will evaluate to > 'y' and make will try to compile the apps with the host-compiler, which > is not x86 one. Good point. Any ideas how I can easily limit this to x86 hosts? Alex