From patchwork Thu Feb 9 01:08:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 54655 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp44469wrn; Wed, 8 Feb 2023 17:09:19 -0800 (PST) X-Google-Smtp-Source: AK7set+rc9WwLHh0ADSawmO80xcmKbkG8PWosxYqzoLFWI7Oo0EIDbTfi7GiJgd/DMLoW7x401tn X-Received: by 2002:a17:906:5307:b0:88f:1255:59c with SMTP id h7-20020a170906530700b0088f1255059cmr7449344ejo.1.1675904959161; Wed, 08 Feb 2023 17:09:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675904959; cv=none; d=google.com; s=arc-20160816; b=fD+UGVZI1msVldZWnp0rsPSa860M+8KbUvMEc9v1gvD7QaZrS36LqH6jrgDuNwefWb xX+t4zmq+eRofYNUZFFevkf7vRzqNpoojW0rQfIvWyMkEPMcIkqQJX2u0blw76LA6vzd a4UyV9ofhw6mh6wA+0YUE15TrmBLr6fV/SDpDvhQCzm2HCMF7XA+pUb5JdGWAMWlcsfH sZs9nhjc7EoV4CiTJ7JELctktw5x7gsKYUiLFNswiaEEj20Yj1Q1/DrTP6ihozQtJ2A4 sdak+RoQ5lKe66np7NUwMUki8gz7AUIG6YPFgcNWdadt1D8E1d0WJAZRH72s0RZgn3gu Fzqw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=5K1CVLOH6vblYnAX1/k8Qvq/szlxJFbUumk2+BfdvHs=; b=XYgkAXXtiRKZf+eKExAA9OX+mscHoYYWjz5/O7VpEJfeupIdbUJeeCiZy0xtBKZxML 6KrjT63EuTpJBBOyYuN1wD1BnJ8MiG1CXE/pskVnP2/GU4NPpOv0IgR47IjwNYo5Ve2l dBPkFBnh29iBDnRMqPXZLHcJ6T3pEFKmHic5sT0PEKunHVYMaYoLYTTQhHepB7M9+kMT 5Pg74XMOGTrgTMY8jQYSe4MkQQAruhmXpsptapc8fOIrz0ZVKgQxmRTkbeFk/0c/YTtr o6EznRKEfmDCBygA4Of3znZD7uRCXAxiJ1AwrKJNgowlbqXScL/LboQp6FHGRpejNdTY fN/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=dfD3o+D1; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id az13-20020a170907904d00b0089612a87ab7si510808ejc.286.2023.02.08.17.08.56; Wed, 08 Feb 2023 17:09:19 -0800 (PST) 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=@infradead.org header.s=bombadil.20210309 header.b=dfD3o+D1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231137AbjBIBIb (ORCPT + 99 others); Wed, 8 Feb 2023 20:08:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230487AbjBIBIa (ORCPT ); Wed, 8 Feb 2023 20:08:30 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC07D35B4; Wed, 8 Feb 2023 17:08:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=5K1CVLOH6vblYnAX1/k8Qvq/szlxJFbUumk2+BfdvHs=; b=dfD3o+D1JCPzQt0XL96idc7cXk 2fS2uWx4eav8Drq5bwvnilPuN3/E4+bW/c2/gdCgoQm541ldHyVFjJRC+j83QlT/MifRG4P0t3tFa doArJxcOAN2Y4eYz5DFNIZBlGxnRLgrfUxrKMJgYM5GsYmzyMoBzHtXYCRaPFXlQhMXxC2AlYqn/H axF7BvVPQ9ZSY5F+x8KeGHUm8Yu3Un+DutTFxl+th0MDybKwHqN6xX2hWCWC9CQhKaIPTP4DmzmFr TaFAVyA3Nf92HHlH/XnXaw6QJPgS2zWnnkm3cyjPYqRNeTOoU88imZ4OjFxcvWx4Tpt03uNU0ZFUx k4rfVnHQ==; Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPvQI-00HMlO-Ib; Thu, 09 Feb 2023 01:08:26 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Geert Uytterhoeven , Greg Ungerer , linux-m68k@lists.linux-m68k.org, uclinux-dev@uclinux.org Subject: [PATCH] m68k: /proc/hardware depends on PROC_FS Date: Wed, 8 Feb 2023 17:08:25 -0800 Message-Id: <20230209010825.24136-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757313718338793387?= X-GMAIL-MSGID: =?utf-8?q?1757313718338793387?= When CONFIG_PROC_FS is not set, there is a build error for an unused function. Make PROC_HARDWARE depend on PROC_FS to prevent this error. In file included from ../arch/m68k/kernel/setup.c:3: ../arch/m68k/kernel/setup_mm.c:477:12: error: 'hardware_proc_show' defined but not used [-Werror=unused-function] 477 | static int hardware_proc_show(struct seq_file *m, void *v) | ^~~~~~~~~~~~~~~~~~ Fixes: 66d857b08b8c ("m68k: merge m68k and m68knommu arch directories") # v3.0 Signed-off-by: Randy Dunlap Cc: Geert Uytterhoeven Cc: Greg Ungerer Cc: linux-m68k@lists.linux-m68k.org Cc: uclinux-dev@uclinux.org Reviewed-by: Geert Uytterhoeven --- arch/m68k/Kconfig.devices | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/m68k/Kconfig.devices b/arch/m68k/Kconfig.devices --- a/arch/m68k/Kconfig.devices +++ b/arch/m68k/Kconfig.devices @@ -18,6 +18,7 @@ config HEARTBEAT # We have a dedicated heartbeat LED. :-) config PROC_HARDWARE + depends on PROC_FS bool "/proc/hardware support" help Say Y here to support the /proc/hardware file, which gives you