Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754497AbbKMNDj (ORCPT ); Fri, 13 Nov 2015 08:03:39 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:32888 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753827AbbKMNDi (ORCPT ); Fri, 13 Nov 2015 08:03:38 -0500 Date: Fri, 13 Nov 2015 18:33:31 +0530 From: Sudip Mukherjee To: Shivani Bhardwaj Cc: Greg KH , devel@driverdev.osuosl.org, "Dilger, Andreas" , linux-kernel@vger.kernel.org, "Drokin, Oleg" , kbuild-all@01.org, lustre-devel@lists.lustre.org Subject: Re: [PATCH] staging: lustre: cl_lock: Remove cl_lock_lockdep_init wrapper Message-ID: <20151113130331.GB18741@sudip-pc> References: <1447237306-46901-1-git-send-email-shivanib134@gmail.com> <201511111859.mIw4mICa%fengguang.wu@intel.com> <20151111173100.GA20846@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1292 Lines: 37 On Wed, Nov 11, 2015 at 11:03:34PM +0530, Shivani Bhardwaj wrote: > On Wed, Nov 11, 2015 at 11:01 PM, Greg KH wrote: > > On Wed, Nov 11, 2015 at 10:51:36PM +0530, Shivani Bhardwaj wrote: > >> On Wed, Nov 11, 2015 at 4:24 PM, kbuild test robot wrote: > >> > >> I'm not getting any of these errors at compilation. I've checked > >> thrice. Could you please tell what am I doing wrong so that I can > >> avoid introducing errors in future patches? > > > > Use the .config provided, odds are you have lockdep enabled. > > Thanks Greg. > I tried that. Still no errors. Any other suggestion? while removing the wrapper you missed that cl_lock_lockdep_init() is: static void cl_lock_lockdep_init(struct cl_lock *lock) { lockdep_set_class_and_name(lock, &cl_lock_key, "EXT"); } if CONFIG_LOCKDEP is defined. and if CONFIG_LOCKDEP is not defined then: static void cl_lock_lockdep_init(struct cl_lock *lock) {} your patch is using lockdep_set_class_and_name() in both cases. regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/