1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cov: make it aware we need these headers for muslC

This commit is contained in:
Zdenek Kabelac 2021-09-09 23:06:45 +02:00
parent a14371e495
commit 3b2a4e3e6f
5 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,7 @@
* in runtime we are linked agains systems libdm 'older' library
* which does not provide this symbol and plugin fails to load
*/
/* coverity[unnecessary_header] used for parsing */
#include "device_mapper/vdo/status.c"
#include <sys/wait.h>

View File

@ -29,6 +29,7 @@
#include <unistd.h>
#include <dirent.h>
#include <locale.h>
/* coverity[unnecessary_header] needed for MuslC */
#include <sys/file.h>
struct dev_iter {

View File

@ -47,6 +47,7 @@ static uint32_t _log_seqnum = 1;
*/
#define FIELD(type, strct, sorttype, head, field_name, width, func, id, desc, writeable) field_ ## id,
enum {
/* coverity[unnecessary_header] */
#include "columns.h"
};
#undef FIELD
@ -4340,6 +4341,7 @@ typedef struct label type_label;
typedef dev_known_type_t type_devtype;
static const struct dm_report_field_type _fields[] = {
/* coverity[unnecessary_header] */
#include "columns.h"
{0, 0, 0, 0, "", "", NULL, NULL},
};
@ -4350,6 +4352,7 @@ static const struct dm_report_field_type _devtypes_fields[] = {
};
static const struct dm_report_field_type _log_fields[] = {
/* coverity[unnecessary_header] */
#include "columns-cmdlog.h"
{0, 0, 0, 0, "", "", NULL, NULL},
};

View File

@ -22,6 +22,7 @@
#include "lib/locking/lvmlockd.h"
#include "lib/datastruct/str_list.h"
/* coverity[unnecessary_header] */
#include "stub.h"
#include "lib/misc/last-path-component.h"

View File

@ -17,6 +17,7 @@
#include "lib/device/device_id.h"
#include "lib/device/dev-type.h"
/* coverity[unnecessary_header] needed for MuslC */
#include <sys/file.h>
static void _search_devs_for_pvids(struct cmd_context *cmd, struct dm_list *search_pvids, struct dm_list *found_devs)