Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5034493imu; Mon, 12 Nov 2018 23:25:33 -0800 (PST) X-Google-Smtp-Source: AJdET5df+b5AJmF6cbafJWOAxcuRfYPg23ePoEYDRnIZNM+KwJ4fZwlqneNUwP7DcoY7xAeu5G7m X-Received: by 2002:a63:7044:: with SMTP id a4mr3636538pgn.359.1542093933369; Mon, 12 Nov 2018 23:25:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542093933; cv=none; d=google.com; s=arc-20160816; b=Qkofm8GLSg+Kv+Dhfb/2KER4vqrrvGnu6eZw5KMcfaBUWWcj/iboZvqeNi1dbDreEN OcoQ1stm4TlMeDpv934lNhj0IaZZJa0yul0xx/3WaS0o80x/eA4HIjymxgWrb+7XQgc4 4OOg6hhdly86/XMuxhD/ojXYpk/MpmZUP/gey2WwWpyKJtLIKX0iIXBl0990Xzsgvjq+ Olei4nbfX7iLjAVni4CzFkD+mhd/LVWHe2aDbT3vfC0abkiyOk44O9qzpB6mRNbHKgfj FKj6tkY3gz7a22+bvTroJYz+4Cl1nFxMsgkIvYh/Yj/HJ1hUA+zXOEcsHxec7oEkgsmk baTQ== 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=hgXf4eQv1r9oKliGzcOn0sMInZ59j304gQ43jtiyMXU=; b=i2BQtT8DxpkB65w/eO/2KdpqyTWf3iAqha/2X6t4ihIZg558DWm0JhZkHIWCuqKGEp DLUfyW3oiIUYWPmtItZtsTw0wK5xgWtGUVgGvAwYsohl8J3b9rMM7YYQwSWB/atPS6qM u4wdfB4Q/3POxqkMCviR6CMkCejHq80uC2MxeSLPcswq3ivrp2Qb4m2k8E293ZN8cAFx r7Z6QCZK9L9TkamlJaHu73oxluXn2OCSOMAHxkNCda47E1YSj9otRqT5Jz/yyNSPfsJu CJOWw6y9GKCWKSzNoY25qLwkXJn+663OUUgzEUZ6+ZzHh0sltf1DvpyG8JB8uL/4nx6i 6+5w== 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 v14-v6si19647366pgt.78.2018.11.12.23.25.15; Mon, 12 Nov 2018 23:25:33 -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 S1730124AbeKMRVl convert rfc822-to-8bit (ORCPT + 99 others); Tue, 13 Nov 2018 12:21:41 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:59508 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726454AbeKMRVl (ORCPT ); Tue, 13 Nov 2018 12:21:41 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 5960D3D712ED0488290D; Tue, 13 Nov 2018 15:24:50 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wAD7OeVm043841; Tue, 13 Nov 2018 15:24:40 +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 2018111315245436-10380498 ; Tue, 13 Nov 2018 15:24:54 +0800 From: Yi Wang To: tglx@linutronix.de Cc: mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, keescook@chromium.org, luto@amacapital.net, wad@chromium.org, konrad.wilk@oracle.com, wang.yi59@zte.com.cn, dhowells@redhat.com, linux-kernel@vger.kernel.org, riel@redhat.com, viro@ZenIV.linux.org.uk, zhong.weidong@zte.com.cn Subject: [PATCH] fork: Fix two -Wmissing-prototypes warnings Date: Tue, 13 Nov 2018 15:26:28 +0800 Message-Id: <1542093988-42041-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 15:24:54, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-11-13 15:24:36 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-MAIL: mse01.zte.com.cn wAD7OeVm043841 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get two warning when building kernel with W=1: kernel/fork.c:167:13: warning: no previous prototype for ‘arch_release_thread_stack’ [-Wmissing-prototypes] kernel/fork.c:779:13: warning: no previous prototype for ‘fork_init’ [-Wmissing-prototypes] Add the missing declaration in head file to fix this. Signed-off-by: Yi Wang --- arch/x86/include/asm/thread_info.h | 1 + include/linux/sched/task.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index 2ff2a30..8621036 100644 --- a/arch/x86/include/asm/thread_info.h +++ b/arch/x86/include/asm/thread_info.h @@ -237,6 +237,7 @@ static inline int arch_within_stack_frames(const void * const stack, extern void arch_task_cache_init(void); extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); extern void arch_release_task_struct(struct task_struct *tsk); +extern void arch_release_thread_stack(unsigned long *stack); extern void arch_setup_new_exec(void); #define arch_setup_new_exec arch_setup_new_exec #endif /* !__ASSEMBLY__ */ diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h index 108ede9..44c6f15 100644 --- a/include/linux/sched/task.h +++ b/include/linux/sched/task.h @@ -39,6 +39,8 @@ extern void proc_caches_init(void); +extern void fork_init(void); + extern void release_task(struct task_struct * p); #ifdef CONFIG_HAVE_COPY_THREAD_TLS -- 1.8.3.1