Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755259Ab0LANUe (ORCPT ); Wed, 1 Dec 2010 08:20:34 -0500 Received: from mail-wy0-f174.google.com ([74.125.82.174]:50199 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755073Ab0LANUc (ORCPT ); Wed, 1 Dec 2010 08:20:32 -0500 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 1 Dec 2010 13:20:30 +0000 X-Google-Sender-Auth: iVjtB_NcQ-GxlgZUjk3wS8BGUNo Message-ID: Subject: Re: Problems using EXPORT_SYMBOL with lib/flex_array From: Alex Bennee To: lkml Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 907 Lines: 25 On 1 December 2010 12:05, Alex Bennee wrote: > Hi, > > I want to be able to use the flex_array functions in my module so I > wanted to EXPORT_SYMBOL the API. > > Am I being a > little dim or is there some other magic foo that needs doing to add an > export to a library function? It turns out for library code there is. If the .o is only included in the lib-y section then it will never get scanned for exported kernel symbols. Tweaking the lib/Makefile so obj-y included flex_array.o did the trick. I'm unsure if this behaviour is what is wanted? -- Alex, homepage: http://www.bennee.com/~alex/ http://www.half-llama.co.uk -- 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/