virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: George Zhang <georgezhang@vmware.com>
Cc: pv-drivers@vmware.com, vm-crosstalk@vmware.com,
	linux-kernel@vger.kernel.org,
	virtualization@lists.linux-foundation.org
Subject: Re: [PATCH 04/10] VMCI: device driver implementaton.
Date: Thu, 25 Oct 2012 12:28:51 -0700	[thread overview]
Message-ID: <20121025192851.GA26627@kroah.com> (raw)
In-Reply-To: <20121016002832.26205.60696.stgit@promb-2n-dhcp175.eng.vmware.com>

On Mon, Oct 15, 2012 at 05:28:47PM -0700, George Zhang wrote:
> +/*
> + * vmci_device_get() - Checks for VMCI device.
> + * @api_version:        The API version to use
> + * @device_shutdown_cb: Callback used when shutdown happens (Unused)
> + * @user_data:  Data to be passed to the callback (Unused)
> + * @device_registration:        A device registration handle. (Unused)
> + *
> + * Verifies that a valid VMCI device is present, and indicates
> + * the callers intention to use the device until it calls
> + * vmci_device_release().
> + */
> +bool vmci_device_get(u32 *api_version,
> +		     vmci_device_shutdown_fn *device_shutdown_cb,
> +		     void *user_data, void **device_registration)
> +{
> +	if (*api_version > VMCI_KERNEL_API_VERSION) {
> +		*api_version = VMCI_KERNEL_API_VERSION;
> +		return false;
> +	}
> +
> +	return drv_device_enabled();
> +}
> +EXPORT_SYMBOL(vmci_device_get);

EXPORT_SYMBOL_GPL() for this, and all other exports?

And it seems that you have a bunch of "unused" parameters for this, and
other public functions.  Please just remove them entirely, otherwise it
just confuses reviewers, and anyone who wants to write code to interface
with the code.  You can always add parameters at a later point in time
if you find that you really need them.

thanks,

greg k-h

  reply	other threads:[~2012-10-25 19:28 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-16  0:27 [PATCH 00/10] VMCI for Linux upstreaming George Zhang
2012-10-16  0:28 ` [PATCH 01/10] VMCI: context implementation George Zhang
2012-10-16  0:28 ` [PATCH 02/10] VMCI: datagram implementation George Zhang
2012-10-16  0:28 ` [PATCH 03/10] VMCI: doorbell implementation George Zhang
2012-10-16  0:28 ` [PATCH 04/10] VMCI: device driver implementaton George Zhang
2012-10-25 19:28   ` Greg KH [this message]
2012-10-25 20:16     ` [Pv-drivers] " Andy King
2012-10-25 20:31       ` Greg KH
2012-10-25 20:43         ` Bhavesh Davda
2012-10-25 21:03           ` Greg KH
2012-10-25 21:15             ` Dmitry Torokhov
2012-10-25 20:45         ` Dmitry Torokhov
2012-10-25 21:04           ` Greg KH
2012-10-25 21:13             ` Dmitry Torokhov
2012-10-25 21:18             ` Bhavesh Davda
2012-10-25 21:08         ` Andy King
2012-10-26 20:02           ` Andy King
2012-10-26 20:11             ` Greg KH
2012-10-16  0:28 ` [PATCH 05/10] VMCI: event handling implementation George Zhang
2012-10-16  0:29 ` [PATCH 06/10] VMCI: handle array implementation George Zhang
2012-10-16  0:29 ` [PATCH 07/10] VMCI: queue pairs implementation George Zhang
2012-10-16  0:29 ` [PATCH 08/10] VMCI: resource object implementation George Zhang
2012-10-16  0:29 ` [PATCH 09/10] VMCI: routing implementation George Zhang
2012-10-16  0:29 ` [PATCH 10/10] VMCI: Some header and config files George Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121025192851.GA26627@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=georgezhang@vmware.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pv-drivers@vmware.com \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=vm-crosstalk@vmware.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).