From patchwork Wed Oct 10 20:01:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 10635189 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 29B2C69B7 for ; Wed, 10 Oct 2018 20:01:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 151152ACB5 for ; Wed, 10 Oct 2018 20:01:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 118372ACEE; Wed, 10 Oct 2018 20:01:42 +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 BA1352ACB5 for ; Wed, 10 Oct 2018 20:01:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727733AbeJKDZV (ORCPT ); Wed, 10 Oct 2018 23:25:21 -0400 Received: from sandeen.net ([63.231.237.45]:56204 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727729AbeJKDZV (ORCPT ); Wed, 10 Oct 2018 23:25:21 -0400 Received: by sandeen.net (Postfix, from userid 500) id F2AAA7921; Wed, 10 Oct 2018 15:01:23 -0500 (CDT) From: Eric Sandeen To: linux-xfs@vger.kernel.org Subject: [PATCH 07/18] libxfs: silence static warnings about platform_* functions Date: Wed, 10 Oct 2018 15:01:11 -0500 Message-Id: <1539201682-22198-8-git-send-email-sandeen@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1539201682-22198-1-git-send-email-sandeen@redhat.com> References: <1539201682-22198-1-git-send-email-sandeen@redhat.com> 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 Add all platform_* prototypes to init.h and include it in linux.c to silence sparse warnings about static functions. Signed-off-by: Eric Sandeen Reviewed-by: Christoph Hellwig --- libfrog/linux.c | 1 + libxfs/init.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libfrog/linux.c b/libfrog/linux.c index fc9f3ac..b6c2487 100644 --- a/libfrog/linux.c +++ b/libfrog/linux.c @@ -11,6 +11,7 @@ #include "libxfs_priv.h" #include "xfs_fs.h" +#include "init.h" extern char *progname; static int max_block_alignment; diff --git a/libxfs/init.h b/libxfs/init.h index e0b5091..2cda895 100644 --- a/libxfs/init.h +++ b/libxfs/init.h @@ -19,5 +19,7 @@ extern char *platform_findblockpath (char *path); extern int platform_direct_blockdev (void); extern int platform_align_blockdev (void); extern unsigned long platform_physmem(void); /* in kilobytes */ +extern void platform_findsizes(char *path, int fd, long long *sz, int *bsz); +extern int platform_nproc(void); #endif /* LIBXFS_INIT_H */