From patchwork Tue Feb 14 13:18:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 56916 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2969567wrn; Tue, 14 Feb 2023 05:24:58 -0800 (PST) X-Google-Smtp-Source: AK7set+igw/Uf0a6IZD5w0ZNMY+5UBxbZHd1B19tgoYcevPC97/JrHA8LTrxYUzaw1kjLQ3a5fgG X-Received: by 2002:a17:906:6450:b0:8af:514f:1078 with SMTP id l16-20020a170906645000b008af514f1078mr2710998ejn.31.1676380968492; Tue, 14 Feb 2023 05:22:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676380968; cv=none; d=google.com; s=arc-20160816; b=Jnk0melVE/2eOlPq6TCCvUtSBrcBO+lK/9Qx3yWIEux5f5ZV40/FREyDz3hdMmkegx T8FeMyXVzE4ZgirWrx1z262g7m2Hjkg+5NlMJG6R0d+TVYgpH9oj39YqeF0kbmYb5DF4 GCwHLgt2WTC3VMdsGLAP6/0UKx95YKKgbFd06XSKzzolyAP2XBZU260J6VRllGkKdmuV rO/j2IKgP3LrTqkOFGZqZTYzvwUafrY94nEr2TP4nWOPzb8hWrsniS0u+K5kol1zSpYD +h/x0h8HpACV+wc08Ciz4fQQEbqOwRiUN8HAp9KmZg2dDfZdhjOgK04pxwuziI+XQYHB /uyA== 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=1g3hPUUWQeNvM6Sn/FkC2lerhE96mPqjJi5dq+Tj8xQ=; b=vvQWdxX/yBelRBtK6140YYOR92KTvy/NMWZ5XWoL6wo6zv+j4TGqWZPidG91IeXbrv Mlv92SHU+5DS0HcejVYypOVfjgW9w0YdBsimZUTunilnM8DzB+QxZGHWLlTkQWL6vq/I UZNToCcFR6oiIs4kq3+LsDY7jQrVpvESq+6OR1kdN+cb1LBWG9364syJ0iRr3SnKbS99 8Ty7mHKVrgllaiQ53h3phkboTlLptZCnAi1DC0GbHIhL26NiEzsr/Isrq6B4IV4RB754 2h3SCSPm58EdCUm4aYk4hD11e3OAdbOH0rcqqhn6uY0X/KTTrCbm7lo1rtN6qlRVTNz9 YHEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qc+jzWzT; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id az13-20020a170907904d00b008b1353af732si715986ejc.729.2023.02.14.05.22.25; Tue, 14 Feb 2023 05:22:48 -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=@kernel.org header.s=k20201202 header.b=qc+jzWzT; 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 S231878AbjBNNTV (ORCPT + 99 others); Tue, 14 Feb 2023 08:19:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231888AbjBNNTU (ORCPT ); Tue, 14 Feb 2023 08:19:20 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 907001C7E8 for ; Tue, 14 Feb 2023 05:19:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 14A03B81BF8 for ; Tue, 14 Feb 2023 13:19:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49279C4339B; Tue, 14 Feb 2023 13:19:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676380755; bh=DjZEIWt/JDSinUR024YMqT4RmixcO7Jc89zHxsl9vjM=; h=From:To:Cc:Subject:Date:From; b=qc+jzWzTrUcCoMjNx4FJpt11LJqUVnu/yCb3Bcgxr+KPdyzV2ALtpziwyD41sVRLD uYnOxhy2NE2lnwdermG4uwxLx0I6gx1vBA/BUQUEf4b9tHdRet7OD7BTXVacAmjLvR swVgK6dGlRaGISJksEEGBDkM+HN/DZNt5K7F/1ipJoY2TmUdgP8aAqeAOe6TsACrOT vm4aqvSac0VHKn+TWChxp5myYS3dix+FlsplwpHiRuhhhBjRvvzgRnA8qCnHGGLHJu dVhCN9pdQIZg+9SQ0FqyMhkFSlzWSRhIkOLMcAxKxcb/D+mzesJQfv2PUm3YQIEmqT qxJsKMAssByIA== From: Arnd Bergmann To: Jonathan Cameron , Dan Williams , Dave Jiang Cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH] dax/hmem: build hmem device support as module if possible Date: Tue, 14 Feb 2023 14:18:47 +0100 Message-Id: <20230214131913.1431969-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757812850879399607?= X-GMAIL-MSGID: =?utf-8?q?1757812850879399607?= From: Arnd Bergmann When device_hmem.o is enabled but dax itself is a loadable module, the dax_hmem support fails to link because Kbuild never compiles built-in code under drivers/dax: ERROR: modpost: "walk_hmem_resources" [drivers/dax/hmem/dax_hmem.ko] undefined! Make sure that drivers/dax is entered for compiling built-in code even with CONFIG_DAX=m. Fixes: 7dab174e2e27 ("dax/hmem: Move hmem device registration to dax_hmem.ko") Signed-off-by: Arnd Bergmann --- drivers/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/Makefile b/drivers/Makefile index 148ccfc2b5fe..20b118dca999 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -76,7 +76,7 @@ obj-$(CONFIG_FB_INTEL) += video/fbdev/intelfb/ obj-$(CONFIG_PARPORT) += parport/ obj-y += base/ block/ misc/ mfd/ nfc/ obj-$(CONFIG_LIBNVDIMM) += nvdimm/ -obj-$(CONFIG_DAX) += dax/ +obj-y += dax/ obj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/ obj-$(CONFIG_NUBUS) += nubus/ obj-y += cxl/