main - cov: make it aware we need these headers for muslC
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3b2a4e3e6f081002ab92f5f78326d2c1dfa879bf Commit: 3b2a4e3e6f081002ab92f5f78326d2c1dfa879bf Parent: a14371e4952f7a1b079a795c13927cea2eb196b6 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Sep 9 23:06:45 2021 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Sep 13 12:34:41 2021 +0200
cov: make it aware we need these headers for muslC
--- daemons/dmeventd/plugins/vdo/dmeventd_vdo.c | 1 + lib/device/dev-cache.c | 1 + lib/report/report.c | 3 +++ tools/lvmcmdline.c | 1 + tools/lvmdevices.c | 1 + 5 files changed, 7 insertions(+)
daemons/dmeventd/plugins/vdo/dmeventd_vdo.c +1 -0
@@ -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>
lib/device/dev-cache.c +1 -0
@@ -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 {
lib/report/report.c +3 -0
@@ -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 }, };
tools/lvmcmdline.c +1 -0
@@ -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"
tools/lvmdevices.c +1 -0
@@ -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)