Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5181196imu; Tue, 13 Nov 2018 02:28:45 -0800 (PST) X-Google-Smtp-Source: AJdET5ecJWDPft3FXH+r66e7FbgRgFVBOvfgkQ/5trWKsigF1qsSLP25RlQ9zembL8PmUhkQO0Zr X-Received: by 2002:a63:ba19:: with SMTP id k25mr4191852pgf.194.1542104925621; Tue, 13 Nov 2018 02:28:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542104925; cv=none; d=google.com; s=arc-20160816; b=qaoDYmF+4YQAGrtS4a76U0laT1+Iwc/MAmWyit9FrslVPf5IONETjyBJ//BmgT6Cg1 Md/GP+wDU3hN0aycNgAvu2H5hJsDF3PJyQJOzbiArM09Dx+vNTB/M3V/eWcAtJtacg5V LGJhKpx4ht1vguAdNJyHsOycngIwbVeuT1ME7VvH4IRfKiZ25F5jNEwSl8C7DL7L3u2W ikex/5Ay8gjG6ddGpIL9Nhk/afxlpaCf11wh+rsXaZkB5ujt9nE3moEpvLXjdjqUgCeQ qRzrCYBIA+aDxJkFUWg/S8ixzix3VdUA0S9Jzz2nYsop0TDBmtTz6kHFne/n570+Lf2c YK2A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=yvaLrMYlmShFxWOE6/uiTzd6EuykZhWYPK7sNtKjcUc=; b=ZdTyqYxBVhkryBoXlwowZ+NRNKe6xWMwBxthNVwpYsRj6aeioUxV2OewhfI0AWme4e Uf4rkv8KVTHW9fgfiiVQoY2kY1pA7Wj0rDtkeV6cEpggn8TMWCYUB7B3U1cxyjiixwUu kXLOsaf4exF6mSKq75l99BonlGX6fPurKfo8AIL+VJz8hJUV77XG5qU2d1Ii9zc3594o OL9OgEzHCpZ2Kjse7O9UtSwFGuE/jxEQXCImozWHnUhd8E8758159DnPoev1DetutwS4 Vi+i6As+WZxJaLDXx3s0LiSZOwHOPgVM0TKIg7jBweIb+5aZ7a4aMzF7jagAdQFgT9o1 IyZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=EbKq9yhJ; 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 e20si3163724pgv.486.2018.11.13.02.28.30; Tue, 13 Nov 2018 02:28:45 -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; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=EbKq9yhJ; 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 S1732228AbeKMUYT (ORCPT + 99 others); Tue, 13 Nov 2018 15:24:19 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46329 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbeKMUYT (ORCPT ); Tue, 13 Nov 2018 15:24:19 -0500 Received: by mail-lj1-f196.google.com with SMTP id v15-v6so10314197ljh.13 for ; Tue, 13 Nov 2018 02:26:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yvaLrMYlmShFxWOE6/uiTzd6EuykZhWYPK7sNtKjcUc=; b=EbKq9yhJl2mTlhzV6TAkUKOcPERzyipemuuIqfZBxhfrRpM2ouxI1Jkdh2RodOQLtA giV/VLrsbfSZbzTRhOnpnR6MX1KhyIvr9WcbEN/Ovp36sWKUwoUpP6OooJyKDpeA6I6A Z609n20lKPYqCh+Jxwkzjj3ehfd22sbSQsAwU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yvaLrMYlmShFxWOE6/uiTzd6EuykZhWYPK7sNtKjcUc=; b=KoqDUsssMQESyFcaRdsbDbK8oeIPvnIvFSNgWZDucJWyOguZWMW1hCm9rXrKVYNGmL fbgUbyh2q8KFmMx0pGXnoj3cb1k06xN7y0dv4jr4/PQc12sQGiaSxGtU5k2p9XRCHEGj oYI7qVeNPPUpzSe4RQuQGEzNAlnj/tAQ/n3c+3RqA1NGDzsAVZbv43W2G0jXy9DcI9kv TlInps3pNTRIV8LziyiRZr1UQGRo6wHfsJBiN3jM1EogDzQjRs1pfXiWFOtbtj4Kx6Y/ vwJhvieBsX9Yub6wcDpolQ7yKYElz8bZgtp1wbuI07lkujmcvF3ZnuH7I56XW1S28Aog 1RqQ== X-Gm-Message-State: AGRZ1gJIlNUvDayMLVAN2Sa6g28S04IwAYV2YXLNtVlczQpxM9kWaIDo 1tGncWqE3WIIuOf0lX83X/XG2A== X-Received: by 2002:a2e:1551:: with SMTP id 17-v6mr2786396ljv.68.1542104810013; Tue, 13 Nov 2018 02:26:50 -0800 (PST) Received: from [172.16.11.40] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id t7-v6sm3326482ljh.1.2018.11.13.02.26.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 02:26:49 -0800 (PST) Subject: Re: [PATCH] fork: Fix two -Wmissing-prototypes warnings To: Yi Wang , 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, dhowells@redhat.com, linux-kernel@vger.kernel.org, riel@redhat.com, viro@ZenIV.linux.org.uk, zhong.weidong@zte.com.cn References: <1542093988-42041-1-git-send-email-wang.yi59@zte.com.cn> From: Rasmus Villemoes Message-ID: Date: Tue, 13 Nov 2018 11:26:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1542093988-42041-1-git-send-email-wang.yi59@zte.com.cn> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/11/2018 08.26, Yi Wang wrote: > 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] I think you should also remove the "manual" declarations from the .c files that call the function, in this case fork_init() in init/main.c; otherwise there's no guarantee that those translation units actually include the header that contain the proper declaration. arch_release_thread_stack can probably just be removed completely after the recent arch cleanup, since bb9d81264 (arch: remove tile port) no arch seems to implement it. Rasmus