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:
parent
a2c8c533ce
commit
c5e3ebcedc
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue