Received: by 10.213.65.68 with SMTP id h4csp1621872imn; Thu, 5 Apr 2018 00:27:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx48EQzrzA9AIkTGhKmIweH+sRjo9XpaX/PbzmdKY0bm7dMdOHL93qwc/1y75aLAtZMRIPTDr X-Received: by 10.98.178.76 with SMTP id x73mr14538461pfe.193.1522913231259; Thu, 05 Apr 2018 00:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522913231; cv=none; d=google.com; s=arc-20160816; b=Js0O591rmLKG+fWlQ1F/ZKfuXK+W2MWuhptJbuGvx/jzngA2fSd1fk+UQVRUim2rGZ XLmCQ8Cv7KwfUS3Iwm56ar6FsWPfrzphSLXZdeNb31XiOFn71b4vagg0Cr7WnxT+xxaC CEZTLAn+8ifOuH3v9iBqiSE/PHwh/z6BBTDvr6zkRJZrv7Ug4M4Y64OsOWrrS2pbuxyD tbjDPZz0EkbdkIlupOKJL3bUN68rKxlS6R/CR5vQuSwG+F7LY2lpdGg3JPRNqLnyCxoN I4L+rn4aF100pDldmaM2hFHO81IY0KFIFD3miK+UAki6IhSrjawvdQnygweOfDtdQqUV 25Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:cc:references:to:subject :arc-authentication-results; bh=+4Kl7kgg/OvQ24QR+j8KLBEK/j9Wi6Dq2GQWtJ4SoVE=; b=wBevdOCVfglO1t7czhKA4dbCJzRB2jySLn+x46LoGyUk3yW3LxkD4C3z3Qb95e3CJf 6FPpr2enL2V4Acvi2OPgNgIYMmJMUPhFPVTQira6o3y1KLAWUi5u+hTYEW7HRuyf6WKm MFnFm+1WSB0EKj16YlXCw3v0JV19VICxwVWijSkZaGP7omER5nHp8zViZOquLyxR8rL0 hd6em116osI8BFiV/Jvpl+Nh7l3IepjFZABD/zHB/HWRZFZhJkNTGsD+l2OH3P2mVoI2 CdsmvR9xsaQCKSnej1RizvM0/ZDLUFmf6vqBS7TQHE2PnYTXnJn5xqgokP2ka8v8erXc Tm8Q== 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 n20si5183735pgc.508.2018.04.05.00.26.56; Thu, 05 Apr 2018 00:27:11 -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 S1751376AbeDEHZk (ORCPT + 99 others); Thu, 5 Apr 2018 03:25:40 -0400 Received: from goliath.siemens.de ([192.35.17.28]:36658 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbeDEHZj (ORCPT ); Thu, 5 Apr 2018 03:25:39 -0400 Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id w357PReK015964 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Apr 2018 09:25:27 +0200 Received: from [167.87.31.205] ([167.87.31.205]) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w357PQkB017240; Thu, 5 Apr 2018 09:25:27 +0200 Subject: Re: [PATCH] uapi: fix asm/bootparam.h userspace compilation errors To: "Dmitry V. Levin" References: <20180405043210.GA13254@altlinux.org> Cc: Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org From: Jan Kiszka Openpgp: preference=signencrypt Message-ID: <32e449e9-5738-d347-20ad-50ee4a2257e2@siemens.com> Date: Thu, 5 Apr 2018 09:25:26 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <20180405043210.GA13254@altlinux.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-04-05 06:32, Dmitry V. Levin wrote: > 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" */ > Acked-by: Jan Kiszka But how did you trigger this? Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux