From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753059AbYENJ5y (ORCPT ); Wed, 14 May 2008 05:57:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756650AbYENJ53 (ORCPT ); Wed, 14 May 2008 05:57:29 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:60023 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753059AbYENJ52 (ORCPT ); Wed, 14 May 2008 05:57:28 -0400 Date: Wed, 14 May 2008 02:56:12 -0700 From: Andrew Morton To: Benjamin Thery Cc: "Eric W. Biederman" , Randy Dunlap , Greg KH , Al Viro , Greg KH , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Daniel Lezcano , Pavel Emelyanov , "Serge E. Hallyn" , Tejun Heo Subject: Re: [PATCH] Fix kobject_rename and !CONFIG_SYSFS v4 Message-Id: <20080514025612.914a05fe.akpm@linux-foundation.org> In-Reply-To: <482AB615.5030000@bull.net> References: <20080512220232.GA16914@kroah.com> <4829A4BD.3020007@bull.net> <20080513164438.GA31563@kroah.com> <20080513201602.GA31578@kroah.com> <24291087.1210713535895.JavaMail.oracle@acsmt301.oracle.com> <20080513220304.b2f5a588.akpm@linux-foundation.org> <20080514022059.2fc883b1.akpm@linux-foundation.org> <482AB615.5030000@bull.net> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 May 2008 11:51:17 +0200 Benjamin Thery wrote: > > uninlining sysfs_rename_dir() would be a sensible solution. > > It is inlined only when CONFIG_SYSFS=n. When sysfs is enabled > sysfs_rename_dir() is compiled from fs/sysfs/dir.c > > Uninlining it will require us to find an appropriate .c file to put it > in: we can't put it in fs/sysfs/dir.c. It is not built if CONFIG_SYSFS > is disabled. Well yes, that's the problem. I stuck it in lib/kobject.c but ugh. I guess we could make it a macro and quickly run away.