[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210318180443.53546-1-mdjurovic@zohomail.com>
Date: Thu, 18 Mar 2021 11:04:43 -0700
From: Milan Djurovic <mdjurovic@...omail.com>
To: linux@...linux.org.uk
Cc: linux-kernel@...r.kernel.org,
Milan Djurovic <mdjurovic@...omail.com>
Subject: [PATCH] amba: bus: Export symbols directly after function
Fix the following checkpatch.pl warnings:
drivers/amba/bus.c:832: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
drivers/amba/bus.c:833: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
drivers/amba/bus.c:834: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
drivers/amba/bus.c:835: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
drivers/amba/bus.c:836: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
drivers/amba/bus.c:837: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
drivers/amba/bus.c:838: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
Signed-off-by: Milan Djurovic <mdjurovic@...omail.com>
---
drivers/amba/bus.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index 939ca220bf78..dba3f890f681 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -349,6 +349,7 @@ int amba_driver_register(struct amba_driver *drv)
return driver_register(&drv->drv);
}
+EXPORT_SYMBOL(amba_driver_register);
/**
* amba_driver_unregister - remove an AMBA device driver
@@ -362,6 +363,7 @@ void amba_driver_unregister(struct amba_driver *drv)
{
driver_unregister(&drv->drv);
}
+EXPORT_SYMBOL(amba_driver_unregister);
static void amba_device_release(struct device *dev)
@@ -707,6 +709,7 @@ int amba_device_register(struct amba_device *dev, struct resource *parent)
return amba_device_add(dev, parent);
}
+EXPORT_SYMBOL(amba_device_register);
/**
* amba_device_put - put an AMBA device
@@ -733,6 +736,7 @@ void amba_device_unregister(struct amba_device *dev)
{
device_unregister(&dev->dev);
}
+EXPORT_SYMBOL(amba_device_unregister);
struct find_data {
@@ -793,6 +797,7 @@ amba_find_device(const char *busid, struct device *parent, unsigned int id,
return data.dev;
}
+EXPORT_SYMBOL(amba_find_device);
/**
* amba_request_regions - request all mem regions associated with device
@@ -814,6 +819,7 @@ int amba_request_regions(struct amba_device *dev, const char *name)
return ret;
}
+EXPORT_SYMBOL(amba_request_regions);
/**
* amba_release_regions - release mem regions associated with device
@@ -828,11 +834,4 @@ void amba_release_regions(struct amba_device *dev)
size = resource_size(&dev->res);
release_mem_region(dev->res.start, size);
}
-
-EXPORT_SYMBOL(amba_driver_register);
-EXPORT_SYMBOL(amba_driver_unregister);
-EXPORT_SYMBOL(amba_device_register);
-EXPORT_SYMBOL(amba_device_unregister);
-EXPORT_SYMBOL(amba_find_device);
-EXPORT_SYMBOL(amba_request_regions);
EXPORT_SYMBOL(amba_release_regions);
--
2.30.1
Powered by blists - more mailing lists