Received: by 10.213.65.68 with SMTP id h4csp1500221imn; Wed, 4 Apr 2018 21:33:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx49CksIky5AJpTikvyWstfkHm3q/ydG4goAY/EkVeZYsTTpCd2mAO9YRx2qGjFDl2eW3DESk X-Received: by 2002:a17:902:5acf:: with SMTP id g15-v6mr20932531plm.138.1522902816534; Wed, 04 Apr 2018 21:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522902816; cv=none; d=google.com; s=arc-20160816; b=j4qiDnTD8eVyWGGzFQ7iwFJFK628OXG/Hl7uA52YkNGroPQAjQX+96DoscDifvM0o1 rbby+GS2hPl4vFblxmODqswz/XSCHu+2SGxzqF2VlZOt8AncxdD7FXupjdsS1c6UBhqa m69IwDqlDKRIoinLruEpHBOKE6jL5i35XPR6QxtQe4YLjEIRJjr/3lZ5Cal9h8LgN7K3 T7bRn4b/Hv9N+TUCN2R40W9ZsLwxgtROJpQOEG7yDXsvcisoOKTjHiXPUqr7HVbqgchB TZKscBWzNqObRxQggxxzlN3qUuqlBPDQ9LkOFiq/EJnOMhgqKTLIDAQtkt46a1y6dd2i 7GFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :mail-followup-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=4wn/vX/HKT8iTdKyUJBR/r9V2C9PhFfZqGJhZtkZDS0=; b=T+deTET2waHcfTiYs3mlzaRZfMEJ+XzHiIbhV0+zhBTatnCDnxe3PBuKWwJCYWqaM/ 8Q+H0SJJBUvct2EDxDmmMEfosetDLkelM6rAgMzOZw8R9d/R0XMzVA7IEYcQemzCeMtE VlnXY3kUHM4SYrECHACmahPwiYCGIQ64Sdni5ntjDEttZZqgpp3eWwCEANDTWlaRNgHW VeY2AkChRdXGK0FBAFJQ1/vJZgbNIouw5onKgw61AiNeBCkE0UqILTj77BoMEZHps9Wr b5+fIVVUrBtgtY0kW1SC9z5mpyHJpCc5CswuPHuYz+Qop0KijCY4TX6NxesApm8+AYMV yszA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a33-v6si4994545pld.125.2018.04.04.21.33.21; Wed, 04 Apr 2018 21:33:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751329AbeDEEcN (ORCPT + 99 others); Thu, 5 Apr 2018 00:32:13 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:44406 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750846AbeDEEcM (ORCPT ); Thu, 5 Apr 2018 00:32:12 -0400 X-Greylist: delayed 315 seconds by postgrey-1.27 at vger.kernel.org; Thu, 05 Apr 2018 00:32:11 EDT Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 8EE0972D1E8; Thu, 5 Apr 2018 07:32:10 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 7D5407CC685; Thu, 5 Apr 2018 07:32:10 +0300 (MSK) Date: Thu, 5 Apr 2018 07:32:10 +0300 From: "Dmitry V. Levin" To: Jan Kiszka Cc: Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] uapi: fix asm/bootparam.h userspace compilation errors Message-ID: <20180405043210.GA13254@altlinux.org> Mail-Followup-To: Jan Kiszka , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Consistently use types provided by to fix the following asm/bootparam.h userspace compilation errors: /usr/include/asm/bootparam.h:140:2: error: unknown type name 'u16' u16 version; /usr/include/asm/bootparam.h:141:2: error: unknown type name 'u16' u16 compatible_version; /usr/include/asm/bootparam.h:142:2: error: unknown type name 'u16' u16 pm_timer_address; /usr/include/asm/bootparam.h:143:2: error: unknown type name 'u16' u16 num_cpus; /usr/include/asm/bootparam.h:144:2: error: unknown type name 'u64' u64 pci_mmconfig_base; /usr/include/asm/bootparam.h:145:2: error: unknown type name 'u32' u32 tsc_khz; /usr/include/asm/bootparam.h:146:2: error: unknown type name 'u32' u32 apic_khz; /usr/include/asm/bootparam.h:147:2: error: unknown type name 'u8' u8 standard_ioapic; /usr/include/asm/bootparam.h:148:2: error: unknown type name 'u8' u8 cpu_ids[255]; Fixes: 4a362601baa6 ("x86/jailhouse: Add infrastructure for running in non-root cell") Cc: # v4.16 Signed-off-by: Dmitry V. Levin --- arch/x86/include/uapi/asm/bootparam.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/x86/include/uapi/asm/bootparam.h b/arch/x86/include/uapi/asm/bootparam.h index aebf60357758..a06cbf019744 100644 --- a/arch/x86/include/uapi/asm/bootparam.h +++ b/arch/x86/include/uapi/asm/bootparam.h @@ -137,15 +137,15 @@ struct boot_e820_entry { * setup data structure. */ struct jailhouse_setup_data { - u16 version; - u16 compatible_version; - u16 pm_timer_address; - u16 num_cpus; - u64 pci_mmconfig_base; - u32 tsc_khz; - u32 apic_khz; - u8 standard_ioapic; - u8 cpu_ids[255]; + __u16 version; + __u16 compatible_version; + __u16 pm_timer_address; + __u16 num_cpus; + __u64 pci_mmconfig_base; + __u32 tsc_khz; + __u32 apic_khz; + __u8 standard_ioapic; + __u8 cpu_ids[255]; } __attribute__((packed)); /* The so-called "zeropage" */ -- ldv