Patchwork [2/2] ide: sgiioc4: Staticize ioc4_ide_attach_one()

login
register
mail settings
Submitter Jingoo Han
Date Aug. 7, 2013, 5:17 a.m.
Message ID <002c01ce932d$791b80a0$6b5281e0$@samsung.com>
Download mbox | patch
Permalink /patch/265327/
State Accepted
Delegated to: David Miller
Headers show

Comments

Jingoo Han - Aug. 7, 2013, 5:17 a.m.
ioc4_ide_attach_one() is used only in this file.
Fix the following sparse warnings:

drivers/ide/sgiioc4.c:603:5: warning: symbol 'ioc4_ide_attach_one' was not declared. Should it be static?

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/ide/sgiioc4.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
David Miller - Sept. 5, 2013, 7:38 p.m.
From: Jingoo Han <jg1.han@samsung.com>
Date: Wed, 07 Aug 2013 14:17:55 +0900

> ioc4_ide_attach_one() is used only in this file.
> Fix the following sparse warnings:
> 
> drivers/ide/sgiioc4.c:603:5: warning: symbol 'ioc4_ide_attach_one' was not declared. Should it be static?
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/ide/sgiioc4.c b/drivers/ide/sgiioc4.c
index a5ca179a..63761db 100644
--- a/drivers/ide/sgiioc4.c
+++ b/drivers/ide/sgiioc4.c
@@ -600,7 +600,7 @@  out:
 	return ret;
 }
 
-int ioc4_ide_attach_one(struct ioc4_driver_data *idd)
+static int ioc4_ide_attach_one(struct ioc4_driver_data *idd)
 {
 	/*
 	 * PCI-RT does not bring out IDE connection.