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 25404C05027 for ; Tue, 14 Feb 2023 13:19:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232136AbjBNNTW (ORCPT ); Tue, 14 Feb 2023 08:19:22 -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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/ -- 2.39.1