Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2088138ybp; Thu, 10 Oct 2019 01:59:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqQajQDpN6m9HaRT7MW4looZXZDhWOkQSYlTX2Y+0qZsXH/RdSA4I3knxOt+x0VqTngMiy X-Received: by 2002:aa7:d898:: with SMTP id u24mr7014416edq.74.1570697991483; Thu, 10 Oct 2019 01:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570697991; cv=none; d=google.com; s=arc-20160816; b=O76v6PKzMi/UvC2dQ/vJAzAVl7m5BESod2f9Jft4+1d0vmvVI7beJr7AP6Ir6eRd0f gYkKOl4R66MirJIcK5ayrDLwHoHgkTQnPCJZTUHesAtxsQ8jwkeDj6pAgFuPQ6mBzae8 evylMvvEjNWYJZpvCSwaVhiqeHxQSCEEtF9hi9RoymUVFSDMU1jbks2UTFFB1zzWctLx XFG6E14bhpzPmw74EwmnqJqxuYSXjwB5+DNRrb18sj/Sl9fyhKnpQqp+cxFLFISRyHoY nVZignHjr7Jj2EabX7nj/kZECpEThgo7zrZruMnhTWKsYEgRsN6dCdHCqUfA+s4NE8Yk KmWg== 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=4Iyuot2+IKVRLLqtyIJ/1atMqxSzrieIc/kkJRwHUvk=; b=BQHW+I3w5N5/a9IzNul9jhH8BKxQ3r6auJ07RzQfHuONMdyT5IQ5o2WhySQfiDF43P ehTswyPiv/hdQkzSMALB/lBGuUrxRXfGNOvoJRKXiw86a+rRjW5mNmlgX8xfa156MtI/ hSZZNr4bOgjSUK7wOe1TaPfDoNVQYDSqCb+vH9gKXtiro86qd2GrTH+QTe1XKityPI8Y TfPuulPxrDPgGMrAVrkH/qbRcVFruYAJhorKtHnnQndphMHl+FjuQIDbU3gb/tuTPHHn weKcs6qNnD5+LdPXlgdpj6RtX63Jhf+axyTHlOWlQPIhIPALEgMR6IfoJLD/tZT0UhSD huDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ltCFWw71; 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 y49si3352580edb.138.2019.10.10.01.59.27; Thu, 10 Oct 2019 01:59:51 -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=ltCFWw71; 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 S2388932AbfJJIod (ORCPT + 99 others); Thu, 10 Oct 2019 04:44:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:49756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388949AbfJJIob (ORCPT ); Thu, 10 Oct 2019 04:44:31 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 A2F4F21929; Thu, 10 Oct 2019 08:44:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570697070; bh=d1cwlKNt2mnCdzZ5RHbHyTPGEAf/7X1xqYU1nu09wHU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ltCFWw71eab1LvbsQzZyYEfGa0srBinnJ1Y2owDbH4a3v74i7wnok+4TVFmUJcbPJ SFbtgDPjcwM+XtmIOXZaji8jwboU+c3j2w1YUFuNhKqI95fizd6XzSj0BGS0GFgvUf +qoX4yCBoLKd8F9ce8FuUztOLufCSEDh/Onva80I= 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 5.3 126/148] kernel/elfcore.c: include proper prototypes Date: Thu, 10 Oct 2019 10:36:27 +0200 Message-Id: <20191010083618.678356038@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191010083609.660878383@linuxfoundation.org> References: <20191010083609.660878383@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 fc482c8e0bd88..57fb4dcff4349 100644 --- a/kernel/elfcore.c +++ b/kernel/elfcore.c @@ -3,6 +3,7 @@ #include #include #include +#include Elf_Half __weak elf_core_extra_phdrs(void) { -- 2.20.1