From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752780AbcBLOAA (ORCPT ); Fri, 12 Feb 2016 09:00:00 -0500 Received: from mail.skyhub.de ([78.46.96.112]:36153 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752578AbcBLN74 (ORCPT ); Fri, 12 Feb 2016 08:59:56 -0500 Date: Fri, 12 Feb 2016 14:59:53 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: Andy Lutomirski , X86 ML , "linux-kernel@vger.kernel.org" , Brian Gerst , Denys Vlasenko , Stas Sergeev , Cyrill Gorcunov , Pavel Emelyanov Subject: Re: [PATCH v3 4/4] selftests/x86: Add tests for UC_SIGCONTEXT_SS and UC_STRICT_RESTORE_SS Message-ID: <20160212135953.GD4099@pd.tnic> References: <1f3fc110f71fe0a95530193c6008b0c115328f34.1453754484.git.luto@kernel.org> <20160211195342.GI5565@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2016 at 04:46:31PM -0800, Andy Lutomirski wrote: > Too tangled. Adding: > > #include "../../../../arch/x86/include/asm/desc_defs.h" Yeah, that's fine. We do those crazy include paths in other tools too: $ grep -ErIn '(\.\.\/){2,}' tools/ tools/usb/ffs-test.c:42:#include "../../include/uapi/linux/usb/functionfs.h" tools/perf/bench/mem-memset-x86-64-asm.S:4:#include "../../../arch/x86/lib/memset_64.S" tools/perf/bench/mem-memcpy-x86-64-asm.S:4:#include "../../../arch/x86/lib/memcpy_64.S" tools/perf/util/include/asm/byteorder.h:2:#include "../../../../include/uapi/linux/swab.h" tools/perf/util/include/linux/const.h:1:#include "../../../../include/uapi/linux/const.h" ... > Complains that u16 isn't a type. Trying to include types.h doesn't > work well either. Add typedef unsigned short u16; before the include maybe? -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.