From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933783AbdBVWrh (ORCPT ); Wed, 22 Feb 2017 17:47:37 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:40510 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932254AbdBVWr1 (ORCPT ); Wed, 22 Feb 2017 17:47:27 -0500 Date: Thu, 23 Feb 2017 01:46:46 +0300 From: "Dmitry V. Levin" To: "Eric W. Biederman" Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] uapi: fix linux/kexec.h userspace compilation errors Message-ID: <20170222224646.GC14311@altlinux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Include (guarded by #ifndef __KERNEL__) to fix the following linux/kexec.h userspace compilation errors: /usr/include/linux/kexec.h:53:2: error: unknown type name 'size_t' size_t bufsz; /usr/include/linux/kexec.h:55:2: error: unknown type name 'size_t' size_t memsz; Signed-off-by: Dmitry V. Levin --- include/uapi/linux/kexec.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/kexec.h b/include/uapi/linux/kexec.h index aae5ebf..7def5f5 100644 --- a/include/uapi/linux/kexec.h +++ b/include/uapi/linux/kexec.h @@ -45,6 +45,9 @@ #define KEXEC_SEGMENT_MAX 16 #ifndef __KERNEL__ + +#include /* For size_t. */ + /* * This structure is used to hold the arguments that are used when * loading kernel binaries. -- ldv From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from vmicros1.altlinux.org ([194.107.17.57]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgfgl-0005UE-PL for kexec@lists.infradead.org; Wed, 22 Feb 2017 22:47:14 +0000 Date: Thu, 23 Feb 2017 01:46:46 +0300 From: "Dmitry V. Levin" Subject: [PATCH] uapi: fix linux/kexec.h userspace compilation errors Message-ID: <20170222224646.GC14311@altlinux.org> Mime-Version: 1.0 Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: "Eric W. Biederman" Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org Include (guarded by #ifndef __KERNEL__) to fix the following linux/kexec.h userspace compilation errors: /usr/include/linux/kexec.h:53:2: error: unknown type name 'size_t' size_t bufsz; /usr/include/linux/kexec.h:55:2: error: unknown type name 'size_t' size_t memsz; Signed-off-by: Dmitry V. Levin --- include/uapi/linux/kexec.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/kexec.h b/include/uapi/linux/kexec.h index aae5ebf..7def5f5 100644 --- a/include/uapi/linux/kexec.h +++ b/include/uapi/linux/kexec.h @@ -45,6 +45,9 @@ #define KEXEC_SEGMENT_MAX 16 #ifndef __KERNEL__ + +#include /* For size_t. */ + /* * This structure is used to hold the arguments that are used when * loading kernel binaries. -- ldv _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec