Skip to contentSkip to conversation

S3C64XX: Ensure samsung_keypad_cfg_gpio() is prototyped

PATCH New Mark Brown 2 participants 6 messages Oct 12, 2010 – Oct 13, 2010

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/2 S3C64XX: Ensure samsung_keypad_cfg_gpio() is prototyped

Since it's exported we should make sure we're using the prototype others see.

---
 arch/arm/mach-s3c64xx/setup-keypad.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-s3c64xx/setup-keypad.c +1 -0
index d1fd722..f8ed0d2 100644
@@ -12,6 +12,7 @@
 
 #include <linux/gpio.h>
 #include <plat/gpio-cfg.h>
+#include <plat/keypad.h>
 
 void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols)
 {
Signature · 1 line
1.7.1
author
#1 lore raw

PATCH 2/2 S3C64XX: Ensure s3c64xx_ide_setup_gpio() is prototyped

Since it's exported we should make sure we're using the prototype others see.

---
 arch/arm/mach-s3c64xx/setup-ide.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-s3c64xx/setup-ide.c +1 -0
index de645e9..41b4256 100644
@@ -17,6 +17,7 @@
 #include <mach/map.h>
 #include <mach/regs-clock.h>
 #include <plat/gpio-cfg.h>
+#include <plat/ata.h>
 
 void s3c64xx_ide_setup_gpio(void)
 {
Signature · 1 line
1.7.1
#2 lore raw

PATCH 1/2 S3C64XX: Ensure samsung_keypad_cfg_gpio() is prototyped

In reply to Mark Brown
Quoted 4 lines · Mark Brown

Since it's exported we should make sure we're using the prototype others see.

Hi Mark,

Hmm...I'm not sure that we need really this. Of course, it can be helpful. But if so, we have to apply this policy/rule to all of ours...but I think we don't need it now.

Quoted 11 lines
---
 arch/arm/mach-s3c64xx/setup-keypad.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach- renamed from arch/arm/mach-s3c64xx/setup-keypad.c +0 -0

s3c64xx/setup-keypad.c
index d1fd722..f8ed0d2 100644

arch/arm/mach-s3c64xx/setup-keypad.c

Quoted 8 lines
arch/arm/mach-s3c64xx/setup-keypad.c +1 -1
@@ -12,6 +12,7 @@
 
 #include <linux/gpio.h>
 #include <plat/gpio-cfg.h>
+#include <plat/keypad.h>
 
 void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols)
 {
--

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

author
#3 lore raw

PATCH 1/2 S3C64XX: Ensure samsung_keypad_cfg_gpio() is prototyped

Quoted 8 lines · Kukjin Kim
Quoted 2 lines · Mark Brown

Since it's exported we should make sure we're using the prototype others see.

Hmm...I'm not sure that we need really this. Of course, it can be helpful. But if so, we have to apply this policy/rule to all of ours...but I think we don't need it now.

sparse warns about this issue so fixing issues like this is required to get a clean build for sparse users (I do pretty much all my builds with sparse). I am sending fixes for everything I build, though obviously I don't have access to all Samsung systems, and it does make life easier when doing updates on the arch code.

#4 lore raw

PATCH 1/2 S3C64XX: Ensure samsung_keypad_cfg_gpio() is prototyped

Quoted 8 lines · Mark Brown
Quoted 6 lines · Kukjin Kim
Quoted 2 lines · Mark Brown

Since it's exported we should make sure we're using the prototype others see.

Hmm...I'm not sure that we need really this. Of course, it can be

helpful.

Quoted 1 line
Quoted 1 line

But if so, we have to apply this policy/rule to all of ours...but I

think we

Quoted 7 lines
Quoted 1 line

don't need it now.

sparse warns about this issue so fixing issues like this is required to get a clean build for sparse users (I do pretty much all my builds with sparse). I am sending fixes for everything I build, though obviously I don't have access to all Samsung systems, and it does make life easier when doing updates on the arch code.

You mean following? arch/arm/mach-s3c64xx/setup-keypad.c:16:6: warning: symbol 'samsung_keypad_cfg_gpio' was not declared. Should it be static?

I didn't check sparse :-(
Ok...Ben seems to be busy now...so will apply in my tree. And I will also fix it our Samsung stuff.

Ben, if any problems, please let me know.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

author
#5 lore raw

PATCH 1/2 S3C64XX: Ensure samsung_keypad_cfg_gpio() is prototyped

Quoted 3 lines · Kukjin Kim

You mean following? arch/arm/mach-s3c64xx/setup-keypad.c:16:6: warning: symbol 'samsung_keypad_cfg_gpio' was not declared. Should it be static?

Yup, that's the one.

Quoted 3 lines

I didn't check sparse :-(
Ok...Ben seems to be busy now...so will apply in my tree. And I will also fix it our Samsung stuff.

Thanks!