The patch titled hugetlb: remove CONFIG_SYSFS dependency has been added to the -mm tree. Its filename is hugetlb-new-sysfs-interface-hugetlb-remove-config_sysfs-dependency.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: hugetlb: remove CONFIG_SYSFS dependency From: Nishanth Aravamudan <nacc@xxxxxxxxxx> I incorrectly made the hugetlb kobject functionality depend on SYSFS, when, in fact, the kobject functions fully work even with out sysfs. Without sysfs, there is no interface to manipulate the attributes of the various hugetlb kobjects, but they still exist. Signed-off-by: Nishanth Aravamudan <nacc@xxxxxxxxxx> Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx> Cc: Mel Gorman <mel@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/hugetlb.c | 7 ------- 1 file changed, 7 deletions(-) diff -puN mm/hugetlb.c~hugetlb-new-sysfs-interface-hugetlb-remove-config_sysfs-dependency mm/hugetlb.c --- a/mm/hugetlb.c~hugetlb-new-sysfs-interface-hugetlb-remove-config_sysfs-dependency +++ a/mm/hugetlb.c @@ -1040,7 +1040,6 @@ out: return ret; } -#ifdef CONFIG_SYSFS #define HSTATE_ATTR_RO(_name) \ static struct kobj_attribute _name##_attr = __ATTR_RO(_name) @@ -1192,12 +1191,6 @@ static void __exit hugetlb_exit(void) } module_exit(hugetlb_exit); -#else -static void __init hugetlb_sysfs_init(void) -{ -} -#endif - static int __init hugetlb_init(void) { BUILD_BUG_ON(HPAGE_SHIFT == 0); _ Patches currently in -mm which might be from nacc@xxxxxxxxxx are vma-page-offset-has-no-callees-drop-it.patch mm-remove-mm_init-compilation-dependency-on-config_debug_memory_init.patch mm-create-sys-kernel-mm.patch hugetlb-factor-out-prep_new_huge_page.patch hugetlb-modular-state-for-hugetlb-page-size.patch hugetlb-modular-state-for-hugetlb-page-size-checkpatch-fixes.patch hugetlb-multiple-hstates-for-multiple-page-sizes.patch hugetlb-multiple-hstates-for-multiple-page-sizes-checkpatch-fixes.patch hugetlbfs-per-mount-huge-page-sizes.patch hugetlb-new-sysfs-interface.patch hugetlb-new-sysfs-interface-hugetlb-hang-off-of-sys-kernel-mm-rather-than-sys-kernel.patch hugetlb-new-sysfs-interface-hugetlb-remove-config_sysfs-dependency.patch hugetlb-abstract-numa-round-robin-selection.patch hugetlb-support-boot-allocate-different-sizes.patch hugetlb-printk-cleanup.patch fs-check-for-statfs-overflow.patch ixj-push-bkl-into-driver-and-wrap-ioctls.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html