From patchwork Mon Apr 8 22:39:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 10890253 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 E02A9139A for ; Mon, 8 Apr 2019 22:39:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0557287D4 for ; Mon, 8 Apr 2019 22:39:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B0FD6287E2; Mon, 8 Apr 2019 22:39:33 +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=-7.9 required=2.0 tests=BAYES_00,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 492E6287D4 for ; Mon, 8 Apr 2019 22:39:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726731AbfDHWjc (ORCPT ); Mon, 8 Apr 2019 18:39:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48322 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbfDHWjc (ORCPT ); Mon, 8 Apr 2019 18:39:32 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1046A30821FF for ; Mon, 8 Apr 2019 22:39:32 +0000 (UTC) Received: from [IPv6:::1] (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D8E555D72E for ; Mon, 8 Apr 2019 22:39:31 +0000 (UTC) To: linux-xfs From: Eric Sandeen Subject: [PATCH] xfsprogs: remove unused function prototypes Message-ID: Date: Mon, 8 Apr 2019 17:39:31 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Mon, 08 Apr 2019 22:39:32 +0000 (UTC) Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These are prototypes for functions that aren't defined anywhere in the code, so remove them. Signed-off-by: Eric Sandeen Reviewed-by: Darrick J. Wong diff --git a/db/crc.h b/db/crc.h index ca2621f..e5cc53d 100644 --- a/db/crc.h +++ b/db/crc.h @@ -7,4 +7,3 @@ struct field; extern void crc_init(void); -extern void crc_struct(const field_t *fields, int argc, char **argv); diff --git a/db/faddr.h b/db/faddr.h index 371bef4..50c4b01 100644 --- a/db/faddr.h +++ b/db/faddr.h @@ -13,7 +13,6 @@ extern void fa_cfileoffd(void *obj, int bit, typnm_t next); extern void fa_cfsblock(void *obj, int bit, typnm_t next); extern void fa_dfiloffd(void *obj, int bit, typnm_t next); extern void fa_dfsbno(void *obj, int bit, typnm_t next); -extern void fa_dinode_union(void *obj, int bit, typnm_t next); extern void fa_dirblock(void *obj, int bit, typnm_t next); extern void fa_drfsbno(void *obj, int bit, typnm_t next); extern void fa_drtbno(void *obj, int bit, typnm_t next); diff --git a/db/io.h b/db/io.h index 7618be4..c29a748 100644 --- a/db/io.h +++ b/db/io.h @@ -46,8 +46,7 @@ extern void pop_cur(void); extern void print_iocur(char *tag, iocur_t *ioc); extern void push_cur(void); extern void push_cur_and_set_type(void); -extern int read_buf(int64_t daddr, int count, void *bufp); -extern void write_cur(void); +extern void write_cur(void); extern void set_cur(const struct typ *type, xfs_daddr_t blknum, int len, int ring_add, bbmap_t *bbmap); extern void ring_add(void); diff --git a/include/input.h b/include/input.h index 4878d69..6d8dbcc 100644 --- a/include/input.h +++ b/include/input.h @@ -19,7 +19,6 @@ extern char *fetchline(void); extern size_t numlen(uint64_t val, size_t base); -extern struct timeval tadd(struct timeval t1, struct timeval t2); extern struct timeval tsub(struct timeval t1, struct timeval t2); extern double tdiv(double value, struct timeval tv); diff --git a/include/libxlog.h b/include/libxlog.h index 6c79115..92c54f4 100644 --- a/include/libxlog.h +++ b/include/libxlog.h @@ -88,7 +88,6 @@ extern int xlog_find_cycle_start(struct xlog *log, xfs_buf_t *bp, extern int xlog_find_tail(struct xlog *log, xfs_daddr_t *head_blk, xfs_daddr_t *tail_blk); -extern int xlog_test_footer(struct xlog *log); extern int xlog_recover(struct xlog *log, int readonly); extern void xlog_recover_print_data(char *p, int len); extern void xlog_recover_print_logitem(xlog_recover_item_t *item); diff --git a/libxfs/libxfs_io.h b/libxfs/libxfs_io.h index 12064d7..5bcf733 100644 --- a/libxfs/libxfs_io.h +++ b/libxfs/libxfs_io.h @@ -176,7 +176,6 @@ extern void libxfs_bcache_free(void); extern void libxfs_bcache_flush(void); extern void libxfs_purgebuf(xfs_buf_t *); extern int libxfs_bcache_overflowed(void); -extern int libxfs_bcache_usage(void); /* Buffer (Raw) Interfaces */ extern xfs_buf_t *libxfs_getbufr(struct xfs_buftarg *, xfs_daddr_t, int); diff --git a/libxfs/xfs_dir2_priv.h b/libxfs/xfs_dir2_priv.h index 59f9fb2..08643a3 100644 --- a/libxfs/xfs_dir2_priv.h +++ b/libxfs/xfs_dir2_priv.h @@ -119,8 +119,4 @@ extern int xfs_dir2_sf_removename(struct xfs_da_args *args); extern int xfs_dir2_sf_replace(struct xfs_da_args *args); extern xfs_failaddr_t xfs_dir2_sf_verify(struct xfs_inode *ip); -/* xfs_dir2_readdir.c */ -extern int xfs_readdir(struct xfs_trans *tp, struct xfs_inode *dp, - struct dir_context *ctx, size_t bufsize); - #endif /* __XFS_DIR2_PRIV_H__ */