From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Date: Mon, 14 Nov 2016 15:59:51 +0100 Subject: [lustre-devel] [PATCH 31/35] staging: lustre: obdclass: add export for lprocfs_stats_alloc_one() In-Reply-To: <1478799065-24841-32-git-send-email-jsimmons@infradead.org> References: <1478799065-24841-1-git-send-email-jsimmons@infradead.org> <1478799065-24841-32-git-send-email-jsimmons@infradead.org> Message-ID: <20161114145951.GA4245@kroah.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: James Simmons Cc: devel@driverdev.osuosl.org, Andreas Dilger , Oleg Drokin , Linux Kernel Mailing List , Lustre Development List , Chennaiah Palla On Thu, Nov 10, 2016 at 12:31:01PM -0500, James Simmons wrote: > From: Chennaiah Palla > > When compiling the kernel without optimization, when using GCOV, > the lprocfs_stats_alloc_one() symbol is not properly exported to > other modules and causes the ptlrpc module to fail loading with > an unknown symbol. Added EXPORT_SYMBOL(lprocfs_stats_alloc_one) > so that this works properly. No, let's fix this properly. Please get rid of lprocfs_stats_lock(), or if you _really_ need it, move it to a .c file. Having it in a .h file is just a mess, as this proves. thanks, greg k-h From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754069AbcKNO7p (ORCPT ); Mon, 14 Nov 2016 09:59:45 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:34360 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752206AbcKNO7l (ORCPT ); Mon, 14 Nov 2016 09:59:41 -0500 Date: Mon, 14 Nov 2016 15:59:51 +0100 From: Greg Kroah-Hartman To: James Simmons Cc: devel@driverdev.osuosl.org, Andreas Dilger , Oleg Drokin , Linux Kernel Mailing List , Lustre Development List , Chennaiah Palla Subject: Re: [PATCH 31/35] staging: lustre: obdclass: add export for lprocfs_stats_alloc_one() Message-ID: <20161114145951.GA4245@kroah.com> References: <1478799065-24841-1-git-send-email-jsimmons@infradead.org> <1478799065-24841-32-git-send-email-jsimmons@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1478799065-24841-32-git-send-email-jsimmons@infradead.org> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 10, 2016 at 12:31:01PM -0500, James Simmons wrote: > From: Chennaiah Palla > > When compiling the kernel without optimization, when using GCOV, > the lprocfs_stats_alloc_one() symbol is not properly exported to > other modules and causes the ptlrpc module to fail loading with > an unknown symbol. Added EXPORT_SYMBOL(lprocfs_stats_alloc_one) > so that this works properly. No, let's fix this properly. Please get rid of lprocfs_stats_lock(), or if you _really_ need it, move it to a .c file. Having it in a .h file is just a mess, as this proves. thanks, greg k-h