lkml.org 
[lkml]   [2008]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] xfs: expose no-op xfs_put_perag()
Denys Vlasenko wrote:
> Hi David,
>
> Inline function xfs_put_perag() in fs/xfs/xfs_mount.h is a no-op.
>
> This patch converts it to no-op macro.
>
> As a result, gcc will emit warning about unused variables,
> parameters and so on not in this function, but in its callers,
> which is more useful.
>
> This patch, together with previous ones, has already resulted
> in more unused params discovered and warned about by gcc.
>
> There is no object code size difference from this change.

Denys, thanks for going through all this; I didn't mean to discount the
work with the stackcheck reports. I've done a lot of similar xfs
pruning in the past, and every little bit helps. It is still hard to
find significant reductions in the critical callchains though!

If the xfs codebase gets to the point where things are fairly well
cleaned up it might be nice to add the gcc warning to the makefiles, add
unused attributes to the vfs ops vectors as needed, and keep it clean
from this point on...

Thanks,

-Eric


\
 
 \ /
  Last update: 2008-04-22 16:11    [W:0.146 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site