From patchwork Thu Nov 15 00:10:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 10683373 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DE12E139B for ; Thu, 15 Nov 2018 00:11:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE8CA2BF93 for ; Thu, 15 Nov 2018 00:11:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C27FF2BF9C; Thu, 15 Nov 2018 00:11:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C5512BF93 for ; Thu, 15 Nov 2018 00:11:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726644AbeKOKQa (ORCPT ); Thu, 15 Nov 2018 05:16:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:52032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbeKOKQa (ORCPT ); Thu, 15 Nov 2018 05:16:30 -0500 Received: from ebiggers.mtv.corp.google.com (unknown [104.132.1.85]) (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 CDDA721582; Thu, 15 Nov 2018 00:11:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542240660; bh=0/IN2lIW5JSBGrLWeazk4ieyxdw6R/ZP8lsSA4TZiPw=; h=From:To:Subject:Date:From; b=Y7VYCUIvIwRLL2VimnczeTxUCbmrZWy7OjE/YZQxu88wAFtXXcciXS63Hyc/dgQsz uEO9kospyQ9ACXwf81d9nizwYLXJQsy9tt1jOps7r96S+lXMGVhLTjfVIrkNQfBB8q m1cScS7hxAMNBCm4HIQRi2Hdx4BtoM9GpUBtGlrQ= From: Eric Biggers To: linux-fsdevel@vger.kernel.org, Alexander Viro Subject: [PATCH] fs/buffer.c: include fs/internal.h for missing prototypes Date: Wed, 14 Nov 2018 16:10:20 -0800 Message-Id: <20181115001020.47819-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 1286c2b95498d..3581e42cf6cbb 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,