Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp232338ybg; Thu, 17 Oct 2019 22:03:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwv9zYEnoezrtGaORU/ZYNeBLDkeUN1UbSNo6TY+/J1oKmtgEPGSIaIw8HFSj2PHIdjzThn X-Received: by 2002:a17:907:4090:: with SMTP id nt24mr7157752ejb.122.1571375022552; Thu, 17 Oct 2019 22:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571375022; cv=none; d=google.com; s=arc-20160816; b=uVlf85gD71G8UKMwVIjVonIVEUuLsuBZi1IWwMeDSEVH0RalKe9svfZIoKlKbr/AmQ bTLEIzmYofTdAS0EijQsla4mAaSsXaMQ7jCc8UJ9GMmaMuj5/HZaYSGL89CnmdPexMzl 7cKaPiuG+8xivFmVAWAaoJLSx7KWrIEiG8G1KyS1jbxNABE7oi2hhd48hoUQ0HENrOcE n14lBc4OzPOS5SozsywfK7LkxuL2USpwhFpiZNRDETVqXQSDgtZspS8nWjptMk4bSdRv yvzAHzA9nM3MK4K0f5y66X7deczL82596J3AVR0p9vYr4ZFmVmeRbQy/sc4VWbjHYABw R9Fg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xhMFxH2bK6L/aNCxnqwewdZ6819Gvl9CXjaKZ4KM6lw=; b=mwpOnJrAutjcEdIZlu3Xf/IXBr9cR0x6JIqyCJqdauZj141j6MR3HsU4DxQb88wNaI iXewKfMVEQkJi/3jehjX9UfrdfBk8Y+VAI88LNZSzwvSq5MksSM2DkoXcpIU1qwcH0au zhFH9HaPfyI7X11rrnlYFcF0D4zWSlRLGR/AiyvdO0xtqhfdmNlWAGgdfNzG7A5yzxPN C4XPSbLe+NF47jSXBlhHYHJoSDy94bBrTCuSwgpi0cWXJgV1AOI2Gd+3vOBZvVGMa4/D xo+5n4XG2GWizl/arbdkC3FYMuDa2EVdUGWCApdyGhJaDJOa+lK04UMAWddO3PEYo44F y5BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=W+0cpdLW; 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 l12si3696076edk.444.2019.10.17.22.03.19; Thu, 17 Oct 2019 22:03:42 -0700 (PDT) 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=@kernel.org header.s=default header.b=W+0cpdLW; 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 S2393708AbfJPWSt (ORCPT + 99 others); Wed, 16 Oct 2019 18:18:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:44064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437707AbfJPVyU (ORCPT ); Wed, 16 Oct 2019 17:54:20 -0400 Received: from localhost (unknown [192.55.54.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A2F1F20872; Wed, 16 Oct 2019 21:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571262859; bh=8RDZahehh86mUaLsL8w6c3B6FC/eAknSP6AsN0Pn2IM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W+0cpdLWXtP0anK6BMUQRM3bq05Q4P2jwnaitgyB04VJslmerBDOV1EhvUHxcvznI ARs4CfUeUNIqopPrzH1b8UaYbRgBqA3haucsb2hFPHRPcJdT0WVCFERgJRCO4RuSjq Bb1Wq7tJs9UPoN8RMBSbNTmE8vljP6K2J+n6RDFQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Valdis Kletnieks , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 4.9 25/92] kernel/elfcore.c: include proper prototypes Date: Wed, 16 Oct 2019 14:49:58 -0700 Message-Id: <20191016214820.207374320@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191016214759.600329427@linuxfoundation.org> References: <20191016214759.600329427@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Valdis Kletnieks [ Upstream commit 0f74914071ab7e7b78731ed62bf350e3a344e0a5 ] When building with W=1, gcc properly complains that there's no prototypes: CC kernel/elfcore.o kernel/elfcore.c:7:17: warning: no previous prototype for 'elf_core_extra_phdrs' [-Wmissing-prototypes] 7 | Elf_Half __weak elf_core_extra_phdrs(void) | ^~~~~~~~~~~~~~~~~~~~ kernel/elfcore.c:12:12: warning: no previous prototype for 'elf_core_write_extra_phdrs' [-Wmissing-prototypes] 12 | int __weak elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/elfcore.c:17:12: warning: no previous prototype for 'elf_core_write_extra_data' [-Wmissing-prototypes] 17 | int __weak elf_core_write_extra_data(struct coredump_params *cprm) | ^~~~~~~~~~~~~~~~~~~~~~~~~ kernel/elfcore.c:22:15: warning: no previous prototype for 'elf_core_extra_data_size' [-Wmissing-prototypes] 22 | size_t __weak elf_core_extra_data_size(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ Provide the include file so gcc is happy, and we don't have potential code drift Link: http://lkml.kernel.org/r/29875.1565224705@turing-police Signed-off-by: Valdis Kletnieks Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- kernel/elfcore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/elfcore.c b/kernel/elfcore.c index e556751d15d94..a2b29b9bdfcb2 100644 --- a/kernel/elfcore.c +++ b/kernel/elfcore.c @@ -2,6 +2,7 @@ #include #include #include +#include Elf_Half __weak elf_core_extra_phdrs(void) { -- 2.20.1