* [PATCH] Fixed function pointers coding style issues
@ 2022-03-03 19:11 hatimmohammed369
0 siblings, 0 replies; only message in thread
From: hatimmohammed369 @ 2022-03-03 19:11 UTC (permalink / raw)
To: pbonzini; +Cc: kvm, linux-kernel, Hatim Muhammed
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-03 19:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03 19:11 [PATCH] Fixed function pointers coding style issues hatimmohammed369
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).