summaryrefslogtreecommitdiffstats
path: root/drivers/vfio
diff options
context:
space:
mode:
authorParav Pandit2019-05-01 00:49:34 +0200
committerAlex Williamson2019-05-07 19:23:13 +0200
commit405ecbf72f2eb4fc796c4c99ca4881e2cb2ab158 (patch)
tree2b25abfde72099c8de632b83b8795e5acf975d20 /drivers/vfio
parentvfio/mdev: Fix aborting mdev child device removal if one fails (diff)
downloadkernel-qcow2-linux-405ecbf72f2eb4fc796c4c99ca4881e2cb2ab158.tar.gz
kernel-qcow2-linux-405ecbf72f2eb4fc796c4c99ca4881e2cb2ab158.tar.xz
kernel-qcow2-linux-405ecbf72f2eb4fc796c4c99ca4881e2cb2ab158.zip
vfio/mdev: Avoid inline get and put parent helpers
As section 15 of Documentation/process/coding-style.rst clearly describes that compiler will be able to optimize code. Hence drop inline for get and put helpers for parent. Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio')
-rw-r--r--drivers/vfio/mdev/mdev_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vfio/mdev/mdev_core.c b/drivers/vfio/mdev/mdev_core.c
index 1a317e409355..1040a4a2dcbc 100644
--- a/drivers/vfio/mdev/mdev_core.c
+++ b/drivers/vfio/mdev/mdev_core.c
@@ -88,7 +88,7 @@ static void mdev_release_parent(struct kref *kref)
put_device(dev);
}
-static inline struct mdev_parent *mdev_get_parent(struct mdev_parent *parent)
+static struct mdev_parent *mdev_get_parent(struct mdev_parent *parent)
{
if (parent)
kref_get(&parent->ref);
@@ -96,7 +96,7 @@ static inline struct mdev_parent *mdev_get_parent(struct mdev_parent *parent)
return parent;
}
-static inline void mdev_put_parent(struct mdev_parent *parent)
+static void mdev_put_parent(struct mdev_parent *parent)
{
if (parent)
kref_put(&parent->ref, mdev_release_parent);