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 <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2017-02-12 18:48:21 +00:00 committed by Karel Zak
parent a2c8c533ce
commit c5e3ebcedc
2 changed files with 5 additions and 5 deletions

View File

@ -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
*/

View File

@ -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
*/