* Trivial cleanups for drivers/hv/connection.c
@ 2013-12-31 21:52 Pavel Machek
2014-01-02 15:06 ` Dan Carpenter
2014-01-13 23:02 ` hv: " Greg KH
0 siblings, 2 replies; 3+ messages in thread
From: Pavel Machek @ 2013-12-31 21:52 UTC (permalink / raw)
To: kys, haiyangz, devel, linux-kernel, trivial
__u32 is only useful for kernel-user interface, u32 should be enough
for kernel. Formatting was very confusing around __get_free_pages().
Signed-off-by: Pavel Machek <pavel@ucw.cz>
diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c
index 936093e..1387208 100644
--- a/drivers/hv/connection.c
+++ b/drivers/hv/connection.c
@@ -43,10 +43,10 @@ struct vmbus_connection vmbus_connection = {
/*
* Negotiated protocol version with the host.
*/
-__u32 vmbus_proto_version;
+u32 vmbus_proto_version;
EXPORT_SYMBOL_GPL(vmbus_proto_version);
-static __u32 vmbus_get_next_version(__u32 current_version)
+static u32 vmbus_get_next_version(u32 current_version)
{
switch (current_version) {
case (VERSION_WIN7):
@@ -62,7 +62,7 @@ static __u32 vmbus_get_next_version(__u32 current_version)
}
static int vmbus_negotiate_version(struct vmbus_channel_msginfo *msginfo,
- __u32 version)
+ u32 version)
{
int ret = 0;
struct vmbus_channel_initiate_contact *msg;
@@ -133,7 +133,7 @@ int vmbus_connect(void)
{
int ret = 0;
struct vmbus_channel_msginfo *msginfo = NULL;
- __u32 version;
+ u32 version;
/* Initialize the vmbus connection */
vmbus_connection.conn_state = CONNECTING;
@@ -154,7 +154,7 @@ int vmbus_connect(void)
* abstraction stuff
*/
vmbus_connection.int_page =
- (void *)__get_free_pages(GFP_KERNEL|__GFP_ZERO, 0);
+ (void *)__get_free_pages(GFP_KERNEL|__GFP_ZERO, 0);
if (vmbus_connection.int_page == NULL) {
ret = -ENOMEM;
goto cleanup;
@@ -170,7 +170,7 @@ int vmbus_connect(void)
* parent->child and the 2nd page for child->parent
*/
vmbus_connection.monitor_pages =
- (void *)__get_free_pages((GFP_KERNEL|__GFP_ZERO), 1);
+ (void *)__get_free_pages((GFP_KERNEL|__GFP_ZERO), 1);
if (vmbus_connection.monitor_pages == NULL) {
ret = -ENOMEM;
goto cleanup;
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: Trivial cleanups for drivers/hv/connection.c
2013-12-31 21:52 Trivial cleanups for drivers/hv/connection.c Pavel Machek
@ 2014-01-02 15:06 ` Dan Carpenter
2014-01-13 23:02 ` hv: " Greg KH
1 sibling, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2014-01-02 15:06 UTC (permalink / raw)
To: Pavel Machek; +Cc: kys, haiyangz, devel, linux-kernel, trivial
On Tue, Dec 31, 2013 at 10:52:37PM +0100, Pavel Machek wrote:
> __u32 is only useful for kernel-user interface, u32 should be enough
> for kernel. Formatting was very confusing around __get_free_pages().
>
The subject should say:
[PATCH] hv: Trivial cleanups for drivers/hv/connection.c
regards,
dan carpenter
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hv: Trivial cleanups for drivers/hv/connection.c
2013-12-31 21:52 Trivial cleanups for drivers/hv/connection.c Pavel Machek
2014-01-02 15:06 ` Dan Carpenter
@ 2014-01-13 23:02 ` Greg KH
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2014-01-13 23:02 UTC (permalink / raw)
To: Pavel Machek; +Cc: kys, haiyangz, devel, linux-kernel, trivial
On Tue, Dec 31, 2013 at 10:52:37PM +0100, Pavel Machek wrote:
> __u32 is only useful for kernel-user interface, u32 should be enough
> for kernel. Formatting was very confusing around __get_free_pages().
>
> Signed-off-by: Pavel Machek <pavel@ucw.cz>
This doesn't apply to my char-misc.git tree, care to redo it after
3.14-rc1 is out so that we can properly sync up?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-13 23:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-31 21:52 Trivial cleanups for drivers/hv/connection.c Pavel Machek
2014-01-02 15:06 ` Dan Carpenter
2014-01-13 23:02 ` hv: " Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox