On Tue, Jun 04, 2013 at 08:45:41AM +0000, Peng, Tao wrote: > >From 369398c782c914e5f0548d5bbad22c00c6b58b6a Mon Sep 17 00:00:00 2001 > From: Peng Tao <bergwolf@xxxxxxxxx> > Date: Tue, 4 Jun 2013 15:48:17 +0800 > Subject: [PATCH] staging/lustre: fix build errors Why send me the whole patch header? If I want to apply this, I need to hand edit it. > There are several issues: > 1. set_cpus_allowed() is not available with CONFIG_CPUMASK_OFFSTACK on > 2. CONFIG_MODULES may not be defined > 3. CONFIG_MODULE_UNLOAD may not be defined You did three different things, please send 3 different patches, I can't take this as is. > diff --git a/drivers/staging/lustre/lustre/obdclass/lu_object.c b/drivers/staging/lustre/lustre/obdclass/lu_object.c > index 1cbbb6f..da459e1 100644 > --- a/drivers/staging/lustre/lustre/obdclass/lu_object.c > +++ b/drivers/staging/lustre/lustre/obdclass/lu_object.c > @@ -1351,7 +1351,9 @@ static void key_fini(struct lu_context *ctx, int index) > > LASSERT(key->lct_owner != NULL); > if ((ctx->lc_tags & LCT_NOREF) == 0) { > +#ifdef CONFIG_MODULE_UNLOAD > LINVRNT(module_refcount(key->lct_owner) > 0); > +#endif What is that? What is LINVRNT? > module_put(key->lct_owner); Are you sure this isn't racy? > } > ctx->lc_value[index] = NULL; > @@ -1933,7 +1935,11 @@ void lu_context_keys_dump(void) > i, key, key->lct_tags, > key->lct_init, key->lct_fini, key->lct_exit, > key->lct_index, atomic_read(&key->lct_used), > +#ifdef CONFIG_MODULES > key->lct_owner ? key->lct_owner->name : "", > +#else > + "", > +#endif That's a mess, why care about a module name at all? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-next" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html