Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 13 Jan 2003 22:33:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 13 Jan 2003 22:33:16 -0500 Received: from fmr01.intel.com ([192.55.52.18]:8140 "EHLO hermes.fm.intel.com") by vger.kernel.org with ESMTP id ; Mon, 13 Jan 2003 22:33:10 -0500 Subject: [TRIVIAL PATCH] fix and export kset_find_obj From: Louis Zhuang To: Patrick Mochel Cc: LKML , FITHML Content-Type: text/plain Organization: Intel Crop. Message-Id: <1042515724.3951.5.camel@hawk.sh.intel.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 (1.2.1-2) Date: 14 Jan 2003 11:42:05 +0800 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Dear Mochel, I suggest to export kset_find_obj. Pls apply. ;-) -- Yours truly, Louis Zhuang --------------- Fault Injection Test Harness Project BK tree: http://fault-injection.bkbits.net/linux-2.5 Home Page: http://sf.net/projects/fault-injection You can import this changeset into BK by piping this whole message to: '| bk receive [path to repository]' or apply the patch as usual. =================================================================== ChangeSet@1.970, 2003-01-14 11:34:48+08:00, louis@hawk.sh.intel.com trivial fix and export kset_find_obj include/linux/kobject.h | 2 +- lib/kobject.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff -Nru a/include/linux/kobject.h b/include/linux/kobject.h --- a/include/linux/kobject.h Tue Jan 14 11:36:05 2003 +++ b/include/linux/kobject.h Tue Jan 14 11:36:05 2003 @@ -87,7 +87,7 @@ } -extern struct kobject * kset_find_obj(struct kset *, char *); +extern struct kobject * kset_find_obj(struct kset *, const char *); struct subsystem { diff -Nru a/lib/kobject.c b/lib/kobject.c --- a/lib/kobject.c Tue Jan 14 11:36:05 2003 +++ b/lib/kobject.c Tue Jan 14 11:36:05 2003 @@ -295,7 +295,7 @@ * looking for a matching kobject. Return object if found. */ -struct kobject * kset_find_obj(struct kset * kset, char * name) +struct kobject * kset_find_obj(struct kset * kset, const char * name) { struct list_head * entry; struct kobject * ret = NULL; @@ -386,6 +386,8 @@ EXPORT_SYMBOL(kobject_unregister); EXPORT_SYMBOL(kobject_get); EXPORT_SYMBOL(kobject_put); + +EXPORT_SYMBOL(kset_find_obj); EXPORT_SYMBOL(subsystem_init); EXPORT_SYMBOL(subsystem_register); =================================================================== This BitKeeper patch contains the following changesets: 1.970 ## Wrapped with gzip_uu ## begin 664 bkpatch3959 M'XL(`*6%(SX``\55:VO;,!3]'/V*"_W2Q^);EI=6%%YN9JTR,<95!9F9ZT,T>,$_VTYRXVEC9.(.%KNJH1SU^-V)_ M7^FH-SG\=';\<4+(:`3[F2HO]:FV,!H1:ZJ%*I)Z5]FL,*5G*U76,VU5NV5S M-[5AB,R]D@8*:Z M;(K\8C!UF^C8>G%'G#K)G')#%`W*H>0-9VE*&2J%88B)3-?)]!#KKP-<"-9@ MZ/OL$0)Y&1?SQ.4L+^?+N^79*I6@010A-MSW*4L%7H2!#(20:ZG\!_6>%&VD M#,.@"^N:!6UT7Y7Q<]!:IIPZCD(XIAQ%%V`:/,@O?2J_%/KT+?-[H_,)]*OK M[G-Y'*^3_`71/A@B4'+4M7II=55";:MY[(CST9*.[.%4N0/H;:>H5@'```` ` end - 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/