The functions alloc_pasid and free_pasid are local to the
source and do not need to be in global scope, so make them static.
Cleans up sparse warnings:
warning: symbol 'alloc_pasid' was not declared. Should it be static?
warning: symbol 'free_pasid' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
*/
static DEFINE_IDA(pasid_ida);
-int alloc_pasid(unsigned int bits)
+static int alloc_pasid(unsigned int bits)
{
int pasid = -EINVAL;
return pasid;
}
-void free_pasid(unsigned int pasid)
+static void free_pasid(unsigned int pasid)
{
ida_simple_remove(&pasid_ida, pasid);
}