Received: by 10.213.65.68 with SMTP id h4csp1708830imn; Thu, 5 Apr 2018 02:21:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx4842IRYkaKL0BLg2vx0rkealeD9QStQ/iqxsq+BrAA1k0ZeWmZGIA59va9vyGF/rwb+sk60 X-Received: by 10.98.211.211 with SMTP id z80mr16375419pfk.16.1522920074083; Thu, 05 Apr 2018 02:21:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522920074; cv=none; d=google.com; s=arc-20160816; b=W/DE/DfTya3hVypVpCPUjQrqBQAvO1VKuMxD1gBmzQvKwJ3RZX2EBKV5iy/fLAK3tL KV1VoIO/VB3l1ormjC9no/sLyoRyGHxeiRNu0FlFmS9FoPGzaoeQ+mdoSIRtFPOurwOo fR+GlyDLVDxevQxJBtTf7rh95+ouRHV8Zrt1dGYzXcFPJAWZaZVHewJOqRVrce8+Fn8v phyjLmnmNvb8KZ/UaQqInZcMsvyr6wjby7N2korTY+gJvY/XN3a4lcE5dnvmeRUwb+OM O/kyLmlikvt4KFz8ijB2k4Aw0goMfW1B1I3EP1PApiLkGKli9qaT9coXvysj0EbXbZyW VU8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=kzf1u5qJYYLcPW9jMer6CISCd/+uRXZInzaGspZt4sA=; b=X46SqjYvsHBqIH3rWIOoiSC3DnjLBd3TaD5BZGi1JbyedHBsUKDs2Pzgyoz0WqQPB3 VIvVbH/yPawJ/2j1B0SRG5WokR6uBjQbYrTDx9p8XB7EQJzqjGAfBv6NROKC3LkVrtyY oQrIsc9++MXGFqIvLihEO6xF6ORg3YGxV6nHYzfkcWh0+2vp+uzQp8Ir8o59Eew4uwEj YaDVmi9hvx5WTeiXe6b78IGv5Ea3N+cXavGzYEVq1eHkSCsuEa7qDLEtnK8+PS5aAD2J +gIuMwt5WlrtJ24UL/Ge1Y9YN5ceiLG6ghIAJmwb2igs8h5XmUTF+YS/UIROVkCZ0sDZ j+vg== 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 t18si5761184pfj.217.2018.04.05.02.20.59; Thu, 05 Apr 2018 02:21:14 -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 S1752093AbeDEJTY (ORCPT + 99 others); Thu, 5 Apr 2018 05:19:24 -0400 Received: from terminus.zytor.com ([198.137.202.136]:32881 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751928AbeDEJTU (ORCPT ); Thu, 5 Apr 2018 05:19:20 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w359IToA118177; Thu, 5 Apr 2018 02:18:29 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w359ISiF118171; Thu, 5 Apr 2018 02:18:28 -0700 Date: Thu, 5 Apr 2018 02:18:28 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: "tip-bot for Dmitry V. Levin" Message-ID: Cc: peterz@infradead.org, linux-kernel@vger.kernel.org, mingo@kernel.org, ldv@altlinux.org, torvalds@linux-foundation.org, tglx@linutronix.de, hpa@zytor.com, jan.kiszka@siemens.com Reply-To: mingo@kernel.org, linux-kernel@vger.kernel.org, peterz@infradead.org, hpa@zytor.com, tglx@linutronix.de, jan.kiszka@siemens.com, ldv@altlinux.org, torvalds@linux-foundation.org In-Reply-To: <20180405043210.GA13254@altlinux.org> References: <20180405043210.GA13254@altlinux.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/pti] x86/uapi: Fix asm/bootparam.h userspace compilation errors Git-Commit-ID: 9820e1c3376c641299624dd24646aed3167ad5b1 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 9820e1c3376c641299624dd24646aed3167ad5b1 Gitweb: https://git.kernel.org/tip/9820e1c3376c641299624dd24646aed3167ad5b1 Author: Dmitry V. Levin AuthorDate: Thu, 5 Apr 2018 07:32:10 +0300 Committer: Ingo Molnar CommitDate: Thu, 5 Apr 2018 10:05:21 +0200 x86/uapi: Fix asm/bootparam.h userspace compilation errors 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]; Signed-off-by: Dmitry V. Levin Acked-by: Jan Kiszka Cc: # v4.16 Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Fixes: 4a362601baa6 ("x86/jailhouse: Add infrastructure for running in non-root cell") Link: http://lkml.kernel.org/r/20180405043210.GA13254@altlinux.org Signed-off-by: Ingo Molnar --- 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" */