Skip to contentSkip to conversation

virtio_balloon: coding style fixes

PATCH In review Michael S. Tsirkin 3 participants 9 messages Jan 15, 2015

Subsystems (3)
lore
Share & tools
lore

Michael S. Tsirkin

author maintainer
#0 lore raw

PATCH 1/1 virtio_balloon: coding style fixes

Most of our code has
struct foo {
}

Fix two instances where balloon is inconsistent.

---
 include/uapi/linux/virtio_balloon.h | 3 +--
 drivers/virtio/virtio_balloon.c     | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
include/uapi/linux/virtio_balloon.h +1 -2
index be40f70..4b0488f 100644
@@ -36,8 +36,7 @@
 /* Size of a PFN in the balloon interface. */
 #define VIRTIO_BALLOON_PFN_SHIFT 12
 
-struct virtio_balloon_config
-{
+struct virtio_balloon_config {
 	/* Number of pages host wants Guest to give up. */
 	__le32 num_pages;
 	/* Number of pages we've actually got in balloon. */
drivers/virtio/virtio_balloon.c +1 -2
index 3176ea4..0413157 100644
@@ -44,8 +44,7 @@ static int oom_pages = OOM_VBALLOON_DEFAULT_PAGES;
 module_param(oom_pages, int, S_IRUSR | S_IWUSR);
 MODULE_PARM_DESC(oom_pages, "pages to free on OOM");
 
-struct virtio_balloon
-{
+struct virtio_balloon {
 	struct virtio_device *vdev;
 	struct virtqueue *inflate_vq, *deflate_vq, *stats_vq;
 
Signature · 1 line
MST
#1 lore raw
Quoted 5 lines · Michael S. Tsirkin

Most of our code has
struct foo {
}

Fix two instances where balloon is inconsistent.

I hate to complain but is it really necessary to post such patches to linux-api?

I thought the list was primarily for API related discussions. This is not the only mail sent here which doesn't fall into that category IMO. It is far from low volume list for quite some time.

Please let's get back low volume and API only discussion!

Quoted 41 lines
---
 include/uapi/linux/virtio_balloon.h | 3 +--
 drivers/virtio/virtio_balloon.c     | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
include/uapi/linux/virtio_balloon.h +1 -2
index be40f70..4b0488f 100644
@@ -36,8 +36,7 @@
 /* Size of a PFN in the balloon interface. */
 #define VIRTIO_BALLOON_PFN_SHIFT 12
 
-struct virtio_balloon_config
-{
+struct virtio_balloon_config {
 	/* Number of pages host wants Guest to give up. */
 	__le32 num_pages;
 	/* Number of pages we've actually got in balloon. */
drivers/virtio/virtio_balloon.c +1 -2
index 3176ea4..0413157 100644
@@ -44,8 +44,7 @@ static int oom_pages = OOM_VBALLOON_DEFAULT_PAGES;
 module_param(oom_pages, int, S_IRUSR | S_IWUSR);
 MODULE_PARM_DESC(oom_pages, "pages to free on OOM");
 
-struct virtio_balloon
-{
+struct virtio_balloon {
 	struct virtio_device *vdev;
 	struct virtqueue *inflate_vq, *deflate_vq, *stats_vq;
 
Signature · 6 lines
MST
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Signature · 2 lines
Michal Hocko
SUSE Labs
author maintainer
#2 lore raw
Quoted 9 lines · Michal Hocko
Quoted 5 lines · Michael S. Tsirkin

Most of our code has
struct foo {
}

Fix two instances where balloon is inconsistent.

I hate to complain but is it really necessary to post such patches to linux-api?

Well it's human to err, so it seems wise to copy parties interested in the ABI/API whenever we are changing files under include/uapi. Whitespace changes should mostly be safe, but it's not unknown e.g. to include unrelated changes in the same commit by mistake.

Quoted 1 line

I thought the list was primarily for API related discussions.

Basically this line in MAINTAINERS

ABI/API

L:      [email protected]
F:      Documentation/ABI/
F:      include/linux/syscalls.h
F:      include/uapi/
F:      kernel/sys_ni.c

normally means "send all patches affecting files under include/uapi/ to this list", does it not?

Wasn't this the intent?

Quoted 4 lines

This is not the only mail sent here which doesn't fall into that category IMO. It is far from low volume list for quite some time.

Please let's get back low volume and API only discussion!

Maybe send patch dropping include/uapi/ from there, should help drive the volumes down?

Quoted 45 lines
Quoted 41 lines
---
 include/uapi/linux/virtio_balloon.h | 3 +--
 drivers/virtio/virtio_balloon.c     | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
include/uapi/linux/virtio_balloon.h +1 -2
index be40f70..4b0488f 100644
@@ -36,8 +36,7 @@
 /* Size of a PFN in the balloon interface. */
 #define VIRTIO_BALLOON_PFN_SHIFT 12
 
-struct virtio_balloon_config
-{
+struct virtio_balloon_config {
 	/* Number of pages host wants Guest to give up. */
 	__le32 num_pages;
 	/* Number of pages we've actually got in balloon. */
drivers/virtio/virtio_balloon.c +1 -2
index 3176ea4..0413157 100644
@@ -44,8 +44,7 @@ static int oom_pages = OOM_VBALLOON_DEFAULT_PAGES;
 module_param(oom_pages, int, S_IRUSR | S_IWUSR);
 MODULE_PARM_DESC(oom_pages, "pages to free on OOM");
 
-struct virtio_balloon
-{
+struct virtio_balloon {
 	struct virtio_device *vdev;
 	struct virtqueue *inflate_vq, *deflate_vq, *stats_vq;
 
Signature · 6 lines
MST
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Signature · 2 lines
Michal Hocko
SUSE Labs
#3 lore raw
Quoted 21 lines · Michael S. Tsirkin
Quoted 9 lines · Michal Hocko
Quoted 5 lines · Michael S. Tsirkin

Most of our code has
struct foo {
}

Fix two instances where balloon is inconsistent.

I hate to complain but is it really necessary to post such patches to linux-api?

Well it's human to err, so it seems wise to copy parties interested in the ABI/API whenever we are changing files under include/uapi. Whitespace changes should mostly be safe, but it's not unknown e.g. to include unrelated changes in the same commit by mistake.

Quoted 1 line

I thought the list was primarily for API related discussions.

Basically this line in MAINTAINERS

ABI/API

Quoted 8 lines
L:      [email protected]
F:      Documentation/ABI/
F:      include/linux/syscalls.h
F:      include/uapi/
F:      kernel/sys_ni.c

normally means "send all patches affecting files under include/uapi/ to this list", does it not?

Well, this should always be taken as a hint not a hard rule. So if there is a change which is adding/removing or changing signature then sure but not everything falls into that category.

Quoted 9 lines

Wasn't this the intent?

Quoted 4 lines

This is not the only mail sent here which doesn't fall into that category IMO. It is far from low volume list for quite some time.

Please let's get back low volume and API only discussion!

Maybe send patch dropping include/uapi/ from there, should help drive the volumes down?

This would be an overkill IMO. It would be much more preferable if people actually think about who from the suggested list (either from MAINTAINERS or ./scripts/get_maintainer.pl) should be really added.

[...]

Signature · 2 lines
Michal Hocko
SUSE Labs
#7 lore raw
In reply to Michael S. Tsirkin
Quoted 21 lines · Michael S. Tsirkin
Quoted 9 lines · Michal Hocko
Quoted 5 lines · Michael S. Tsirkin

Most of our code has
struct foo {
}

Fix two instances where balloon is inconsistent.

I hate to complain but is it really necessary to post such patches to linux-api?

Well it's human to err, so it seems wise to copy parties interested in the ABI/API whenever we are changing files under include/uapi. Whitespace changes should mostly be safe, but it's not unknown e.g. to include unrelated changes in the same commit by mistake.

Quoted 1 line

I thought the list was primarily for API related discussions.

Basically this line in MAINTAINERS

ABI/API

Quoted 8 lines
L:      [email protected]
F:      Documentation/ABI/
F:      include/linux/syscalls.h
F:      include/uapi/
F:      kernel/sys_ni.c

normally means "send all patches affecting files under include/uapi/ to this list", does it not?

Well, this should always be taken as a hint not a hard rule. So if there is a change which is adding/removing or changing signature then sure but not everything falls into that category.

Quoted 9 lines

Wasn't this the intent?

Quoted 4 lines

This is not the only mail sent here which doesn't fall into that category IMO. It is far from low volume list for quite some time.

Please let's get back low volume and API only discussion!

Maybe send patch dropping include/uapi/ from there, should help drive the volumes down?

This would be an overkill IMO. It would be much more preferable if people actually think about who from the suggested list (either from MAINTAINERS or ./scripts/get_maintainer.pl) should be really added.

[...]

Signature · 2 lines
Michal Hocko
SUSE Labs
author maintainer
#4 lore raw
In reply to Michal Hocko
Quoted 28 lines · Michal Hocko
Quoted 27 lines · Michael S. Tsirkin
Quoted 9 lines · Michal Hocko
Quoted 5 lines · Michael S. Tsirkin

Most of our code has
struct foo {
}

Fix two instances where balloon is inconsistent.

I hate to complain but is it really necessary to post such patches to linux-api?

Well it's human to err, so it seems wise to copy parties interested in the ABI/API whenever we are changing files under include/uapi. Whitespace changes should mostly be safe, but it's not unknown e.g. to include unrelated changes in the same commit by mistake.

Quoted 1 line

I thought the list was primarily for API related discussions.

Basically this line in MAINTAINERS

ABI/API

L:      [email protected]
F:      Documentation/ABI/
F:      include/linux/syscalls.h
F:      include/uapi/
F:      kernel/sys_ni.c
Quoted 6 lines
Quoted 2 lines

normally means "send all patches affecting files under include/uapi/ to this list", does it not?

Well, this should always be taken as a hint not a hard rule. So if there is a change which is adding/removing or changing signature then sure but not everything falls into that category.

At least for code I maintain, I really wish people would just Cc me in any case. There's been a bunch of cases where people don't Cc me, and then another maintainer assumes my silence implies agreement, and applies. Not nice. OTOH it's easy to ignore an irrelevant patch.

Quoted 7 lines
Quoted 7 lines

Wasn't this the intent?

Quoted 4 lines

This is not the only mail sent here which doesn't fall into that category IMO. It is far from low volume list for quite some time.

Please let's get back low volume and API only discussion!

Quoted 8 lines
Quoted 2 lines

Maybe send patch dropping include/uapi/ from there, should help drive the volumes down?

This would be an overkill IMO. It would be much more preferable if people actually think about who from the suggested list (either from MAINTAINERS or ./scripts/get_maintainer.pl) should be really added.

[...]

Yea, think about it, then what? I've no idea what is linux-abi for, and what people subscribed there are interested in. How should I? All I know is what's in MAINTAINERS, which say "ABI/API". So I copy all ABI/API patches there.

Quoted 7 lines
Signature · 6 lines
Michal Hocko
SUSE Labs
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
#5 lore raw
Quoted 2 lines · Michael S. Tsirkin
Quoted 1 line · Michal Hocko

On Thu 15-01-15 15:44:12, Michael S. Tsirkin wrote:

[...]

Quoted 11 lines
Quoted 8 lines
Quoted 2 lines

Maybe send patch dropping include/uapi/ from there, should help drive the volumes down?

This would be an overkill IMO. It would be much more preferable if people actually think about who from the suggested list (either from MAINTAINERS or ./scripts/get_maintainer.pl) should be really added.

[...]

Yea, think about it, then what? I've no idea what is linux-abi for, and what people subscribed there are interested in. How should I?

https://www.kernel.org/doc/man-pages/linux-api-ml.html

And by no means, I didn't intend to put critique just to you or only this particular patch. I just grown frustrated because there are so many patches which are no longer API/ABI related flying here. This was just an example.

Hi volume of unrelated emails will turn this into another lkml, I am afraid.

Signature · 2 lines
Michal Hocko
SUSE Labs
#6 lore raw
In reply to Michael S. Tsirkin
Quoted 2 lines · Michael S. Tsirkin
Quoted 1 line · Michal Hocko

On Thu 15-01-15 15:44:12, Michael S. Tsirkin wrote:

[...]

Quoted 11 lines
Quoted 8 lines
Quoted 2 lines

Maybe send patch dropping include/uapi/ from there, should help drive the volumes down?

This would be an overkill IMO. It would be much more preferable if people actually think about who from the suggested list (either from MAINTAINERS or ./scripts/get_maintainer.pl) should be really added.

[...]

Yea, think about it, then what? I've no idea what is linux-abi for, and what people subscribed there are interested in. How should I?

https://www.kernel.org/doc/man-pages/linux-api-ml.html

And by no means, I didn't intend to put critique just to you or only this particular patch. I just grown frustrated because there are so many patches which are no longer API/ABI related flying here. This was just an example.

Hi volume of unrelated emails will turn this into another lkml, I am afraid.

Signature · 2 lines
Michal Hocko
SUSE Labs
#8 lore raw
In reply to Michael S. Tsirkin
Quoted 32 lines · Michael S. Tsirkin
Quoted 9 lines · Michal Hocko
Quoted 5 lines · Michael S. Tsirkin

Most of our code has
struct foo {
}

Fix two instances where balloon is inconsistent.

I hate to complain but is it really necessary to post such patches to linux-api?

Well it's human to err, so it seems wise to copy parties interested in the ABI/API whenever we are changing files under include/uapi. Whitespace changes should mostly be safe, but it's not unknown e.g. to include unrelated changes in the same commit by mistake.

Quoted 1 line

I thought the list was primarily for API related discussions.

Basically this line in MAINTAINERS

ABI/API

L:      [email protected]
F:      Documentation/ABI/
F:      include/linux/syscalls.h
F:      include/uapi/
F:      kernel/sys_ni.c

normally means "send all patches affecting files under include/uapi/ to this list", does it not?

Wasn't this the intent?

Quoted 7 lines
Quoted 4 lines

This is not the only mail sent here which doesn't fall into that category IMO. It is far from low volume list for quite some time.

Please let's get back low volume and API only discussion!

Maybe send patch dropping include/uapi/ from there, should help drive the volumes down?

Well, regardless of what it technically means, there's always going to be scope for ambiguity, and that's where we differ from computers:
we can ask ourselves the question: will other human beings interested in the API/ABI care about this patch?

Thanks,

Michael (also saddened about increasing noise on linux-api)

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/