Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4929107imu; Mon, 12 Nov 2018 21:03:09 -0800 (PST) X-Google-Smtp-Source: AJdET5e2PvNswsQg7bPiq1Z6n1n/0SBrtJmk2JvgAbftvW95BYAmDl5/D6ybI6mr8ThtG+cLtU6y X-Received: by 2002:a62:3387:: with SMTP id z129-v6mr2397895pfz.143.1542085389223; Mon, 12 Nov 2018 21:03:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542085389; cv=none; d=google.com; s=arc-20160816; b=AxMF+20g+W81ZyuFXJ2ObPPsLDJR+ns0hQPiRMdxJIYj90q2v8FKzaSVnM41Hf0Snb Sc83Ar0Jf1UxRSCzBqO9IxImHUMlTkr/xE4xpCthjt+zmhLrMmc9nbpqE6qAIRob8Zp4 7ep/I9Cqsufzskjdc399W1WuADE3cfEJpGa/wnRHdHq5t7Md7AdTAuCq1ofCOIQ0qq9b 3NiyXiiNbx2jiUmNezRZkI2quFFUnHGjRCS1nWjT8ESTLJbnNMPk5qtO9NpB1YP/Frhe GzdpEh4yG38IREWk1PZivrOYZJmihxEzGRQmCca3DT3kX9s12PLYLYmDGFt6yJJeKj+A GR+A== 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:mime-version :message-id:date:subject:cc:to:from; bh=4xnrV/WVWkarjvNN8uB5/5HaiviVZ741149mIesdyh4=; b=FoRhusglvlpFPhlwr6u63Y8+Q8EzHFxwhFCLuUI5mROdaJZ6X6NobxVhXA3vzbnfnA C5afFu2h8yd/c3L41rT++TeCCkC9d6DNNYTD60UCdFXP4LE1BSuzrWSr6gkE+Ubl5PhK fRAdEP1PUJaNA4g48GQs73Hj3UykiCGap/OSTlSFarqdnsR4oXcz2lCbRRn6ZpEoEwmH As/YMtJ3pHKRMdyvbVFIG/LXm8BUbBHt4ARg8N3bVp/4lpNkGJLA5kjfAQJWov7rodLp miUzagyiZMrM//DVi/V4gK49N5ahQow73BLsmmQH+7HuEa+oQ5gRPsS7A5sDXkobUwiH JOvw== 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 k134si18861656pga.401.2018.11.12.21.02.53; Mon, 12 Nov 2018 21:03:09 -0800 (PST) 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 S1730656AbeKMO5c convert rfc822-to-8bit (ORCPT + 99 others); Tue, 13 Nov 2018 09:57:32 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:36216 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbeKMO5c (ORCPT ); Tue, 13 Nov 2018 09:57:32 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 67D249E0CD923C0BCAC3; Tue, 13 Nov 2018 13:01:10 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wAD50smi015127; Tue, 13 Nov 2018 13:00:54 +0800 (GMT-8) (envelope-from wang.yi59@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018111313010683-10345562 ; Tue, 13 Nov 2018 13:01:06 +0800 From: Yi Wang To: tglx@linutronix.de Cc: mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, konrad.wilk@oracle.com, luto@kernel.org, thomas.lendacky@amd.com, pravin.shedge4linux@gmail.com, namit@vmware.com, bp@suse.de, jroedel@suse.de, linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn, Yi Wang Subject: [PATCH] x86/process: Fix some -Wmissing-prototypes warnings Date: Tue, 13 Nov 2018 13:02:40 +0800 Message-Id: <1542085360-22396-1-git-send-email-wang.yi59@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-11-13 13:01:06, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-11-13 13:00:50 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-MAIL: mse01.zte.com.cn wAD50smi015127 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get a warning when building kernel with W=1: arch/x86/kernel/process.c:653:13: warning: no previous prototype for ‘arch_post_acpi_subsys_init’ [-Wmissing-prototypes] arch/x86/kernel/process.c:717:15: warning: no previous prototype for ‘arch_randomize_brk’ [-Wmissing-prototypes] arch/x86/kernel/process.c:784:6: warning: no previous prototype for ‘do_arch_prctl_common’ [-Wmissing-prototypes] Add the missing including files to fix this. Signed-off-by: Yi Wang --- arch/x86/kernel/process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index c93fcfd..8a33d4a 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -22,6 +22,8 @@ #include #include #include +#include +#include #include #include #include @@ -39,6 +41,7 @@ #include #include #include +#include /* * per-CPU TSS segments. Threads are completely 'soft' on Linux, -- 1.8.3.1