Skip to contentSkip to conversation

Tools: hv: fix compiler warnings and do minor cleanup

PATCH In review Vitaly Kuznetsov 4 participants 21 messages Dec 9, 2014 – Jan 9, 2015 Hyper-V/Azure core and drivers

lore
Share & tools
lore
#0 lore raw

cover Tools: hv: fix compiler warnings and do minor cleanup

When someone does 'make' in tools/hv/ issues appear:
- hv_fcopy_daemon is not being built;
- lots of compiler warnings.

This is just a cleanup. Compile-tested by myself on top of linux-next/master.

Piggyback this series and send "[PATCH 5/5] Tools: hv: do not add redundant '/'
in hv_start_fcopy()"

Vitaly Kuznetsov (5):
Tools: hv: add mising fcopyd to the Makefile
Tools: hv: remove unused bytes_written from kvp_update_file()
Tools: hv: address compiler warnings for hv_kvp_daemon.c
Tools: hv: address compiler warnings for hv_fcopy_daemon.c
Tools: hv: do not add redundant '/' in hv_start_fcopy()

 tools/hv/Makefile          |  4 ++--
 tools/hv/hv_fcopy_daemon.c | 10 ++--------
 tools/hv/hv_kvp_daemon.c   | 29 +++++++++++++----------------
 3 files changed, 17 insertions(+), 26 deletions(-)
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/5 Tools: hv: add mising fcopyd to the Makefile

fcopyd in missing in the Makefile, add it there.

---
 tools/hv/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/hv/Makefile +2 -2
index bd22f78..99ffe61 100644
@@ -5,9 +5,9 @@ PTHREAD_LIBS = -lpthread
 WARNINGS = -Wall -Wextra
 CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS)
 
-all: hv_kvp_daemon hv_vss_daemon
+all: hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
 %: %.c
 	$(CC) $(CFLAGS) -o $@ $^
 
 clean:
-	$(RM) hv_kvp_daemon hv_vss_daemon
+	$(RM) hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
Signature · 1 line
1.9.3
#2 lore raw

RE: [PATCH 1/5] Tools: hv: add mising fcopyd to the Makefile

Quoted 10 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 7:48 AM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 1/5] Tools: hv: add mising fcopyd to the Makefile

Quoted 3 lines

fcopyd in missing in the Makefile, add it there.

Thanks!

K. Y

Quoted 21 lines
---
 tools/hv/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/hv/Makefile index bd22f78..99ffe61 renamed from tools/hv/Makefile +0 -0

100644

tools/hv/Makefile +2 -3
@@ -5,9 +5,9 @@ PTHREAD_LIBS = -lpthread  WARNINGS = -Wall -Wextra
 CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS)
 
-all: hv_kvp_daemon hv_vss_daemon
+all: hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
 %: %.c
 	$(CC) $(CFLAGS) -o $@ $^
 
 clean:
-	$(RM) hv_kvp_daemon hv_vss_daemon
+	$(RM) hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
--

1.9.3

#3 lore raw

PATCH 2/5 Tools: hv: remove unused bytes_written from kvp_update_file()

In reply to Vitaly Kuznetsov

fwrite() does not actually return the number of bytes written and
this value is being ignored anyway and ferror() is being called to
check for an error. As we assign to this variable and never use it
we get the following compile-time warning:
hv_kvp_daemon.c:149:9: warning: variable ‘bytes_written’ set but not used [-Wunused-but-set-variable]

Remove bytes_written completely.

---
 tools/hv/hv_kvp_daemon.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tools/hv/hv_kvp_daemon.c +1 -3
index 6a6432a..5a274ca 100644
@@ -147,7 +147,6 @@ static void kvp_release_lock(int pool)
 static void kvp_update_file(int pool)
 {
 	FILE *filep;
-	size_t bytes_written;
 
 	/*
 	 * We are going to write our in-memory registry out to
@@ -163,8 +162,7 @@ static void kvp_update_file(int pool)
 		exit(EXIT_FAILURE);
 	}
 
-	bytes_written = fwrite(kvp_file_info[pool].records,
-				sizeof(struct kvp_record),
+	fwrite(kvp_file_info[pool].records, sizeof(struct kvp_record),
 				kvp_file_info[pool].num_records, filep);
 
 	if (ferror(filep) || fclose(filep)) {
Signature · 1 line
1.9.3
#4 lore raw

RE: [PATCH 2/5] Tools: hv: remove unused bytes_written from kvp_update_file()

Quoted 18 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 7:48 AM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 2/5] Tools: hv: remove unused bytes_written from kvp_update_file()

fwrite() does not actually return the number of bytes written and this value is being ignored anyway and ferror() is being called to check for an error. As we assign to this variable and never use it we get the following compile-time warning:
hv_kvp_daemon.c:149:9: warning: variable ‘bytes_written’ set but not used [-Wunused-but-set-variable]

Quoted 3 lines

Remove bytes_written completely.

Quoted 26 lines
---
 tools/hv/hv_kvp_daemon.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tools/hv/hv_kvp_daemon.c index renamed from tools/hv/hv_kvp_daemon.c +0 -0

6a6432a..5a274ca 100644

tools/hv/hv_kvp_daemon.c +2 -4
@@ -147,7 +147,6 @@ static void kvp_release_lock(int pool)  static void
 kvp_update_file(int pool)  {
 	FILE *filep;
-	size_t bytes_written;
 
 	/*
 	 * We are going to write our in-memory registry out to @@ -163,8
+162,7 @@ static void kvp_update_file(int pool)
 		exit(EXIT_FAILURE);
 	}
 
-	bytes_written = fwrite(kvp_file_info[pool].records,
-				sizeof(struct kvp_record),
+	fwrite(kvp_file_info[pool].records, sizeof(struct kvp_record),
 				kvp_file_info[pool].num_records, filep);
 
 	if (ferror(filep) || fclose(filep)) {
--
Quoted 1 line

1.9.3

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#5 lore raw

PATCH 3/5 Tools: hv: address compiler warnings for hv_kvp_daemon.c

In reply to Vitaly Kuznetsov

This patch addresses two types of compiler warnings:
... warning: comparison between signed and unsigned integer expressions [-Wsign-compare] and
... warning: pointer targets in passing argument N of ‘kvp_...’ differ in signedness [-Wpointer-sign]

---
 tools/hv/hv_kvp_daemon.c | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)
tools/hv/hv_kvp_daemon.c +12 -13
index 5a274ca..48a95f9 100644
@@ -308,7 +308,7 @@ static int kvp_file_init(void)
 	return 0;
 }
 
-static int kvp_key_delete(int pool, const char *key, int key_size)
+static int kvp_key_delete(int pool, const __u8 *key, int key_size)
 {
 	int i;
 	int j, k;
@@ -351,8 +351,8 @@ static int kvp_key_delete(int pool, const char *key, int key_size)
 	return 1;
 }
 
-static int kvp_key_add_or_modify(int pool, const char *key, int key_size, const char *value,
-			int value_size)
+static int kvp_key_add_or_modify(int pool, const __u8 *key, int key_size,
+				 const __u8 *value, int value_size)
 {
 	int i;
 	int num_records;
@@ -405,7 +405,7 @@ static int kvp_key_add_or_modify(int pool, const char *key, int key_size, const
 	return 0;
 }
 
-static int kvp_get_value(int pool, const char *key, int key_size, char *value,
+static int kvp_get_value(int pool, const __u8 *key, int key_size, __u8 *value,
 			int value_size)
 {
 	int i;
@@ -437,8 +437,8 @@ static int kvp_get_value(int pool, const char *key, int key_size, char *value,
 	return 1;
 }
 
-static int kvp_pool_enumerate(int pool, int index, char *key, int key_size,
-				char *value, int value_size)
+static int kvp_pool_enumerate(int pool, int index, __u8 *key, int key_size,
+				__u8 *value, int value_size)
 {
 	struct kvp_record *record;
 
@@ -659,7 +659,7 @@ static char *kvp_if_name_to_mac(char *if_name)
 	char    *p, *x;
 	char    buf[256];
 	char addr_file[256];
-	int i;
+	unsigned int i;
 	char *mac_addr = NULL;
 
 	snprintf(addr_file, sizeof(addr_file), "%s%s%s", "/sys/class/net/",
@@ -698,7 +698,7 @@ static char *kvp_mac_to_if_name(char *mac)
 	char    buf[256];
 	char *kvp_net_dir = "/sys/class/net/";
 	char dev_id[256];
-	int i;
+	unsigned int i;
 
 	dir = opendir(kvp_net_dir);
 	if (dir == NULL)
@@ -748,7 +748,7 @@ static char *kvp_mac_to_if_name(char *mac)
 
 
 static void kvp_process_ipconfig_file(char *cmd,
-					char *config_buf, int len,
+					char *config_buf, unsigned int len,
 					int element_size, int offset)
 {
 	char buf[256];
@@ -766,7 +766,7 @@ static void kvp_process_ipconfig_file(char *cmd,
 	if (offset == 0)
 		memset(config_buf, 0, len);
 	while ((p = fgets(buf, sizeof(buf), file)) != NULL) {
-		if ((len - strlen(config_buf)) < (element_size + 1))
+		if (len < strlen(config_buf) + element_size + 1)
 			break;
 
 		x = strchr(p, '\n');
@@ -914,7 +914,7 @@ static int kvp_process_ip_address(void *addrp,
 
 static int
 kvp_get_ip_info(int family, char *if_name, int op,
-		 void  *out_buffer, int length)
+		 void  *out_buffer, unsigned int length)
 {
 	struct ifaddrs *ifap;
 	struct ifaddrs *curp;
@@ -1017,8 +1017,7 @@ kvp_get_ip_info(int family, char *if_name, int op,
 					weight += hweight32(&w[i]);
 
 				sprintf(cidr_mask, "/%d", weight);
-				if ((length - sn_offset) <
-					(strlen(cidr_mask) + 1))
+				if (length < sn_offset + strlen(cidr_mask) + 1)
 					goto gather_ipaddr;
 
 				if (sn_offset == 0)
Signature · 1 line
1.9.3
#6 lore raw

RE: [PATCH 3/5] Tools: hv: address compiler warnings for hv_kvp_daemon.c

Quoted 11 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 7:48 AM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 3/5] Tools: hv: address compiler warnings for hv_kvp_daemon.c

Quoted 6 lines

This patch addresses two types of compiler warnings:
... warning: comparison between signed and unsigned integer expressions [- Wsign-compare] and ... warning: pointer targets in passing argument N of ‘kvp_...’ differ in signedness [-Wpointer-sign]

Thanks Vitaly.

K. Y

Quoted 109 lines
---
 tools/hv/hv_kvp_daemon.c | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)
tools/hv/hv_kvp_daemon.c index renamed from tools/hv/hv_kvp_daemon.c +0 -0

5a274ca..48a95f9 100644

tools/hv/hv_kvp_daemon.c +3 -3
@@ -308,7 +308,7 @@ static int kvp_file_init(void)
 	return 0;
 }
 
-static int kvp_key_delete(int pool, const char *key, int key_size)
+static int kvp_key_delete(int pool, const __u8 *key, int key_size)
 {
 	int i;
 	int j, k;
@@ -351,8 +351,8 @@ static int kvp_key_delete(int pool, const char *key,
 int key_size)
 	return 1;
 }
 
-static int kvp_key_add_or_modify(int pool, const char *key, int key_size,
 const char *value,
-			int value_size)
+static int kvp_key_add_or_modify(int pool, const __u8 *key, int key_size,
+				 const __u8 *value, int value_size)
 {
tools/hv/hv_kvp_daemon.c +10 -11
 	int i;
 	int num_records;
@@ -405,7 +405,7 @@ static int kvp_key_add_or_modify(int pool, const char
 *key, int key_size, const
 	return 0;
 }
 
-static int kvp_get_value(int pool, const char *key, int key_size, char *value,
+static int kvp_get_value(int pool, const __u8 *key, int key_size, __u8
+*value,
 			int value_size)
 {
 	int i;
@@ -437,8 +437,8 @@ static int kvp_get_value(int pool, const char *key, int
 key_size, char *value,
 	return 1;
 }
 
-static int kvp_pool_enumerate(int pool, int index, char *key, int key_size,
-				char *value, int value_size)
+static int kvp_pool_enumerate(int pool, int index, __u8 *key, int key_size,
+				__u8 *value, int value_size)
 {
 	struct kvp_record *record;
@@ -659,7 +659,7 @@ static char *kvp_if_name_to_mac(char *if_name)
 	char    *p, *x;
 	char    buf[256];
 	char addr_file[256];
-	int i;
+	unsigned int i;
 	char *mac_addr = NULL;
 
 	snprintf(addr_file, sizeof(addr_file), "%s%s%s", "/sys/class/net/",
@@ -698,7 +698,7 @@ static char *kvp_mac_to_if_name(char *mac)
 	char    buf[256];
 	char *kvp_net_dir = "/sys/class/net/";
 	char dev_id[256];
-	int i;
+	unsigned int i;
 
 	dir = opendir(kvp_net_dir);
 	if (dir == NULL)
@@ -748,7 +748,7 @@ static char *kvp_mac_to_if_name(char *mac)
 
 
 static void kvp_process_ipconfig_file(char *cmd,
-					char *config_buf, int len,
+					char *config_buf, unsigned int len,
 					int element_size, int offset)
 {
 	char buf[256];
@@ -766,7 +766,7 @@ static void kvp_process_ipconfig_file(char *cmd,
 	if (offset == 0)
 		memset(config_buf, 0, len);
 	while ((p = fgets(buf, sizeof(buf), file)) != NULL) {
-		if ((len - strlen(config_buf)) < (element_size + 1))
+		if (len < strlen(config_buf) + element_size + 1)
 			break;
 
 		x = strchr(p, '\n');
@@ -914,7 +914,7 @@ static int kvp_process_ip_address(void *addrp,
 
 static int
 kvp_get_ip_info(int family, char *if_name, int op,
-		 void  *out_buffer, int length)
+		 void  *out_buffer, unsigned int length)
 {
 	struct ifaddrs *ifap;
 	struct ifaddrs *curp;
@@ -1017,8 +1017,7 @@ kvp_get_ip_info(int family, char *if_name, int op,
 					weight += hweight32(&w[i]);
 
 				sprintf(cidr_mask, "/%d", weight);
-				if ((length - sn_offset) <
-					(strlen(cidr_mask) + 1))
+				if (length < sn_offset + strlen(cidr_mask) + 1)
 					goto gather_ipaddr;
 
 				if (sn_offset == 0)
--
Quoted 1 line

1.9.3

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#7 lore raw

PATCH 4/5 Tools: hv: address compiler warnings for hv_fcopy_daemon.c

In reply to Vitaly Kuznetsov

This patch addresses two types of compiler warnings:
... warning: unused variable ‘fd’ [-Wunused-variable]
and
... warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘__u16 *’ [-Wformat=]

---
 tools/hv/hv_fcopy_daemon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/hv/hv_fcopy_daemon.c +2 -2
index f437d73..1a23872 100644
@@ -51,7 +51,7 @@ static int hv_start_fcopy(struct hv_start_fcopy *smsg)
 
 	p = (char *)smsg->path_name;
 	snprintf(target_fname, sizeof(target_fname), "%s/%s",
-		(char *)smsg->path_name, smsg->file_name);
+		 (char *)smsg->path_name, (char *)smsg->file_name);
 
 	syslog(LOG_INFO, "Target file name: %s", target_fname);
 	/*
@@ -137,7 +137,7 @@ void print_usage(char *argv[])
 
 int main(int argc, char *argv[])
 {
-	int fd, fcopy_fd, len;
+	int fcopy_fd, len;
 	int error;
 	int daemonize = 1, long_index = 0, opt;
 	int version = FCOPY_CURRENT_VERSION;
Signature · 1 line
1.9.3
#8 lore raw

RE: [PATCH 4/5] Tools: hv: address compiler warnings for hv_fcopy_daemon.c

Quoted 11 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 7:48 AM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 4/5] Tools: hv: address compiler warnings for hv_fcopy_daemon.c

Quoted 6 lines

This patch addresses two types of compiler warnings:
... warning: unused variable ‘fd’ [-Wunused-variable] and ... warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘__u16 *’ [- Wformat=]

Quoted 27 lines
---
 tools/hv/hv_fcopy_daemon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/hv/hv_fcopy_daemon.c +2 -3
index f437d73..1a23872 100644
@@ -51,7 +51,7 @@ static int hv_start_fcopy(struct hv_start_fcopy *smsg)
 
 	p = (char *)smsg->path_name;
 	snprintf(target_fname, sizeof(target_fname), "%s/%s",
-		(char *)smsg->path_name, smsg->file_name);
+		 (char *)smsg->path_name, (char *)smsg->file_name);
 
 	syslog(LOG_INFO, "Target file name: %s", target_fname);
 	/*
@@ -137,7 +137,7 @@ void print_usage(char *argv[])
 
 int main(int argc, char *argv[])
 {
-	int fd, fcopy_fd, len;
+	int fcopy_fd, len;
 	int error;
 	int daemonize = 1, long_index = 0, opt;
 	int version = FCOPY_CURRENT_VERSION;
--
Quoted 1 line

1.9.3

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#9 lore raw

PATCH 5/5 Tools: hv: do not add redundant '/' in hv_start_fcopy()

In reply to Vitaly Kuznetsov

We don't need to add additional '/' to smsg->path_name as snprintf("%s/%s") does the right thing. Without the patch we get doubled '//' in the log message.

---
 tools/hv/hv_fcopy_daemon.c | 6 ------
 1 file changed, 6 deletions(-)
tools/hv/hv_fcopy_daemon.c +0 -6
index 1a23872..9445d8f 100644
@@ -43,12 +43,6 @@ static int hv_start_fcopy(struct hv_start_fcopy *smsg)
 	int error = HV_E_FAIL;
 	char *q, *p;
 
-	/*
-	 * If possile append a path seperator to the path.
-	 */
-	if (strlen((char *)smsg->path_name) < (W_MAX_PATH - 2))
-		strcat((char *)smsg->path_name, "/");
-
 	p = (char *)smsg->path_name;
 	snprintf(target_fname, sizeof(target_fname), "%s/%s",
 		 (char *)smsg->path_name, (char *)smsg->file_name);
Signature · 1 line
1.9.3
#10 lore raw

RE: [PATCH 5/5] Tools: hv: do not add redundant '/' in hv_start_fcopy()

Quoted 10 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 7:48 AM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 5/5] Tools: hv: do not add redundant '/' in hv_start_fcopy()

Quoted 5 lines

We don't need to add additional '/' to smsg->path_name as snprintf("%s/%s") does the right thing. Without the patch we get doubled '//' in the log message.

Thank you.

K. Y

Quoted 23 lines
---
 tools/hv/hv_fcopy_daemon.c | 6 ------
 1 file changed, 6 deletions(-)
tools/hv/hv_fcopy_daemon.c +0 -7
index 1a23872..9445d8f 100644
@@ -43,12 +43,6 @@ static int hv_start_fcopy(struct hv_start_fcopy *smsg)
 	int error = HV_E_FAIL;
 	char *q, *p;
 
-	/*
-	 * If possile append a path seperator to the path.
-	 */
-	if (strlen((char *)smsg->path_name) < (W_MAX_PATH - 2))
-		strcat((char *)smsg->path_name, "/");
-
 	p = (char *)smsg->path_name;
 	snprintf(target_fname, sizeof(target_fname), "%s/%s",
 		 (char *)smsg->path_name, (char *)smsg->file_name);
--

1.9.3

maintainer Acked-by on the v1 series
#11 lore raw
In reply to Vitaly Kuznetsov
Quoted 25 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 23:48 PM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

When someone does 'make' in tools/hv/ issues appear:
- hv_fcopy_daemon is not being built;
- lots of compiler warnings.

This is just a cleanup. Compile-tested by myself on top of linux-next/master.

Piggyback this series and send "[PATCH 5/5] Tools: hv: do not add redundant '/'
in hv_start_fcopy()"

Vitaly Kuznetsov (5):
Tools: hv: add mising fcopyd to the Makefile
Tools: hv: remove unused bytes_written from kvp_update_file()
Tools: hv: address compiler warnings for hv_kvp_daemon.c
Tools: hv: address compiler warnings for hv_fcopy_daemon.c
Tools: hv: do not add redundant '/' in hv_start_fcopy()

Quoted 7 lines
 tools/hv/Makefile          |  4 ++--
 tools/hv/hv_fcopy_daemon.c | 10 ++--------
 tools/hv/hv_kvp_daemon.c   | 29 +++++++++++++----------------
 3 files changed, 17 insertions(+), 26 deletions(-)

--
1.9.3

Hi Vitaly,
Thanks for the patchset!

PS, I added Greg into the TO list.
The hv code in drivers/hv/ and tools/hv/ usually has to go into Greg's tree first.

-- Dexuan ���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#12 lore raw
Quoted 33 lines · Dexuan Cui
Quoted 25 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 23:48 PM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

When someone does 'make' in tools/hv/ issues appear:
- hv_fcopy_daemon is not being built;
- lots of compiler warnings.

This is just a cleanup. Compile-tested by myself on top of linux-next/master.

Piggyback this series and send "[PATCH 5/5] Tools: hv: do not add redundant '/'
in hv_start_fcopy()"

Vitaly Kuznetsov (5):
Tools: hv: add mising fcopyd to the Makefile
Tools: hv: remove unused bytes_written from kvp_update_file()
Tools: hv: address compiler warnings for hv_kvp_daemon.c
Tools: hv: address compiler warnings for hv_fcopy_daemon.c
Tools: hv: do not add redundant '/' in hv_start_fcopy()

Quoted 7 lines
 tools/hv/Makefile          |  4 ++--
 tools/hv/hv_fcopy_daemon.c | 10 ++--------
 tools/hv/hv_kvp_daemon.c   | 29 +++++++++++++----------------
 3 files changed, 17 insertions(+), 26 deletions(-)

--
1.9.3

Quoted 8 lines

Hi Vitaly,
Thanks for the patchset!

PS, I added Greg into the TO list.
The hv code in drivers/hv/ and tools/hv/ usually has to go into Greg's tree first.

Well, I don't mind spamming Greg but he's not on the scripts/get_maintainer.pl output. In case he's not monitoring the list for patches by some other tool (patchwork?) a patch adding him to MAINTAINERS would do the job.

Greg, do you want to become an official Hyper-V maintainer in MAINTAINERS? I can send a patch then :-)

Signature · 1 line
  Vitaly
#13 lore raw
Quoted 44 lines · Vitaly Kuznetsov
Quoted 33 lines · Dexuan Cui
Quoted 25 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 23:48 PM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

When someone does 'make' in tools/hv/ issues appear:
- hv_fcopy_daemon is not being built;
- lots of compiler warnings.

This is just a cleanup. Compile-tested by myself on top of linux-next/master.

Piggyback this series and send "[PATCH 5/5] Tools: hv: do not add redundant '/'
in hv_start_fcopy()"

Vitaly Kuznetsov (5):
Tools: hv: add mising fcopyd to the Makefile
Tools: hv: remove unused bytes_written from kvp_update_file()
Tools: hv: address compiler warnings for hv_kvp_daemon.c
Tools: hv: address compiler warnings for hv_fcopy_daemon.c
Tools: hv: do not add redundant '/' in hv_start_fcopy()

Quoted 7 lines
 tools/hv/Makefile          |  4 ++--
 tools/hv/hv_fcopy_daemon.c | 10 ++--------
 tools/hv/hv_kvp_daemon.c   | 29 +++++++++++++----------------
 3 files changed, 17 insertions(+), 26 deletions(-)

--
1.9.3

Quoted 8 lines

Hi Vitaly,
Thanks for the patchset!

PS, I added Greg into the TO list.
The hv code in drivers/hv/ and tools/hv/ usually has to go into Greg's tree first.

Quoted 7 lines

Well, I don't mind spamming Greg but he's not on the scripts/get_maintainer.pl output. In case he's not monitoring the list for patches by some other tool (patchwork?) a patch adding him to MAINTAINERS would do the job.

Greg, do you want to become an official Hyper-V maintainer in MAINTAINERS? I can send a patch then :-)

No. It's up to the "real" maintainers to take the patches and then forward them on to me for inclusion in the kernel tree. KY knows this...

thanks,

greg k-h

#14 lore raw
Quoted 64 lines

-----Original Message-----
From: devel [mailto:[email protected]] On Behalf Of [email protected]
Sent: Wednesday, December 10, 2014 6:48 AM
To: Vitaly Kuznetsov
Cc: [email protected]; Haiyang Zhang; linux- [email protected]
Subject: Re: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 11 lines · Vitaly Kuznetsov
Quoted 9 lines · Dexuan Cui
Quoted 9 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 23:48 PM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

When someone does 'make' in tools/hv/ issues appear:
- hv_fcopy_daemon is not being built;
- lots of compiler warnings.

This is just a cleanup. Compile-tested by myself on top of linux-

next/master.

Quoted 34 lines
Quoted 20 lines
Quoted 12 lines

Piggyback this series and send "[PATCH 5/5] Tools: hv: do not add redundant '/'
in hv_start_fcopy()"

Vitaly Kuznetsov (5):
Tools: hv: add mising fcopyd to the Makefile
Tools: hv: remove unused bytes_written from kvp_update_file()
Tools: hv: address compiler warnings for hv_kvp_daemon.c
Tools: hv: address compiler warnings for hv_fcopy_daemon.c
Tools: hv: do not add redundant '/' in hv_start_fcopy()

Quoted 7 lines
 tools/hv/Makefile          |  4 ++--
 tools/hv/hv_fcopy_daemon.c | 10 ++--------
 tools/hv/hv_kvp_daemon.c   | 29 +++++++++++++----------------
 3 files changed, 17 insertions(+), 26 deletions(-)

--
1.9.3

Quoted 8 lines

Hi Vitaly,
Thanks for the patchset!

PS, I added Greg into the TO list.
The hv code in drivers/hv/ and tools/hv/ usually has to go into Greg's tree first.

Well, I don't mind spamming Greg but he's not on the scripts/get_maintainer.pl output. In case he's not monitoring the list for patches by some other tool (patchwork?) a patch adding him to MAINTAINERS would do the job.

Quoted 5 lines
Quoted 2 lines

Greg, do you want to become an official Hyper-V maintainer in MAINTAINERS? I can send a patch then :-)

No. It's up to the "real" maintainers to take the patches and then forward them on to me for inclusion in the kernel tree. KY knows this...

I will take care of this.

K. Y

Quoted 8 lines

thanks,

greg k-h
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

#15 lore raw
Quoted 62 lines · KY Srinivasan
Quoted 62 lines

-----Original Message-----
From: devel [mailto:[email protected]] On Behalf Of [email protected]
Sent: Wednesday, December 10, 2014 6:48 AM
To: Vitaly Kuznetsov
Cc: [email protected]; Haiyang Zhang; linux- [email protected]
Subject: Re: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 11 lines · Vitaly Kuznetsov
Quoted 9 lines · Dexuan Cui
Quoted 9 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 23:48 PM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

When someone does 'make' in tools/hv/ issues appear:
- hv_fcopy_daemon is not being built;
- lots of compiler warnings.

This is just a cleanup. Compile-tested by myself on top of linux-

next/master.

Quoted 34 lines
Quoted 20 lines
Quoted 12 lines

Piggyback this series and send "[PATCH 5/5] Tools: hv: do not add redundant '/'
in hv_start_fcopy()"

Vitaly Kuznetsov (5):
Tools: hv: add mising fcopyd to the Makefile
Tools: hv: remove unused bytes_written from kvp_update_file()
Tools: hv: address compiler warnings for hv_kvp_daemon.c
Tools: hv: address compiler warnings for hv_fcopy_daemon.c
Tools: hv: do not add redundant '/' in hv_start_fcopy()

Quoted 7 lines
 tools/hv/Makefile          |  4 ++--
 tools/hv/hv_fcopy_daemon.c | 10 ++--------
 tools/hv/hv_kvp_daemon.c   | 29 +++++++++++++----------------
 3 files changed, 17 insertions(+), 26 deletions(-)

--
1.9.3

Quoted 8 lines

Hi Vitaly,
Thanks for the patchset!

PS, I added Greg into the TO list.
The hv code in drivers/hv/ and tools/hv/ usually has to go into Greg's tree first.

Well, I don't mind spamming Greg but he's not on the scripts/get_maintainer.pl output. In case he's not monitoring the list for patches by some other tool (patchwork?) a patch adding him to MAINTAINERS would do the job.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Greg, do you want to become an official Hyper-V maintainer in MAINTAINERS? I can send a patch then :-)

No. It's up to the "real" maintainers to take the patches and then forward them on to me for inclusion in the kernel tree. KY knows this...

I will take care of this.

Hi KY,

I just found out these patches never made it to any repo, at least I can't see them in char-misc-next. Do I need to resend?

Thanks,

Signature · 1 line
  Vitaly
#16 lore raw
Quoted 82 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Thursday, January 8, 2015 8:02 AM
To: KY Srinivasan
Cc: [email protected]; [email protected]; Haiyang Zhang; [email protected]
Subject: Re: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 69 lines · KY Srinivasan
Quoted 68 lines

-----Original Message-----
From: devel [mailto:[email protected]] On Behalf Of [email protected]
Sent: Wednesday, December 10, 2014 6:48 AM
To: Vitaly Kuznetsov
Cc: [email protected]; Haiyang Zhang; linux- [email protected]
Subject: Re: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 11 lines · Vitaly Kuznetsov
Quoted 9 lines · Dexuan Cui
Quoted 9 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 23:48 PM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

When someone does 'make' in tools/hv/ issues appear:
- hv_fcopy_daemon is not being built;
- lots of compiler warnings.

This is just a cleanup. Compile-tested by myself on top of linux-

next/master.

Quoted 29 lines
Quoted 20 lines
Quoted 12 lines

Piggyback this series and send "[PATCH 5/5] Tools: hv: do not add redundant '/'
in hv_start_fcopy()"

Vitaly Kuznetsov (5):
Tools: hv: add mising fcopyd to the Makefile
Tools: hv: remove unused bytes_written from kvp_update_file()
Tools: hv: address compiler warnings for hv_kvp_daemon.c
Tools: hv: address compiler warnings for hv_fcopy_daemon.c
Tools: hv: do not add redundant '/' in hv_start_fcopy()

Quoted 7 lines
 tools/hv/Makefile          |  4 ++--
 tools/hv/hv_fcopy_daemon.c | 10 ++--------
 tools/hv/hv_kvp_daemon.c   | 29 +++++++++++++----------------
 3 files changed, 17 insertions(+), 26 deletions(-)

--
1.9.3

Quoted 8 lines

Hi Vitaly,
Thanks for the patchset!

PS, I added Greg into the TO list.
The hv code in drivers/hv/ and tools/hv/ usually has to go into Greg's tree first.

Quoted 7 lines

Well, I don't mind spamming Greg but he's not on the scripts/get_maintainer.pl output. In case he's not monitoring the list for patches by some other tool (patchwork?) a patch adding him to MAINTAINERS would do the job.

Greg, do you want to become an official Hyper-V maintainer in MAINTAINERS? I can send a patch then :-)

No. It's up to the "real" maintainers to take the patches and then forward them on to me for inclusion in the kernel tree. KY knows this...

Quoted 7 lines
Quoted 2 lines

I will take care of this.

Hi KY,

I just found out these patches never made it to any repo, at least I can't see them in char-misc-next. Do I need to resend?

Greg,

I have signed off on these patches. Do you want us to resend them. On a different note, I too have a Few patches that I sent some weeks ago. Should I be resending them as well.

Regards,

K. Y

Quoted 5 lines

Thanks,

--
Vitaly

#17 lore raw
Quoted 87 lines · KY Srinivasan
Quoted 87 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Thursday, January 8, 2015 8:02 AM
To: KY Srinivasan
Cc: [email protected]; [email protected]; Haiyang Zhang; [email protected]
Subject: Re: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 63 lines · KY Srinivasan
Quoted 63 lines

-----Original Message-----
From: devel [mailto:[email protected]] On Behalf Of [email protected]
Sent: Wednesday, December 10, 2014 6:48 AM
To: Vitaly Kuznetsov
Cc: [email protected]; Haiyang Zhang; linux- [email protected]
Subject: Re: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 11 lines · Vitaly Kuznetsov
Quoted 9 lines · Dexuan Cui
Quoted 9 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 23:48 PM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

When someone does 'make' in tools/hv/ issues appear:
- hv_fcopy_daemon is not being built;
- lots of compiler warnings.

This is just a cleanup. Compile-tested by myself on top of linux-

next/master.

Quoted 34 lines
Quoted 20 lines
Quoted 12 lines

Piggyback this series and send "[PATCH 5/5] Tools: hv: do not add redundant '/'
in hv_start_fcopy()"

Vitaly Kuznetsov (5):
Tools: hv: add mising fcopyd to the Makefile
Tools: hv: remove unused bytes_written from kvp_update_file()
Tools: hv: address compiler warnings for hv_kvp_daemon.c
Tools: hv: address compiler warnings for hv_fcopy_daemon.c
Tools: hv: do not add redundant '/' in hv_start_fcopy()

Quoted 7 lines
 tools/hv/Makefile          |  4 ++--
 tools/hv/hv_fcopy_daemon.c | 10 ++--------
 tools/hv/hv_kvp_daemon.c   | 29 +++++++++++++----------------
 3 files changed, 17 insertions(+), 26 deletions(-)

--
1.9.3

Quoted 8 lines

Hi Vitaly,
Thanks for the patchset!

PS, I added Greg into the TO list.
The hv code in drivers/hv/ and tools/hv/ usually has to go into Greg's tree first.

Well, I don't mind spamming Greg but he's not on the scripts/get_maintainer.pl output. In case he's not monitoring the list for patches by some other tool (patchwork?) a patch adding him to MAINTAINERS would do the job.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Greg, do you want to become an official Hyper-V maintainer in MAINTAINERS? I can send a patch then :-)

No. It's up to the "real" maintainers to take the patches and then forward them on to me for inclusion in the kernel tree. KY knows this...

I will take care of this.

Hi KY,

Quoted 7 lines
Quoted 2 lines

I just found out these patches never made it to any repo, at least I can't see them in char-misc-next. Do I need to resend?

Greg,

I have signed off on these patches. Do you want us to resend them. On a different note, I too have a Few patches that I sent some weeks ago. Should I be resending them as well.

Please resend everything, there has been a mess of different patches and discussions and I can't figure out what should be applied and what should not. I'll guess at a few easy ones, but getting the "correct" ones from you is the best thing.

thanks,

greg k-h

#18 lore raw
Quoted 107 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Friday, January 9, 2015 12:48 PM
To: KY Srinivasan
Cc: Vitaly Kuznetsov; [email protected]; Haiyang Zhang; linux- [email protected]
Subject: Re: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 44 lines · KY Srinivasan
Quoted 44 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Thursday, January 8, 2015 8:02 AM
To: KY Srinivasan
Cc: [email protected]; [email protected]; Haiyang Zhang; [email protected]
Subject: Re: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 31 lines · KY Srinivasan
Quoted 31 lines

-----Original Message-----
From: devel [mailto:[email protected]] On Behalf Of [email protected]
Sent: Wednesday, December 10, 2014 6:48 AM
To: Vitaly Kuznetsov
Cc: [email protected]; Haiyang Zhang; linux- [email protected]
Subject: Re: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 11 lines · Vitaly Kuznetsov
Quoted 9 lines · Dexuan Cui
Quoted 9 lines

-----Original Message-----
From: Vitaly Kuznetsov [mailto:[email protected]]
Sent: Tuesday, December 9, 2014 23:48 PM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]; linux- [email protected]; Dexuan Cui
Subject: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

When someone does 'make' in tools/hv/ issues appear:
- hv_fcopy_daemon is not being built;
- lots of compiler warnings.

This is just a cleanup. Compile-tested by myself on top of linux-

next/master.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Piggyback this series and send "[PATCH 5/5] Tools: hv: do not add redundant '/'
in hv_start_fcopy()"

Vitaly Kuznetsov (5):
Tools: hv: add mising fcopyd to the Makefile
Tools: hv: remove unused bytes_written from

kvp_update_file()

Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 12 lines
Quoted 11 lines

Tools: hv: address compiler warnings for hv_kvp_daemon.c
Tools: hv: address compiler warnings for hv_fcopy_daemon.c
Tools: hv: do not add redundant '/' in hv_start_fcopy()

 tools/hv/Makefile          |  4 ++--
 tools/hv/hv_fcopy_daemon.c | 10 ++--------
 tools/hv/hv_kvp_daemon.c   | 29 +++++++++++++----------------
 3 files changed, 17 insertions(+), 26 deletions(-)

--
1.9.3

Quoted 8 lines

Hi Vitaly,
Thanks for the patchset!

PS, I added Greg into the TO list.
The hv code in drivers/hv/ and tools/hv/ usually has to go into Greg's tree first.

Well, I don't mind spamming Greg but he's not on the scripts/get_maintainer.pl output. In case he's not monitoring the list for patches by some other tool (patchwork?) a patch adding him to MAINTAINERS would do the job.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

Greg, do you want to become an official Hyper-V maintainer in MAINTAINERS? I can send a patch then :-)

No. It's up to the "real" maintainers to take the patches and then forward them on to me for inclusion in the kernel tree. KY knows

this...

Quoted 11 lines
Quoted 8 lines
Quoted 3 lines

I will take care of this.

Hi KY,

I just found out these patches never made it to any repo, at least I can't see them in char-misc-next. Do I need to resend?

Greg,

Quoted 8 lines
Quoted 2 lines

I have signed off on these patches. Do you want us to resend them. On a different note, I too have a Few patches that I sent some weeks ago.

Should I be resending them as well.

Please resend everything, there has been a mess of different patches and discussions and I can't figure out what should be applied and what should not. I'll guess at a few easy ones, but getting the "correct" ones from you is the best thing.

Will do. Vitaly, could you please resend the patches.

Regards,

K. Y

Quoted 4 lines

thanks,

greg k-h

#19 lore raw
Quoted 5 lines · KY Srinivasan
Quoted 4 lines

Please resend everything, there has been a mess of different patches and discussions and I can't figure out what should be applied and what should not. I'll guess at a few easy ones, but getting the "correct" ones from you is the best thing.

Will do. Vitaly, could you please resend the patches.

You are the subsystem maintainer, right? It's your job to bundle them up and resend if needed.

thanks,

greg k-h

#20 lore raw
Quoted 12 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Friday, January 9, 2015 1:02 PM
To: KY Srinivasan
Cc: [email protected]; Haiyang Zhang; linux- [email protected]
Subject: Re: [PATCH 0/5] Tools: hv: fix compiler warnings and do minor cleanup

On Fri, Jan 09, 2015 at 08:58:08PM +0000, KY Srinivasan wrote:

Quoted 8 lines
Quoted 5 lines
Quoted 4 lines

Please resend everything, there has been a mess of different patches and discussions and I can't figure out what should be applied and what should not. I'll guess at a few easy ones, but getting the "correct" ones from you is the best thing.

Will do. Vitaly, could you please resend the patches.

You are the subsystem maintainer, right? It's your job to bundle them up and resend if needed.

Will do.

K. Y

Quoted 4 lines

thanks,

greg k-h