From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934685AbdBWBmf (ORCPT ); Wed, 22 Feb 2017 20:42:35 -0500 Received: from out01.mta.xmission.com ([166.70.13.231]:51416 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933510AbdBWBm3 (ORCPT ); Wed, 22 Feb 2017 20:42:29 -0500 From: ebiederm@xmission.com (Eric W. Biederman) To: "Dmitry V. Levin" Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org References: <20170222224646.GC14311@altlinux.org> Date: Thu, 23 Feb 2017 14:37:46 +1300 In-Reply-To: <20170222224646.GC14311@altlinux.org> (Dmitry V. Levin's message of "Thu, 23 Feb 2017 01:46:46 +0300") Message-ID: <87h93l3cwl.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1cgiQI-0003cy-Hm;;;mid=<87h93l3cwl.fsf@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=101.100.131.232;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1+qTf5QmZjlFX9yyzEh2UX5ZmcC4KlycVc= X-SA-Exim-Connect-IP: 101.100.131.232 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4440] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa02 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa02 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;"Dmitry V. Levin" X-Spam-Relay-Country: X-Spam-Timing: total 5320 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 4.7 (0.1%), b_tie_ro: 3.7 (0.1%), parse: 1.13 (0.0%), extract_message_metadata: 24 (0.5%), get_uri_detail_list: 1.59 (0.0%), tests_pri_-1000: 10 (0.2%), tests_pri_-950: 2.0 (0.0%), tests_pri_-900: 1.64 (0.0%), tests_pri_-400: 24 (0.4%), check_bayes: 22 (0.4%), b_tokenize: 8 (0.1%), b_tok_get_all: 4.8 (0.1%), b_comp_prob: 2.9 (0.1%), b_tok_touch_all: 3.0 (0.1%), b_finish: 0.84 (0.0%), tests_pri_0: 288 (5.4%), check_dkim_signature: 0.85 (0.0%), check_dkim_adsp: 4.5 (0.1%), tests_pri_500: 4959 (93.2%), poll_dns_idle: 4950 (93.1%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH] uapi: fix linux/kexec.h userspace compilation errors X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Dmitry V. Levin" writes: > 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; Were these failures generated with a static checker? What changed that you are seeing new failures in old essentially static headers? Eric > 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. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from out01.mta.xmission.com ([166.70.13.231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgiQz-0002RH-SP for kexec@lists.infradead.org; Thu, 23 Feb 2017 01:43:07 +0000 From: ebiederm@xmission.com (Eric W. Biederman) References: <20170222224646.GC14311@altlinux.org> Date: Thu, 23 Feb 2017 14:37:46 +1300 In-Reply-To: <20170222224646.GC14311@altlinux.org> (Dmitry V. Levin's message of "Thu, 23 Feb 2017 01:46:46 +0300") Message-ID: <87h93l3cwl.fsf@xmission.com> MIME-Version: 1.0 Subject: Re: [PATCH] uapi: fix linux/kexec.h userspace compilation errors 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: "Dmitry V. Levin" Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org "Dmitry V. Levin" writes: > 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; Were these failures generated with a static checker? What changed that you are seeing new failures in old essentially static headers? Eric > 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. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec