mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] ext4: remove incorrect 'extern' keyword for function-definition
@ 2011-05-05  8:51 Robin Dong
  2011-05-05  8:51 ` [PATCH 2/3] ocfs2: change incorrect 'extern' keyword to 'static' Robin Dong
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Robin Dong @ 2011-05-05  8:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: Robin Dong, Theodore Ts'o

Signed-off-by: Robin Dong <sanbai@taobao.com>
---
 fs/ext4/ialloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
index 1ce240a..d4929ae 100644
--- a/fs/ext4/ialloc.c
+++ b/fs/ext4/ialloc.c
@@ -1229,7 +1229,7 @@ unsigned long ext4_count_dirs(struct super_block * sb)
  * inode allocation from the current group, so we take alloc_sem lock, to
  * block ext4_claim_inode until we are finished.
  */
-extern int ext4_init_inode_table(struct super_block *sb, ext4_group_t group,
+int ext4_init_inode_table(struct super_block *sb, ext4_group_t group,
 				 int barrier)
 {
 	struct ext4_group_info *grp = ext4_get_group_info(sb, group);
-- 
1.7.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/3] ocfs2: change incorrect 'extern' keyword to 'static'
  2011-05-05  8:51 [PATCH 1/3] ext4: remove incorrect 'extern' keyword for function-definition Robin Dong
@ 2011-05-05  8:51 ` Robin Dong
  2011-05-05  8:51 ` [PATCH 3/3] mm: " Robin Dong
  2011-05-05  9:25 ` [PATCH 1/3] ext4: remove incorrect 'extern' keyword for function-definition Yong Zhang
  2 siblings, 0 replies; 5+ messages in thread
From: Robin Dong @ 2011-05-05  8:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: Robin Dong, Joel Becker

Change function param_set_dlmfs_capabilities from 'extern' to 'static' since
function param_get_dlmfs_capabilities is also 'static'.

Signed-off-by: Robin Dong <sanbai@taobao.com>
---
 fs/ocfs2/dlmfs/dlmfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c
index b2df490..dd2675e 100644
--- a/fs/ocfs2/dlmfs/dlmfs.c
+++ b/fs/ocfs2/dlmfs/dlmfs.c
@@ -88,7 +88,7 @@ struct workqueue_struct *user_dlm_worker;
  *		  signifies a bast fired on the lock.
  */
 #define DLMFS_CAPABILITIES "bast stackglue"
-extern int param_set_dlmfs_capabilities(const char *val,
+static int param_set_dlmfs_capabilities(const char *val,
 					struct kernel_param *kp)
 {
 	printk(KERN_ERR "%s: readonly parameter\n", kp->name);
-- 
1.7.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 3/3] mm: change incorrect 'extern' keyword to 'static'
  2011-05-05  8:51 [PATCH 1/3] ext4: remove incorrect 'extern' keyword for function-definition Robin Dong
  2011-05-05  8:51 ` [PATCH 2/3] ocfs2: change incorrect 'extern' keyword to 'static' Robin Dong
@ 2011-05-05  8:51 ` Robin Dong
  2011-05-05  9:27   ` Yong Zhang
  2011-05-05  9:25 ` [PATCH 1/3] ext4: remove incorrect 'extern' keyword for function-definition Yong Zhang
  2 siblings, 1 reply; 5+ messages in thread
From: Robin Dong @ 2011-05-05  8:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: Robin Dong, Andrew Morton

Change function memblock_memory_can_coalesce from 'extern' to 'static' to
match the memblock_* series function.

Signed-off-by: Robin Dong <sanbai@taobao.com>
---
 mm/memblock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/memblock.c b/mm/memblock.c
index 400dc62..9570c43 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -292,7 +292,7 @@ static int __init_memblock memblock_double_array(struct memblock_type *type)
 	return 0;
 }
 
