Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3sYszL65wTzDsW3 for ; Wed, 14 Sep 2016 17:06:38 +1000 (AEST) From: Michael Ellerman To: Cyril Bur , Simon Guo Cc: linuxppc-dev@lists.ozlabs.org, Suraj Jitindar Singh , Anshuman Khandual , Rashmica Gupta Subject: Re: [PATCH v14 00/15] selftests/powerpc: Add ptrace tests for ppc registers In-Reply-To: <1473826155.2554.6.camel@gmail.com> References: <1473665605-11890-1-git-send-email-wei.guo.simon@gmail.com> <1473745750.15800.1.camel@gmail.com> <20160912170105.GA17588@simonLocalRHEL7.x64> <1473826155.2554.6.camel@gmail.com> Date: Wed, 14 Sep 2016 17:06:35 +1000 Message-ID: <87poo7neo4.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cyril Bur writes: > Its messy but I think the accepted solution for kselftests is to do: > > #include "../../../../../usr/include/linux/elf.h" > > which I believe will get the headers generated for the target by `make > headers_install` and therefore should match that for which the > kselftests are being compiled. Don't put the path in the include line though, add it to CFLAGS. See eg. tools/testing/selftests/powerpc/tm/Makefile: tm-syscall: CFLAGS += -I../../../../../usr/include cheers