Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1178287

Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature

From Paul Bolle <pebolle@tiscali.nl>
Newsgroups linux.kernel
Subject Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature
Date 2015-07-07 11:40 +0200
Message-ID <pJxw7-3UB-51@gated-at.bofh.it> (permalink)
References <pJeDa-x4-57@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Just two nits.

On ma, 2015-07-06 at 07:47 -0700, Dexuan Cui wrote:
> --- /dev/null
> +++ b/net/hv_sock/Kconfig

> +config HYPERV_SOCK
> +	tristate "Microsoft Hyper-V Socket (EXPERIMENTAL)"
> +	depends on HYPERV
> +	default m
> +	help
> +	  Hyper-V Socket is a socket protocol similar to TCP, allowing
> +	  communication between a Linux guest and the host.
> +
> +	  To compile this driver as a module, choose M here: the module
> +	  will be called hv_sock. If unsure, say N.

It's a bit odd to advise to say N if one is unsure and set the default
to 'm' at the same time.

> --- /dev/null
> +++ b/net/hv_sock/af_hvsock.c

> +static int hvsock_init(void)
> +{
> +	[...]
> +}
> +
> +static void hvsock_exit(void)
> +{
> +	[...]
> +}
> +
> +module_init(hvsock_init);
> +module_exit(hvsock_exit);

Any specific reason not to mark these functions __init and __exit?

Thanks,


Paul Bolle
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature Paul Bolle <pebolle@tiscali.nl> - 2015-07-07 11:40 +0200
  Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature Olaf Hering <olaf@aepfle.de> - 2015-07-07 12:20 +0200
    Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature Olaf Hering <olaf@aepfle.de> - 2015-07-07 13:00 +0200

csiph-web