From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 167C8C43387 for ; Thu, 10 Jan 2019 20:41:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CC765213F2 for ; Thu, 10 Jan 2019 20:41:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547152903; bh=84r/3j+jL/WMVFLYyaMNa31gWE1mhukCE6ztNCjLxrw=; h=From:To:Subject:Date:List-ID:From; b=ldg2lbKV0yOtojevcmJkSF5f0hwZWX132rSjHWNmlLQCgCJLqIvCNrYSLxP76vY// T8PkNZDaiKFjQFInQ13VLhSDhgmmFmbrPNTHwGm5PKndoxf/SQFeYmUoiXgMYF36We oQv4m8iDpNwhLzqfgvhywabLp/1u9IlC3C/zq7oA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730219AbfAJUln (ORCPT ); Thu, 10 Jan 2019 15:41:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:42660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729743AbfAJUln (ORCPT ); Thu, 10 Jan 2019 15:41:43 -0500 Received: from ebiggers-linuxstation.mtv.corp.google.com (unknown [104.132.1.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9947120879; Thu, 10 Jan 2019 20:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547152902; bh=84r/3j+jL/WMVFLYyaMNa31gWE1mhukCE6ztNCjLxrw=; h=From:To:Subject:Date:From; b=dPW1R/3/uydZ7ciVlPHrDVde+qeiVghMOfj7AU89llSlZmPsCJ1w6lPkzMS0nYHnq KoptlwhK3dIxY/6W4rfdeJK06QHyfj3oruBuB+I5tpiGr1px60IkqdHMQs49I3cDZ0 BjEQlQ0gBRsOdiYvNq+neW/w9ACQV8Dj5pD6TUcE= From: Eric Biggers To: linux-fsdevel@vger.kernel.org, Alexander Viro Subject: [PATCH RESEND] fs/buffer.c: include fs/internal.h for missing prototypes Date: Thu, 10 Jan 2019 12:40:41 -0800 Message-Id: <20190110204041.119841-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.20.1.97.g81188d93c3-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org From: Eric Biggers __block_write_begin_int(), __generic_write_end(), and guard_bio_eod() are defined in fs/buffer.c and declared in fs/internal.h, but the declarations aren't included at the point of the definitions. Include the header to enforce that the definitions match the declarations. This addresses gcc warnings when -Wmissing-prototypes is enabled. Signed-off-by: Eric Biggers --- fs/buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/buffer.c b/fs/buffer.c index 52d024bfdbc12..7a9937b0cb9f3 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -46,6 +46,7 @@ #include #include #include +#include "internal.h" static int fsync_buffers_list(spinlock_t *lock, struct list_head *list); static int submit_bh_wbc(int op, int op_flags, struct buffer_head *bh, -- 2.20.1.97.g81188d93c3-goog