From nobody Thu May 7 22:25:43 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC7A2C433F5 for ; Tue, 17 May 2022 14:17:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348689AbiEQORE (ORCPT ); Tue, 17 May 2022 10:17:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348698AbiEQOQ4 (ORCPT ); Tue, 17 May 2022 10:16:56 -0400 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE175275FA for ; Tue, 17 May 2022 07:16:55 -0700 (PDT) Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 3173B3FFC8 for ; Tue, 17 May 2022 14:16:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1652797014; bh=DJeT9IyGMKuIxu/NYXP6jKmFYzxZ1VoA48dGzoOnvhY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QoBOrcRK5IXkGDbZkg42tC5BgP82UrPKj6T3BBTEMXh+BoLmjMBmhGjRv8YI/PBli HkfcYp66hh6OSmXb0P4i3uGBLR/KiWXDyMZ9DjQSiTJhBy+BqfiBgtq9ZV4c+Nl1Ox xLWmnCsdmGN2yAYw8Kh0ZSO7iGZwkYWbSgNljZDZqYxga1rFmsNR3YlCUK1Lyr3YZH dl1aI+5dZPoQU4mJsLeeZeNsfcBuHV5gjdSsR2M+M0NMQuUoN2MovT0OqHUDeL3IPt 2IO1kqolbbEzFsygRvVG5tpWqniVyhh5xvT5lo3Wn/88skEiSMvPeFfHvO4G4pw1dX XGaxMOusQH2hw== Received: by mail-ed1-f69.google.com with SMTP id n7-20020a05640206c700b0042aaeb9d702so4379659edy.19 for ; Tue, 17 May 2022 07:16:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DJeT9IyGMKuIxu/NYXP6jKmFYzxZ1VoA48dGzoOnvhY=; b=Eptk6vrMatSZ88A/PCdZIepW18m/+GVr1OI9Rifw3FqLcI0Fqi/2eNNNsq2wyQomxy hE7Mn34LmFMjfqgBakbmzHq9G0j1eR2KkIhyJ+qFWvYFDaU2piesTDD2CkjGE2AVsjWs X+iKicoxzrIwj0DM8KEIJ9QSBnWlKrGEV0GjcXNoQXAh/0Yp7TlUdqAxuwnFpPkW7ajf c1rlNDLeInarGd6y1yNBWDFKWFEYrnebcqiKfNz0RhCm6Hj4K7flHk1TJ60KWYuMKSAF +PLfVErDiP47Qkx5LURVYbM6DX2IXNEfrTJU5qVQAMhhr/Ii+DmK97mQLJG6cfu09udQ 7KRA== X-Gm-Message-State: AOAM533ruKhmjIlvkTLYklObZ8bcQysv90TzF5nZFtfUw0zc0EPOgsxb VMOllW7ASbBtQ0PJRufBMc7zjgcgEf6NY3buY70Y7OvYWZk0s1cMFTUQ0o9q1lg532i/LH2e+cP HWs8mC6UZRqQ1cScXXVP3OsVIY/00v34FYYLYKXIxVw== X-Received: by 2002:aa7:cdd7:0:b0:42a:bbb2:84e5 with SMTP id h23-20020aa7cdd7000000b0042abbb284e5mr7834231edw.91.1652797013404; Tue, 17 May 2022 07:16:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUqApBfnAdMdEFlriYn5A5ZDLCsI42m2I9XvRdzhQFLTaTYaIMZc3iVYXrq0tJV5WXgGvsRw== X-Received: by 2002:aa7:cdd7:0:b0:42a:bbb2:84e5 with SMTP id h23-20020aa7cdd7000000b0042abbb284e5mr7834213edw.91.1652797013187; Tue, 17 May 2022 07:16:53 -0700 (PDT) Received: from gollum.fritz.box ([194.191.244.86]) by smtp.gmail.com with ESMTPSA id bo3-20020a170906d04300b006f3ef214dcesm1065035ejb.52.2022.05.17.07.16.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 07:16:52 -0700 (PDT) From: Juerg Haefliger X-Google-Original-From: Juerg Haefliger To: catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Juerg Haefliger Subject: [PATCH 1/2] arm64: Kconfig: Fix indentation and add comments Date: Tue, 17 May 2022 16:16:47 +0200 Message-Id: <20220517141648.331976-2-juergh@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220517141648.331976-1-juergh@canonical.com> References: <20220517141648.331976-1-juergh@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The convention for indentation seems to be a single tab. Help text is further indented by an additional two whitespaces. Fix the lines that violate these rules. While add it, add trailing comments to endif and endmenu statements for better readability. Signed-off-by: Juerg Haefliger --- arch/arm64/Kconfig | 95 +++++++++++++++++++++++----------------------- 1 file changed, 47 insertions(+), 48 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 20ea89d9ac2f..e0ed1629199a 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -262,31 +262,31 @@ config ARM64_CONT_PMD_SHIFT default 4 =20 config ARCH_MMAP_RND_BITS_MIN - default 14 if ARM64_64K_PAGES - default 16 if ARM64_16K_PAGES - default 18 + default 14 if ARM64_64K_PAGES + default 16 if ARM64_16K_PAGES + default 18 =20 # max bits determined by the following formula: # VA_BITS - PAGE_SHIFT - 3 config ARCH_MMAP_RND_BITS_MAX - default 19 if ARM64_VA_BITS=3D36 - default 24 if ARM64_VA_BITS=3D39 - default 27 if ARM64_VA_BITS=3D42 - default 30 if ARM64_VA_BITS=3D47 - default 29 if ARM64_VA_BITS=3D48 && ARM64_64K_PAGES - default 31 if ARM64_VA_BITS=3D48 && ARM64_16K_PAGES - default 33 if ARM64_VA_BITS=3D48 - default 14 if ARM64_64K_PAGES - default 16 if ARM64_16K_PAGES - default 18 + default 19 if ARM64_VA_BITS=3D36 + default 24 if ARM64_VA_BITS=3D39 + default 27 if ARM64_VA_BITS=3D42 + default 30 if ARM64_VA_BITS=3D47 + default 29 if ARM64_VA_BITS=3D48 && ARM64_64K_PAGES + default 31 if ARM64_VA_BITS=3D48 && ARM64_16K_PAGES + default 33 if ARM64_VA_BITS=3D48 + default 14 if ARM64_64K_PAGES + default 16 if ARM64_16K_PAGES + default 18 =20 config ARCH_MMAP_RND_COMPAT_BITS_MIN - default 7 if ARM64_64K_PAGES - default 9 if ARM64_16K_PAGES - default 11 + default 7 if ARM64_64K_PAGES + default 9 if ARM64_16K_PAGES + default 11 =20 config ARCH_MMAP_RND_COMPAT_BITS_MAX - default 16 + default 16 =20 config NO_IOPORT_MAP def_bool y if !PCI @@ -313,7 +313,7 @@ config GENERIC_HWEIGHT def_bool y =20 config GENERIC_CSUM - def_bool y + def_bool y =20 config GENERIC_CALIBRATE_DELAY def_bool y @@ -1046,8 +1046,7 @@ config SOCIONEXT_SYNQUACER_PREITS =20 If unsure, say Y. =20 -endmenu - +endmenu # "ARM errata workarounds via the alternatives framework" =20 choice prompt "Page size" @@ -1575,9 +1574,9 @@ config SETEND_EMULATION be unexpected results in the applications. =20 If unsure, say Y -endif +endif # ARMV8_DEPRECATED =20 -endif +endif # COMPAT =20 menu "ARMv8.1 architectural features" =20 @@ -1602,15 +1601,15 @@ config ARM64_PAN bool "Enable support for Privileged Access Never (PAN)" default y help - Privileged Access Never (PAN; part of the ARMv8.1 Extensions) - prevents the kernel or hypervisor from accessing user-space (EL0) - memory directly. + Privileged Access Never (PAN; part of the ARMv8.1 Extensions) + prevents the kernel or hypervisor from accessing user-space (EL0) + memory directly. =20 - Choosing this option will cause any unprotected (not using - copy_to_user et al) memory access to fail with a permission fault. + Choosing this option will cause any unprotected (not using + copy_to_user et al) memory access to fail with a permission fault. =20 - The feature is detected at runtime, and will remain as a 'nop' - instruction if the cpu does not implement the feature. + The feature is detected at runtime, and will remain as a 'nop' + instruction if the cpu does not implement the feature. =20 config AS_HAS_LDAPR def_bool $(as-instr,.arch_extension rcpc) @@ -1638,15 +1637,15 @@ config ARM64_USE_LSE_ATOMICS built with binutils >=3D 2.25 in order for the new instructions to be used. =20 -endmenu +endmenu # "ARMv8.1 architectural features" =20 menu "ARMv8.2 architectural features" =20 config AS_HAS_ARMV8_2 - def_bool $(cc-option,-Wa$(comma)-march=3Darmv8.2-a) + def_bool $(cc-option,-Wa$(comma)-march=3Darmv8.2-a) =20 config AS_HAS_SHA3 - def_bool $(as-instr,.arch armv8.2-a+sha3) + def_bool $(as-instr,.arch armv8.2-a+sha3) =20 config ARM64_PMEM bool "Enable support for persistent memory" @@ -1690,7 +1689,7 @@ config ARM64_CNP at runtime, and does not affect PEs that do not implement this feature. =20 -endmenu +endmenu # "ARMv8.2 architectural features" =20 menu "ARMv8.3 architectural features" =20 @@ -1753,7 +1752,7 @@ config AS_HAS_PAC config AS_HAS_CFI_NEGATE_RA_STATE def_bool $(as-instr,.cfi_startproc\n.cfi_negate_ra_state\n.cfi_endproc\n) =20 -endmenu +endmenu # "ARMv8.3 architectural features" =20 menu "ARMv8.4 architectural features" =20 @@ -1794,7 +1793,7 @@ config ARM64_TLB_RANGE The feature introduces new assembly instructions, and they were support when binutils >=3D 2.30. =20 -endmenu +endmenu # "ARMv8.4 architectural features" =20 menu "ARMv8.5 architectural features" =20 @@ -1901,7 +1900,7 @@ config ARM64_MTE =20 Documentation/arm64/memory-tagging-extension.rst. =20 -endmenu +endmenu # "ARMv8.5 architectural features" =20 menu "ARMv8.7 architectural features" =20 @@ -1910,12 +1909,12 @@ config ARM64_EPAN default y depends on ARM64_PAN help - Enhanced Privileged Access Never (EPAN) allows Privileged - Access Never to be used with Execute-only mappings. + Enhanced Privileged Access Never (EPAN) allows Privileged + Access Never to be used with Execute-only mappings. =20 - The feature is detected at runtime, and will remain disabled - if the cpu does not implement the feature. -endmenu + The feature is detected at runtime, and will remain disabled + if the cpu does not implement the feature. +endmenu # "ARMv8.7 architectural features" =20 config ARM64_SVE bool "ARM Scalable Vector Extension support" @@ -1991,7 +1990,7 @@ config ARM64_DEBUG_PRIORITY_MASKING the validity of ICC_PMR_EL1 when calling concerned functions. =20 If unsure, say N -endif +endif # ARM64_PSEUDO_NMI =20 config RELOCATABLE bool "Build a relocatable kernel image" if EXPERT @@ -2050,7 +2049,7 @@ config STACKPROTECTOR_PER_TASK def_bool y depends on STACKPROTECTOR && CC_HAVE_STACKPROTECTOR_SYSREG =20 -endmenu +endmenu # "Kernel Features" =20 menu "Boot options" =20 @@ -2114,7 +2113,7 @@ config EFI help This option provides support for runtime services provided by UEFI firmware (such as non-volatile variables, realtime - clock, and platform reset). A UEFI stub is also provided to + clock, and platform reset). A UEFI stub is also provided to allow the kernel to be booted as an EFI application. This is only useful on systems that have UEFI firmware. =20 @@ -2129,7 +2128,7 @@ config DMI However, even with this option, the resultant kernel should continue to boot on existing non-UEFI platforms. =20 -endmenu +endmenu # "Boot options" =20 config SYSVIPC_COMPAT def_bool y @@ -2150,7 +2149,7 @@ config ARCH_HIBERNATION_HEADER config ARCH_SUSPEND_POSSIBLE def_bool y =20 -endmenu +endmenu # "Power management options" =20 menu "CPU Power Management" =20 @@ -2158,7 +2157,7 @@ source "drivers/cpuidle/Kconfig" =20 source "drivers/cpufreq/Kconfig" =20 -endmenu +endmenu # "CPU Power Management" =20 source "drivers/acpi/Kconfig" =20 @@ -2166,4 +2165,4 @@ source "arch/arm64/kvm/Kconfig" =20 if CRYPTO source "arch/arm64/crypto/Kconfig" -endif +endif # CRYPTO --=20 2.32.0 From nobody Thu May 7 22:25:43 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9036AC433F5 for ; Tue, 17 May 2022 14:17:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348703AbiEQORM (ORCPT ); Tue, 17 May 2022 10:17:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348678AbiEQORB (ORCPT ); Tue, 17 May 2022 10:17:01 -0400 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0209027B31 for ; Tue, 17 May 2022 07:16:57 -0700 (PDT) Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id CE16C3FE02 for ; Tue, 17 May 2022 14:16:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1652797014; bh=jd0VeL2AHDg2LJ77yGx5/LqXbrOfozyrVLrb5aNQFDs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Madh/6q7XAypFTWAb+klSABjy42yRADR1g+VPB6PqR/AXJ4ZfRoKUbGsfWJy6eH/a 33eVJfsj1FlKIpvULtS3fRv/JpU3n94iz/r2RXost2eTMXtg+VsJWyCGGR6O8mjTHz pG19I84vCDTR60NYPo4Gpwb57Wn+Zco0neu2UHuuOVrwB1X0UQ2wBXjZIKOcbEgYzc HI5wu9dQifCXc495yuybSdN3ERpb/RRIPI0YNAwu7XIicbktV8jwvrg1UDif9pOCbe 01UsTdplLyc2s1wt2SL4GRIxRAQK+q2fIoWHHcXckz6NYbs7boNlOWv351PNYjDWjJ vGa6a2lhG6H4Q== Received: by mail-ed1-f69.google.com with SMTP id s9-20020aa7c549000000b0042ab6ab62f0so3468711edr.14 for ; Tue, 17 May 2022 07:16:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jd0VeL2AHDg2LJ77yGx5/LqXbrOfozyrVLrb5aNQFDs=; b=eLKn/IUe/kkNpdfUigDVPKu/demaxQYikimshl6r/nfYiR0qs8QoTYzkopg2/oHPg7 zN+rf9O+kMfcPNbzoHToykkpW/JCNZ8ZKdos3DGI0cUxfs8BtBqCz9eyqhIYHXD+vQ+0 X6r4YN9oaH0mzOIMv9pOklBsYXyS77B9aBLIx4kB2r6hT93qYuRCjAE816ahrGTlgubi ZIv1bRT3I+G4/fTfvvTCEe138dBbyqxiak7dltQO5VpBAtXEwifEJtAlXfvg9GKr2Y9W voMjpggr5VAliNcoO1fRQkkr3COKx7O9CiLuTzU7hw4UX1e3oy+699fdT4lYrYoclWkT 6+Bg== X-Gm-Message-State: AOAM532t0KH5V+6nz5jCNBqgvVX4PsM4aYn5UTSOUNOZxZAwIm5hzI5+ KrvBpXDjk5enlQa49rIdTDdci0wryZq/ugsuZMLs+l26lMLozT5NT2/zJjwPCnsjZqDKy36R5qz jIBSUWerrhb4kWFW56gNHK1ggmlj1kckS+vpAc821Ow== X-Received: by 2002:a05:6402:50d1:b0:428:1473:d173 with SMTP id h17-20020a05640250d100b004281473d173mr19483717edb.37.1652797014195; Tue, 17 May 2022 07:16:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVGQQllvDVL22W9vm1yn30AQX8KZPUMac9s5RQYuLreNrjRJi+7Mn3AHtfZi39PUoez11LEg== X-Received: by 2002:a05:6402:50d1:b0:428:1473:d173 with SMTP id h17-20020a05640250d100b004281473d173mr19483697edb.37.1652797014057; Tue, 17 May 2022 07:16:54 -0700 (PDT) Received: from gollum.fritz.box ([194.191.244.86]) by smtp.gmail.com with ESMTPSA id bo3-20020a170906d04300b006f3ef214dcesm1065035ejb.52.2022.05.17.07.16.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 07:16:53 -0700 (PDT) From: Juerg Haefliger X-Google-Original-From: Juerg Haefliger To: catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Juerg Haefliger Subject: [PATCH 2/2] arm64: Kconfig.platforms: Add comments Date: Tue, 17 May 2022 16:16:48 +0200 Message-Id: <20220517141648.331976-3-juergh@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220517141648.331976-1-juergh@canonical.com> References: <20220517141648.331976-1-juergh@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add trailing comments to endmenu statements for better readability. Signed-off-by: Juerg Haefliger --- arch/arm64/Kconfig.platforms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 30b123cde02c..de9a18d3026f 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -325,4 +325,4 @@ config ARCH_ZYNQMP help This enables support for Xilinx ZynqMP Family =20 -endmenu +endmenu # "Platform selection" --=20 2.32.0