mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: hatimmohammed369@gmail.com
To: pbonzini@redhat.com
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
	Hatim Muhammed <hatimmohammed369@gmail.com>
Subject: [PATCH] Fixed function pointers coding style issues
Date: Thu,  3 Mar 2022 21:11:20 +0200	[thread overview]
Message-ID: <20220303191120.7503-1-hatimmohammed369@gmail.com> (raw)

From: Hatim Muhammed <hatimmohammed369@gmail.com>

Signed-off-by: Hatim Muhammed <hatimmohammed369@gmail.com>

Some functions pointers did not provide names for their parameters,
     Fixed that

---
 virt/kvm/vfio.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/virt/kvm/vfio.c b/virt/kvm/vfio.c
index 8fcbc50221c2..37887b158aae 100644
--- a/virt/kvm/vfio.c
+++ b/virt/kvm/vfio.c
@@ -35,7 +35,7 @@ struct kvm_vfio {
 static struct vfio_group *kvm_vfio_group_get_external_user(struct file *filep)
 {
 	struct vfio_group *vfio_group;
-	struct vfio_group *(*fn)(struct file *);
+	struct vfio_group *(*fn)(struct file *_file);
 
 	fn = symbol_get(vfio_group_get_external_user);
 	if (!fn)
@@ -66,7 +66,7 @@ static bool kvm_vfio_external_group_match_file(struct vfio_group *group,
 
 static void kvm_vfio_group_put_external_user(struct vfio_group *vfio_group)
 {
-	void (*fn)(struct vfio_group *);
+	void (*fn)(struct vfio_group *_vfio_group);
 
 	fn = symbol_get(vfio_group_put_external_user);
 	if (!fn)
@@ -79,7 +79,7 @@ static void kvm_vfio_group_put_external_user(struct vfio_group *vfio_group)
 
 static void kvm_vfio_group_set_kvm(struct vfio_group *group, struct kvm *kvm)
 {
-	void (*fn)(struct vfio_group *, struct kvm *);
+	void (*fn)(struct vfio_group *_vfio_group, struct kvm *_kvm);
 
 	fn = symbol_get(vfio_group_set_kvm);
 	if (!fn)
@@ -92,7 +92,7 @@ static void kvm_vfio_group_set_kvm(struct vfio_group *group, struct kvm *kvm)
 
 static bool kvm_vfio_group_is_coherent(struct vfio_group *vfio_group)
 {
-	long (*fn)(struct vfio_group *, unsigned long);
+	long (*fn)(struct vfio_group *_vfio_group, unsigned long _n);
 	long ret;
 
 	fn = symbol_get(vfio_external_check_extension);
@@ -109,7 +109,7 @@ static bool kvm_vfio_group_is_coherent(struct vfio_group *vfio_group)
 #ifdef CONFIG_SPAPR_TCE_IOMMU
 static int kvm_vfio_external_user_iommu_id(struct vfio_group *vfio_group)
 {
-	int (*fn)(struct vfio_group *);
+	int (*fn)(struct vfio_group *_vfio_group);
 	int ret = -EINVAL;
 
 	fn = symbol_get(vfio_external_user_iommu_id);
-- 
2.35.1


                 reply	other threads:[~2022-03-03 19:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220303191120.7503-1-hatimmohammed369@gmail.com \
    --to=hatimmohammed369@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.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

all inboxes | Powered by JetHome®