public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 01/12] xfs:Make the function,xfs_alloc_lookup_eq static
       [not found] <1430856999-31952-1-git-send-email-xerofoify@gmail.com>
@ 2015-05-05 20:18 ` Christoph Hellwig
  2015-05-05 22:12 ` Dave Chinner
  1 sibling, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2015-05-05 20:18 UTC (permalink / raw)
  To: Nicholas Krause; +Cc: david, xfs, bfoster, sandeen, hch, jack, linux-kernel

On Tue, May 05, 2015 at 04:16:28PM -0400, Nicholas Krause wrote:
> This makes the function,xfs_alloc_lookup_eq static as there are no
> calls to this function outside the definition file for this function,
> xfs_alloc.c.

Nic, please stop trolling our lists.

Thank you, and *plonk*

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

* Re: [PATCH 01/12] xfs:Make the function,xfs_alloc_lookup_eq static
       [not found] <1430856999-31952-1-git-send-email-xerofoify@gmail.com>
  2015-05-05 20:18 ` [PATCH 01/12] xfs:Make the function,xfs_alloc_lookup_eq static Christoph Hellwig
@ 2015-05-05 22:12 ` Dave Chinner
  1 sibling, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2015-05-05 22:12 UTC (permalink / raw)
  To: Nicholas Krause; +Cc: xfs, bfoster, sandeen, hch, jack, linux-kernel

On Tue, May 05, 2015 at 04:16:28PM -0400, Nicholas Krause wrote:
> This makes the function,xfs_alloc_lookup_eq static as there are no
> calls to this function outside the definition file for this function,
> xfs_alloc.c.
> 
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> ---
>  fs/xfs/libxfs/xfs_alloc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c
> index 516162b..48de3f0 100644
> --- a/fs/xfs/libxfs/xfs_alloc.c
> +++ b/fs/xfs/libxfs/xfs_alloc.c
> @@ -52,7 +52,7 @@ STATIC int xfs_alloc_ag_vextent_small(xfs_alloc_arg_t *,
>  /*
>   * Lookup the record equal to [bno, len] in the btree given by cur.
>   */
> -STATIC int				/* error */
> +static int				/* error */
>  xfs_alloc_lookup_eq(
>  	struct xfs_btree_cur	*cur,	/* btree cursor */
>  	xfs_agblock_t		bno,	/* starting block of extent */

Please have a look at what STATIC actually means, and then use the
sparse checker to confirm that these functions are already static
for a CONFIG_XFS_DEBUG=n build.

i.e. STATIC is a stack usage minimisation and debugging aid, not
something that is broken and needs fixing.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

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

end of thread, other threads:[~2015-05-05 22:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1430856999-31952-1-git-send-email-xerofoify@gmail.com>
2015-05-05 20:18 ` [PATCH 01/12] xfs:Make the function,xfs_alloc_lookup_eq static Christoph Hellwig
2015-05-05 22:12 ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox