Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1490028
| From | Baoyou Xie <baoyou.xie@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] regulator: dbx500: add missing header dependencies |
| Date | 2016-09-23 15:00 +0200 |
| Message-ID | <skyf7-3M0-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
We get 1 warning when building kernel with W=1:
drivers/regulator/dbx500-prcmu.c:158:27: warning: no previous prototype for 'dbx500_regulator_testcase' [-Wmissing-prototypes]
In fact, this function is not declared in any file, but should be
declared in a header file. thus can be recognized in other file.
So this patch adds the declaration into
drivers/regulator/dbx500-prcmu.h.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
---
drivers/regulator/dbx500-prcmu.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/regulator/dbx500-prcmu.h b/drivers/regulator/dbx500-prcmu.h
index c8e51ac..644cb9e 100644
--- a/drivers/regulator/dbx500-prcmu.h
+++ b/drivers/regulator/dbx500-prcmu.h
@@ -35,7 +35,8 @@ struct dbx500_regulator_info {
void power_state_active_enable(void);
int power_state_active_disable(void);
-
+int dbx500_regulator_testcase(struct dbx500_regulator_info *regulator_info,
+ int num_regulators);
#ifdef CONFIG_REGULATOR_DEBUG
int ux500_regulator_debug_init(struct platform_device *pdev,
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 2/2] regulator: dbx500: add missing header dependencies Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-23 15:00 +0200 Re: [PATCH 2/2] regulator: dbx500: add missing header dependencies Arnd Bergmann <arnd@arndb.de> - 2016-09-23 15:50 +0200
csiph-web