Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3573314rwo; Fri, 4 Aug 2023 07:01:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEV0mOlKq3JNpKxdQ7FhgBVgaTs+bVeQFEmcv4/wxaWvxD99NH/qJ5+N+bJeFk5iRht9o+v X-Received: by 2002:a17:906:32c6:b0:997:870d:e8fa with SMTP id k6-20020a17090632c600b00997870de8famr1742022ejk.1.1691157683179; Fri, 04 Aug 2023 07:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691157683; cv=none; d=google.com; s=arc-20160816; b=zmB9u70kmEs6OosonrJrwbdH8Vf1d526SVHVelBAdvLXWlpHFqIerKxPhp81n+UOwW JTyItstcA/Kyq/jYbIg9pGrxv8h6ZWwZfd7MQjoMqoRvqHeR26YQO9BH3q0HucSu2x/I oeeNj+W+1WLgWk1mSR9BUZTZ46zVOj5t0qhG0OzTOS66F0jUaq79sYs1WjMc6tY3eUM3 7LCyRiLCqy1rlLt5PZKjX7pSS2HyiB07f0QsSLhtvIxGBj3XW+39gx8EjglP83coJCmr lmmp1PTlcLGLLm2EPyDeWg1CeML4oqxSMZ1wO/FwUhp15/EtDtS7SQUUdq56J0E0XlG4 mT+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cYA27pZMvA+titSazg3GNvI2MYsCFXpiWNrWRK5Pnvo=; fh=6Wj0pC/wdO90HRa/TKKqrPs9Z5/gv3G7Su7ahYtvJII=; b=CrRQF6MUKTo/0bAHgIfMRnzAS2hHGlsYAfrPTsCfYTKv+qqnkGDGVQnPuLvbZlgdGi bfz0AGrJ52aAWz06Q8ALoTD8ukHYHN9tSsMaU6xOjV0hqpqXkepz00NFgk5wIouxf2V9 FdWMwzs+EDDI3oNG0TbDspkpYtl4/yegVhBvfQ2+lMmjgTQ3l3DHVJXjDfweybE+oljP wLPsIHlwhdCOcBHYf7Fa+pDVhkUH0LugQKPL8VravEvIKp3F01yudNW4rZpSDRhj2vWV +Pi7UHb+n2P3qoEVlYr2oZFn2J6b6tEaYsbzBIlm326YVzk5ByNLakfqSOl55nI8uZtp 4ujw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hFerwVGz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a1709063e4200b00993325b159csi1576733eji.659.2023.08.04.07.00.57; Fri, 04 Aug 2023 07:01:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hFerwVGz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231183AbjHDN2r (ORCPT + 99 others); Fri, 4 Aug 2023 09:28:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231186AbjHDN2b (ORCPT ); Fri, 4 Aug 2023 09:28:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60A214C0C for ; Fri, 4 Aug 2023 06:28:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E31ED62007 for ; Fri, 4 Aug 2023 13:28:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE43AC433C7; Fri, 4 Aug 2023 13:28:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691155699; bh=vy0FSMSttVRRFaJRP3hWeSTw6dRwdUvifrNV1x+yK38=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hFerwVGzMJy9bZcNdyC3h/6ViXW8M7DNM7ccJPKT+m1IDRuwYkJXEs6HFeEsbIUB3 EHimMOsuTJKqSn3rSoRRN8j3WJhF7A3FI692a/FP4hOmfMwsLXML1TlK6eNyDXScsA 0meSQCB9NH/wvXcl2Md04BZ2fQnzohajz4kh7xusVjm99AfHioBXg38HSMJvwQWxFw YDjf2WvJnZCxC495dtCLd9D7D69CkN98moNtPLH6yCtZPgWPfGM0URQBkRUThJN487 rO4f0JynjCCi3NojHYnv51z3yZyx/lw2eBGWXQ3YgfazkaP15ZsKYtktmh0+QORYUw zTTZa61VnbfOQ== From: Arnd Bergmann To: Andrew Morton , Douglas Anderson , Petr Mladek Cc: Arnd Bergmann , Kees Cook , David Gow , "Liam R. Howlett" , Miguel Ojeda , Geert Uytterhoeven , Zhaoyang Huang , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] watchdog/hardlockup: simplify Kconfig selection Date: Fri, 4 Aug 2023 15:27:51 +0200 Message-Id: <20230804132800.2270896-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230804132800.2270896-1-arnd@kernel.org> References: <20230804132800.2270896-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The use of the 'imply' keyword tends to be a bad idea, as it's at best confusing to the reader but often actually doesn't do what the author intended. In this case, it seems to be used correctly, but doing the same thing using 'default' statements as we have elsewhere in the kernel is simpler and would be easier to understand by readers that are unfamiliar with the special semantics of 'imply'. Fixes: 1356d0b966e7e ("watchdog/hardlockup: make the config checks more straightforward") Signed-off-by: Arnd Bergmann --- I got confused by the 'imply' here myself and thought this had caused a build failure that turned out to be unrelated, but it might help to apply this anyway to save the next person the confusion. --- lib/Kconfig.debug | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 72177a80baddc..8cfb49b6974c8 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1056,9 +1056,6 @@ config HARDLOCKUP_DETECTOR bool "Detect Hard Lockups" depends on DEBUG_KERNEL && !S390 && !HARDLOCKUP_DETECTOR_SPARC64 depends on HAVE_HARDLOCKUP_DETECTOR_PERF || HAVE_HARDLOCKUP_DETECTOR_BUDDY || HAVE_HARDLOCKUP_DETECTOR_ARCH - imply HARDLOCKUP_DETECTOR_PERF - imply HARDLOCKUP_DETECTOR_BUDDY - imply HARDLOCKUP_DETECTOR_ARCH select LOCKUP_DETECTOR help @@ -1090,24 +1087,21 @@ config HARDLOCKUP_DETECTOR_PREFER_BUDDY for the hardlockup detector are better used for other things. config HARDLOCKUP_DETECTOR_PERF - bool + def_bool HAVE_HARDLOCKUP_DETECTOR_PERF depends on HARDLOCKUP_DETECTOR - depends on HAVE_HARDLOCKUP_DETECTOR_PERF && !HARDLOCKUP_DETECTOR_PREFER_BUDDY - depends on !HAVE_HARDLOCKUP_DETECTOR_ARCH + depends on !HARDLOCKUP_DETECTOR_PREFER_BUDDY && !HAVE_HARDLOCKUP_DETECTOR_ARCH select HARDLOCKUP_DETECTOR_COUNTS_HRTIMER config HARDLOCKUP_DETECTOR_BUDDY - bool + def_bool HAVE_HARDLOCKUP_DETECTOR_BUDDY depends on HARDLOCKUP_DETECTOR - depends on HAVE_HARDLOCKUP_DETECTOR_BUDDY depends on !HAVE_HARDLOCKUP_DETECTOR_PERF || HARDLOCKUP_DETECTOR_PREFER_BUDDY depends on !HAVE_HARDLOCKUP_DETECTOR_ARCH select HARDLOCKUP_DETECTOR_COUNTS_HRTIMER config HARDLOCKUP_DETECTOR_ARCH - bool + def_bool HAVE_HARDLOCKUP_DETECTOR_ARCH depends on HARDLOCKUP_DETECTOR - depends on HAVE_HARDLOCKUP_DETECTOR_ARCH help The arch-specific implementation of the hardlockup detector will be used. -- 2.39.2