-extern int __init_memblock __weak memblock_memory_can_coalesce(phys_addr_t addr1, phys_addr_t size1,
+static int __init_memblock __weak memblock_memory_can_coalesce(phys_addr_t addr1, phys_addr_t size1,
 					  phys_addr_t addr2, phys_addr_t size2)
 {
 	return 1;
-- 
1.7.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/3] ext4: remove incorrect 'extern' keyword for function-definition
  2011-05-05  8:51 [PATCH 1/3] ext4: remove incorrect 'extern' keyword for function-definition Robin Dong
  2011-05-05  8:51 ` [PATCH 2/3] ocfs2: change incorrect 'extern' keyword to 'static' Robin Dong
  2011-05-05  8:51 ` [PATCH 3/3] mm: " Robin Dong
@ 2011-05-05  9:25 ` Yong Zhang
  2 siblings, 0 replies; 5+ messages in thread
From: Yong Zhang @ 2011-05-05  9:25 UTC (permalink / raw)
  To: Robin Dong; +Cc: linux-kernel, Robin Dong, Theodore Ts'o

On Thu, May 5, 2011 at 4:51 PM, Robin Dong <hao.bigrat@gmail.com> wrote:
> Signed-off-by: Robin Dong <sanbai@taobao.com>
> ---
>  fs/ext4/ialloc.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
> index 1ce240a..d4929ae 100644
> --- a/fs/ext4/ialloc.c
> +++ b/fs/ext4/ialloc.c
> @@ -1229,7 +1229,7 @@ unsigned long ext4_count_dirs(struct super_block * sb)
>  * inode allocation from the current group, so we take alloc_sem lock, to
>  * block ext4_claim_inode until we are finished.
>  */
> -extern int ext4_init_inode_table(struct super_block *sb, ext4_group_t group,
> +int ext4_init_inode_table(struct super_block *sb, ext4_group_t group,

Is there any difference with your modification?

Thanks,
Yong

>                                 int barrier)
>  {
>        struct ext4_group_info *grp = ext4_get_group_info(sb, group);
> --
> 1.7.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>



-- 
Only stand for myself

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 3/3] mm: change incorrect 'extern' keyword to 'static'
  2011-05-05  8:51 ` [PATCH 3/3] mm: " Robin Dong
@ 2011-05-05  9:27   ` Yong Zhang
  0 siblings, 0 replies; 5+ messages in thread
From: Yong Zhang @ 2011-05-05  9:27 UTC (permalink / raw)
  To: Robin Dong; +Cc: linux-kernel, Robin Dong, Andrew Morton

On Thu, May 5, 2011 at 4:51 PM, Robin Dong <hao.bigrat@gmail.com> wrote:
> Change function memblock_memory_can_coalesce from 'extern' to 'static' to
> match the memblock_* series function.
>
> Signed-off-by: Robin Dong <sanbai@taobao.com>
> ---
>  mm/memblock.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/mm/memblock.c b/mm/memblock.c
> index 400dc62..9570c43 100644
> --- a/mm/memblock.c
> +++ b/mm/memblock.c
> @@ -292,7 +292,7 @@ static int __init_memblock memblock_double_array(struct memblock_type *type)
>        return 0;
>  }
>
> -extern int __init_memblock __weak memblock_memory_can_coalesce(phys_addr_t addr1, phys_addr_t size1,
> +static int __init_memblock __weak memblock_memory_can_coalesce(phys_addr_t addr1, phys_addr_t size1,

I guess you will get build error as
"error: static declaration of ‘***’ follows non-static declaration".

No?

Thanks,
Yong

>                                          phys_addr_t addr2, phys_addr_t size2)
>  {
>        return 1;
> --
> 1.7.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>



-- 
Only stand for myself

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-05  9:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-05  8:51 [PATCH 1/3] ext4: remove incorrect 'extern' keyword for function-definition Robin Dong
2011-05-05  8:51 ` [PATCH 2/3] ocfs2: change incorrect 'extern' keyword to 'static' Robin Dong
2011-05-05  8:51 ` [PATCH 3/3] mm: " Robin Dong
2011-05-05  9:27   ` Yong Zhang
2011-05-05  9:25 ` [PATCH 1/3] ext4: remove incorrect 'extern' keyword for function-definition Yong Zhang

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®