* [PATCH] regulator: da9055: declare return type of inline function exclusively
@ 2014-02-12 5:11 SeongJae Park
2014-02-12 11:57 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: SeongJae Park @ 2014-02-12 5:11 UTC (permalink / raw)
To: lgirdwood, broonie, axel.lin; +Cc: linux-kernel, SeongJae Park
da9055_regulator_dt_init does not declare return type and it cause
following build warning.
drivers/regulator/da9055-regulator.c:582:15: warning:
return type defaults to ‘int’ [-Wreturn-type]
static inline da9055_regulator_dt_init(struct platform_device *pdev,
^
Fix the warning by declare return type as int exclusively.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
drivers/regulator/da9055-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator/da9055-regulator.c
index 3b7a26c..cf74040 100644
--- a/drivers/regulator/da9055-regulator.c
+++ b/drivers/regulator/da9055-regulator.c
@@ -579,7 +579,7 @@ static int da9055_regulator_dt_init(struct platform_device *pdev,
return 0;
}
#else
-static inline da9055_regulator_dt_init(struct platform_device *pdev,
+static inline int da9055_regulator_dt_init(struct platform_device *pdev,
struct da9055_regulator *regulator,
struct regulator_config *config,
int regid)
--
1.8.3.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: da9055: declare return type of inline function exclusively
2014-02-12 5:11 [PATCH] regulator: da9055: declare return type of inline function exclusively SeongJae Park
@ 2014-02-12 11:57 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2014-02-12 11:57 UTC (permalink / raw)
To: SeongJae Park; +Cc: lgirdwood, axel.lin, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 177 bytes --]
On Wed, Feb 12, 2014 at 02:11:07PM +0900, SeongJae Park wrote:
> da9055_regulator_dt_init does not declare return type and it cause
> following build warning.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-12 12:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-12 5:11 [PATCH] regulator: da9055: declare return type of inline function exclusively SeongJae Park
2014-02-12 11:57 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®