From: Andrew Price Date: Thu, 4 Feb 2016 11:20:33 +0000 Subject: [Cluster-devel] [PATCH 22/23] gfs2_edit: Don't export bh In-Reply-To: <1454584834-32412-1-git-send-email-anprice@redhat.com> References: <1454584834-32412-1-git-send-email-anprice@redhat.com> Message-ID: <1454584834-32412-23-git-send-email-anprice@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit bh is now only used in hexedit.c so restrict its visibility to that file. Signed-off-by: Andrew Price --- gfs2/edit/gfs2hex.c | 1 - gfs2/edit/hexedit.c | 1 + gfs2/edit/hexedit.h | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gfs2/edit/gfs2hex.c b/gfs2/edit/gfs2hex.c index 4915e5c..1f55a43 100644 --- a/gfs2/edit/gfs2hex.c +++ b/gfs2/edit/gfs2hex.c @@ -29,7 +29,6 @@ } while (FALSE); struct gfs2_sb sb; -struct gfs2_buffer_head *bh; struct gfs2_dinode di; int line, termlines, modelines[DMODES]; char edit_fmt[80]; diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c index 831ca45..a89ae36 100644 --- a/gfs2/edit/hexedit.c +++ b/gfs2/edit/hexedit.c @@ -34,6 +34,7 @@ const char *allocdesc[2][5] = { {"Free ", "Data ", "Unlnk", "Meta ", "Resrv"}, {"Free ", "Data ", "FreeM", "Meta ", "Resrv"},}; +struct gfs2_buffer_head *bh; struct gfs2_rgrp *lrgrp; struct gfs2_meta_header *lmh; struct gfs2_dinode *ldi; diff --git a/gfs2/edit/hexedit.h b/gfs2/edit/hexedit.h index 15586d4..f3220a7 100644 --- a/gfs2/edit/hexedit.h +++ b/gfs2/edit/hexedit.h @@ -37,7 +37,6 @@ extern char estring[1024]; /* edit string */ extern char efield[64]; extern uint64_t dev_offset; extern uint64_t max_block; -extern struct gfs2_buffer_head *bh; extern int termlines; extern int insert; extern const char *termtype; -- 2.4.3