* [PATCH] SUNRPC auth: add context argument to shrinker callback
@ 2010-07-21 7:41 Marc Kleine-Budde
2010-07-22 0:13 ` Dave Chinner
0 siblings, 1 reply; 3+ messages in thread
From: Marc Kleine-Budde @ 2010-07-21 7:41 UTC (permalink / raw)
To: linux-nfs
Cc: Dave Chinner, linux-kernel, Trond Myklebust, J. Bruce Fields,
Marc Kleine-Budde
Hello,
I found this regression in the current mainline tree.
Please review,
Marc
---------8<--------8<--------8<--------8<--------8<--------8<--------8<-------
This patch fixes a regression introduced with commit
7f8275d0d660c146de6ee3017e1e2e594c49e820, the signature of the shrinker
callback has been changes, but this file has not been modified.
This results in the following compiler warning:
net/sunrpc/auth.c:586: warning: initialization from incompatible pointer
type
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
net/sunrpc/auth.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c
index 73affb8..8dc47f1 100644
--- a/net/sunrpc/auth.c
+++ b/net/sunrpc/auth.c
@@ -267,7 +267,7 @@ rpcauth_prune_expired(struct list_head *free, int nr_to_scan)
* Run memory cache shrinker.
*/
static int
-rpcauth_cache_shrinker(int nr_to_scan, gfp_t gfp_mask)
+rpcauth_cache_shrinker(struct shrinker *shrink, int nr_to_scan, gfp_t gfp_mask)
{
LIST_HEAD(free);
int res;
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] SUNRPC auth: add context argument to shrinker callback
2010-07-21 7:41 [PATCH] SUNRPC auth: add context argument to shrinker callback Marc Kleine-Budde
@ 2010-07-22 0:13 ` Dave Chinner
2010-07-22 6:47 ` Marc Kleine-Budde
0 siblings, 1 reply; 3+ messages in thread
From: Dave Chinner @ 2010-07-22 0:13 UTC (permalink / raw)
To: Marc Kleine-Budde
Cc: linux-nfs, linux-kernel, Trond Myklebust, J. Bruce Fields
On Wed, Jul 21, 2010 at 09:41:35AM +0200, Marc Kleine-Budde wrote:
> Hello,
>
> I found this regression in the current mainline tree.
The fix is already in Linus' current git tree (commit
567c7b0edec0200c5c6613f07c3d3b4034fdc836 ("mm: add context argument to
shrinker callback to remaining shrinkers"). Thanks for catching
it, anyway.
Cheers,
Dave.
--
Dave Chinner
dchinner@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] SUNRPC auth: add context argument to shrinker callback
2010-07-22 0:13 ` Dave Chinner
@ 2010-07-22 6:47 ` Marc Kleine-Budde
0 siblings, 0 replies; 3+ messages in thread
From: Marc Kleine-Budde @ 2010-07-22 6:47 UTC (permalink / raw)
To: Dave Chinner; +Cc: linux-nfs, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1000 bytes --]
Dave Chinner wrote:
> On Wed, Jul 21, 2010 at 09:41:35AM +0200, Marc Kleine-Budde wrote:
>> Hello,
>>
>> I found this regression in the current mainline tree.
>
> The fix is already in Linus' current git tree (commit
> 567c7b0edec0200c5c6613f07c3d3b4034fdc836 ("mm: add context argument to
> shrinker callback to remaining shrinkers"). Thanks for catching
> it, anyway.
After pulling yesterday I noticed the warning was gone.
BTW: Do you know Coccinelle[1]? It's a semantic patch tool, this is
exactly what you need if you change function signatures, etc....
Wolfram has written a very good lwn article[2] about it.
cheers,
Marc
[1] http://coccinelle.lip6.fr/
[2] http://lwn.net/Articles/380835/
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-22 6:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-21 7:41 [PATCH] SUNRPC auth: add context argument to shrinker callback Marc Kleine-Budde
2010-07-22 0:13 ` Dave Chinner
2010-07-22 6:47 ` Marc Kleine-Budde
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).