From: Sami Kerola Date: Sun, 12 Feb 2017 18:48:21 +0000 (+0000) Subject: libblkid: declare across file variables in blkidP.h [smatch scan] X-Git-Tag: v2.30-rc1~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5e3ebcedcc810d74faea7f2f70aa06ca47379b6;p=thirdparty%2Futil-linux.git libblkid: declare across file variables in blkidP.h [smatch scan] Else these variables will cause following warning: libblkid/src/superblocks/superblocks.c:165:29: warning: symbol 'superblocks_drv' was not declared. Should it be static? Signed-off-by: Sami Kerola --- diff --git a/libblkid/src/blkidP.h b/libblkid/src/blkidP.h index 817c8b02b5..de41473a87 100644 --- a/libblkid/src/blkidP.h +++ b/libblkid/src/blkidP.h @@ -116,6 +116,11 @@ struct blkid_chaindrv { void (*free_data)(blkid_probe, void *); }; +/* chains */ +extern const struct blkid_chaindrv superblocks_drv; +extern const struct blkid_chaindrv topology_drv; +extern const struct blkid_chaindrv partitions_drv; + /* * Low-level probe result */ diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c index df90a82e09..ab05fb2d39 100644 --- a/libblkid/src/probe.c +++ b/libblkid/src/probe.c @@ -115,11 +115,6 @@ #include "strutils.h" #include "list.h" -/* chains */ -extern const struct blkid_chaindrv superblocks_drv; -extern const struct blkid_chaindrv topology_drv; -extern const struct blkid_chaindrv partitions_drv; - /* * All supported chains */