linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH linux-gfs2] GFS2: ht_parms can be static
  2015-07-13 20:17 [linux-gfs2:for-next 2/2] fs/gfs2/glock.c:79:26: sparse: symbol 'ht_parms' was not declared. Should it be static? kbuild test robot
@ 2015-07-13 20:17 ` kbuild test robot
  2015-07-14 13:39   ` Bob Peterson
  0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2015-07-13 20:17 UTC (permalink / raw)
  To: Bob Peterson; +Cc: kbuild-all, Steven Whitehouse, cluster-devel, linux-kernel


Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 glock.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 813de00..1b0dff4 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -76,7 +76,7 @@ static DEFINE_SPINLOCK(lru_lock);
 #define GFS2_GL_HASH_SHIFT      15
 #define GFS2_GL_HASH_SIZE       (1 << GFS2_GL_HASH_SHIFT)
 
-struct rhashtable_params ht_parms = {
+static struct rhashtable_params ht_parms = {
 	.nelem_hint = GFS2_GL_HASH_SIZE * 3 / 4,
 	.key_len = sizeof(struct lm_lockname),
 	.key_offset = offsetof(struct gfs2_glock, gl_name),

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

* [linux-gfs2:for-next 2/2] fs/gfs2/glock.c:79:26: sparse: symbol 'ht_parms' was not declared. Should it be static?
@ 2015-07-13 20:17 kbuild test robot
  2015-07-13 20:17 ` [PATCH linux-gfs2] GFS2: ht_parms can be static kbuild test robot
  0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2015-07-13 20:17 UTC (permalink / raw)
  To: Bob Peterson; +Cc: kbuild-all, Steven Whitehouse, cluster-devel, linux-kernel

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 for-next
head:   6afe4c76af372a6b453f33888e664beddc4647b4
commit: 6afe4c76af372a6b453f33888e664beddc4647b4 [2/2] GFS2: Use resizable hash table for glocks
reproduce:
  # apt-get install sparse
  git checkout 6afe4c76af372a6b453f33888e664beddc4647b4
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> fs/gfs2/glock.c:79:26: sparse: symbol 'ht_parms' was not declared. Should it be static?
   fs/gfs2/./trace_gfs2.h:160:1: sparse: odd constant _Bool cast (ffffffffffffffff becomes 1)
   fs/gfs2/glock.c:175:9: sparse: context imbalance in 'gfs2_glock_put' - unexpected unlock
   fs/gfs2/glock.c:1802:13: sparse: context imbalance in 'gfs2_glock_seq_start' - wrong count at exit
>> fs/gfs2/glock.c:1834:13: sparse: context imbalance in 'gfs2_glock_seq_stop' - unexpected unlock

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

* Re: [PATCH linux-gfs2] GFS2: ht_parms can be static
  2015-07-13 20:17 ` [PATCH linux-gfs2] GFS2: ht_parms can be static kbuild test robot
@ 2015-07-14 13:39   ` Bob Peterson
  0 siblings, 0 replies; 3+ messages in thread
From: Bob Peterson @ 2015-07-14 13:39 UTC (permalink / raw)
  To: fengguang.wu; +Cc: Steven Whitehouse, cluster-devel, linux-kernel

----- Original Message -----
> 
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> ---
>  glock.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
> index 813de00..1b0dff4 100644
> --- a/fs/gfs2/glock.c
> +++ b/fs/gfs2/glock.c
> @@ -76,7 +76,7 @@ static DEFINE_SPINLOCK(lru_lock);
>  #define GFS2_GL_HASH_SHIFT      15
>  #define GFS2_GL_HASH_SIZE       (1 << GFS2_GL_HASH_SHIFT)
>  
> -struct rhashtable_params ht_parms = {
> +static struct rhashtable_params ht_parms = {
>  	.nelem_hint = GFS2_GL_HASH_SIZE * 3 / 4,
>  	.key_len = sizeof(struct lm_lockname),
>  	.key_offset = offsetof(struct gfs2_glock, gl_name),
> 

Hi,

Thanks. Now pushed to the for-next branch of the linux-gfs2 tree.

Regards,

Bob Peterson
Red Hat File Systems

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

end of thread, other threads:[~2015-07-14 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-13 20:17 [linux-gfs2:for-next 2/2] fs/gfs2/glock.c:79:26: sparse: symbol 'ht_parms' was not declared. Should it be static? kbuild test robot
2015-07-13 20:17 ` [PATCH linux-gfs2] GFS2: ht_parms can be static kbuild test robot
2015-07-14 13:39   ` Bob Peterson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).