From: Anshuman Khandual <anshuman.khandual@arm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org, "David S. Miller" <davem@davemloft.net>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>,
x86@kernel.org, sparclinux@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] fs/Kconfig: Enable HUGETLBFS only if ARCH_SUPPORTS_HUGETLBFS
Date: Mon, 14 Jul 2025 08:05:31 +0530 [thread overview]
Message-ID: <f86c9ec6-d82d-4d0c-80b2-504f7c6da22e@arm.com> (raw)
In-Reply-To: <20250712161549.499ec62de664904bd86ffa90@linux-foundation.org>
On 13/07/25 4:45 AM, Andrew Morton wrote:
> On Fri, 11 Jul 2025 15:59:34 +0530 Anshuman Khandual <anshuman.khandual@arm.com> wrote:
>
>> Enable HUGETLBFS only when platform subscrbes via ARCH_SUPPORTS_HUGETLBFS.
>> Hence select ARCH_SUPPORTS_HUGETLBFS on existing x86 and sparc for their
>> continuing HUGETLBFS support.
>
> Looks nice.
>
>> While here also just drop existing 'BROKEN' dependency.
>
> Why?
>
> What is BROKEN for, anyway? I don't recall having dealt with it
> before. It predates kernel git and we forgot to document it.
The original first commit had added 'BROKEN', although currently there
are no explanations about it in the tree. But looks like this might be
used for feature gating (selectively disabling features) etc. But I am
not much aware about it.
commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (tag: v2.6.12-rc2)
Author: Linus Torvalds <torvalds@ppc970.osdl.org>
Date: Sat Apr 16 15:20:36 2005 -0700
Linux-2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
BROKEN still gets used for multiple config options.
git grep "depends on BROKEN"
arch/m68k/Kconfig.devices: depends on BROKEN && (Q40 || SUN3X)
arch/mips/loongson64/Kconfig: depends on BROKEN
arch/parisc/Kconfig: depends on BROKEN
arch/powerpc/lib/crypto/Kconfig: depends on BROKEN # Needs to be fixed to work in softirq context
drivers/edac/Kconfig: depends on BROKEN
drivers/edac/Kconfig: depends on BROKEN
drivers/gpu/drm/Kconfig.debug: depends on BROKEN
drivers/gpu/drm/amd/display/Kconfig: depends on BROKEN || !CC_IS_CLANG || ARM64 || LOONGARCH || RISCV || SPARC64 || X86_64
drivers/gpu/drm/i915/Kconfig.debug: depends on BROKEN
drivers/net/wireless/intel/iwlwifi/Kconfig: depends on BROKEN
drivers/s390/block/Kconfig: depends on BROKEN
drivers/staging/gpib/TODO:- fix device drivers that are broken ("depends on BROKEN" in Kconfig)
drivers/tty/Kconfig: depends on BROKEN
drivers/virtio/Kconfig: depends on BROKEN
init/Kconfig: depends on BROKEN || !SMP
init/Kconfig: depends on BROKEN
lib/Kconfig.ubsan: depends on BROKEN
git grep "&& BROKEN"
arch/parisc/Kconfig: depends on PA8X00 && BROKEN && !KFENCE
arch/parisc/Kconfig: depends on PA8X00 && BROKEN && !KFENCE
arch/powerpc/platforms/amigaone/Kconfig: depends on PPC_BOOK3S_32 && BROKEN_ON_SMP
arch/powerpc/platforms/embedded6xx/Kconfig: depends on PPC_BOOK3S_32 && BROKEN_ON_SMP
arch/sh/Kconfig.debug: depends on DEBUG_KERNEL && BROKEN
drivers/gpu/drm/Kconfig.debug: depends on DRM && EXPERT && BROKEN
drivers/i2c/busses/Kconfig: depends on ISA && HAS_IOPORT_MAP && BROKEN_ON_SMP
drivers/leds/Kconfig: depends on LEDS_CLASS && BROKEN
drivers/net/wireless/broadcom/b43/Kconfig: depends on B43 && BROKEN
drivers/net/wireless/broadcom/b43/Kconfig: depends on B43 && B43_BCMA && BROKEN
drivers/pps/generators/Kconfig: depends on PARPORT && BROKEN
drivers/staging/greybus/Kconfig: depends on MEDIA_SUPPORT && LEDS_CLASS_FLASH && BROKEN
drivers/video/fbdev/Kconfig: depends on FB && ((AMIGA && BROKEN) || PCI)
fs/quota/Kconfig: depends on QUOTA && BROKEN
fs/smb/client/Kconfig: depends on CIFS && BROKEN
net/ax25/Kconfig: depends on AX25_DAMA_SLAVE && BROKEN
git grep "|| BROKEN"
arch/sh/Kconfig.debug: depends on DEBUG_KERNEL && (MMU || BROKEN) && !PAGE_SIZE_64KB
drivers/misc/Kconfig: depends on X86_64 || BROKEN
drivers/net/ethernet/faraday/Kconfig: depends on !64BIT || BROKEN
drivers/net/ethernet/faraday/Kconfig: depends on !64BIT || BROKEN
drivers/net/ethernet/intel/Kconfig: depends on PCI && (!SPARC32 || BROKEN)
drivers/usb/gadget/udc/Kconfig: depends on !64BIT || BROKEN
kernel/power/Kconfig: if ARCH_WANTS_FREEZER_CONTROL || BROKEN
next prev parent reply other threads:[~2025-07-14 2:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-11 10:29 [PATCH] fs/Kconfig: Enable HUGETLBFS only if ARCH_SUPPORTS_HUGETLBFS Anshuman Khandual
2025-07-12 23:15 ` Andrew Morton
2025-07-14 2:35 ` Anshuman Khandual [this message]
2025-07-14 9:49 ` Borislav Petkov
2025-07-15 0:31 ` Andrew Morton
2025-07-29 15:50 ` Christophe Leroy
2025-07-29 15:52 ` Christophe Leroy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f86c9ec6-d82d-4d0c-80b2-504f7c6da22e@arm.com \
--to=anshuman.khandual@arm.com \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@redhat.com \
--cc=sparclinux@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).