Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1339819rdb; Fri, 16 Feb 2024 12:27:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUH4ALqvP8FhjdbcI9YXVE+BU0fGQx1X0ajlZYmz/lPgVp8HtXXmuC0d6WKTUK3divxpw5n9j5zBMA4q8uQQ6a5dfbEnjiAHmKuorVczQ== X-Google-Smtp-Source: AGHT+IEymfpaIlTurmm0gp0lRIS+wHJdJxvfw4tofDbRF8Ce/dgSD8+yoVPq5BQ+mnnb3KkhYC5T X-Received: by 2002:a05:6512:2249:b0:512:86fa:bb32 with SMTP id i9-20020a056512224900b0051286fabb32mr5260413lfu.15.1708115235260; Fri, 16 Feb 2024 12:27:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708115235; cv=pass; d=google.com; s=arc-20160816; b=o405y1dexjBnYEFRovJK9C+tXk9zpSedDofPKiods7NHX1oSpX2AlYLAddz/bZdWIU T/3aKY6RkaUnQn3mYC1JHqE1xoVCGDXvDHpI2T23Zx5gc83vPMQ5xCfZc6pvW/0/m6NA tu3+eY/a/7VOZFLv3V0KDTsxoJ3oYAdYmjxvYkGSobg8ydV0vIkoD53WJwGzdT1MTB2s hzhg9reBSh+kc5DWdkSdlfdn/EUSsaP83QjfA/ICg//KhgZ4uR37mODZoEMkRnZTN2DL OyWp8ommFbiroKGXrUZnAIf2SnQBKO+oxTUiI/uOHi3REeuaaBRs6RQVXVYL/Tc0O10N oBjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=hBYPQE2laQ5eRXoK00QndbOC/9QxmeFQAri/GNmULFU=; fh=tGqEGxiVeRNsf6PgyvF/xVkF98RIg60xFwCfAg81qXg=; b=kt3TRoSkxbNP6PEIk13NO+/A7f2T7nKZYK4u8feib3wCknDo3sdvE1zv1+U2sd/ZnQ zYJLhsHcsymDI/5iFYGZacwycJk3/aB91K+98cnHl3ysotV8Q0suFQp3r9eaFeRvpOaY KCnZd+aZBLQmRsmhmLbNNbSRabHYup/5CSM3WGIyyrAtISkzyi9G270Fd78aUjFTK2mO ZhJtwSIlYghk0IcoBBbQNxaRaKquvN1FQ4TyZKRjjsoVnv0HnAfFqCikf1R5/xxaFhjB Bmm4xExzMUWmG2c+B0BetQLNtU5MJ2W1A+GyJtYNIWEh0UAwOfvE9CTOG3nm0Yj35INa J8og==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=RRxHNBPr; arc=pass (i=1 spf=pass spfdomain=efficios.com dkim=pass dkdomain=efficios.com dmarc=pass fromdomain=efficios.com); spf=pass (google.com: domain of linux-kernel+bounces-69295-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m2-20020a50ef02000000b005641cb7bb5dsi16237eds.284.2024.02.16.12.27.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 12:27:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69295-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=RRxHNBPr; arc=pass (i=1 spf=pass spfdomain=efficios.com dkim=pass dkdomain=efficios.com dmarc=pass fromdomain=efficios.com); spf=pass (google.com: domain of linux-kernel+bounces-69295-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 063C51F23724 for ; Fri, 16 Feb 2024 20:27:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 552F413A88B; Fri, 16 Feb 2024 20:27:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="RRxHNBPr" Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A671135A52; Fri, 16 Feb 2024 20:26:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=167.114.26.122 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708115222; cv=none; b=Ie/hys+z4/HpPa4V0R3I736arKK6O4zt51crsbMfamZO8CL6h2P13TFnhiNaM3SdPieJBxsyFFzwjhR182E8r1gVEPL2fjW/Adw59OVK+g3tRiY671O6masv5BbSTP4iHPKoXv4ePwic8h2ES2paefWM36DBpouZYg+hgEDr0lQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708115222; c=relaxed/simple; bh=4msKTmkJW7dgdyjzaO++qxlbe/qOaAOivOp2PggqhwA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nuNYFckE/A0BJY7dq2/p1IL/5ttXroBsJDOn92j918Bxwfmvk60Y3RxqJI+hQPS0vyjUrBqPh4iS1L+idSQv1Yf04h+lXipeKOxPprRdTlqjgC96tlpMbYeJGuMQqYYhbyUrjLj704y4bUO/07ir0N/5K2JgarSYmHqTbzrFLcw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com; spf=pass smtp.mailfrom=efficios.com; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b=RRxHNBPr; arc=none smtp.client-ip=167.114.26.122 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=efficios.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1708115218; bh=4msKTmkJW7dgdyjzaO++qxlbe/qOaAOivOp2PggqhwA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=RRxHNBPrj8LGz7Z9Jh14gfeYIc57tQQuawpAG5T+0/bLUZ2gVOxZmtqWvWJdkkAp0 YvwBEvSxw+gYg/F+iZg0/5ntvxWrGAcGbcywQ60bjIRvrKF2rYi43zWwHhIrKXF1HO jOahTC8AM3Udm230CPordzWcN6SRvRZ9FRJC89ZpSvZwzPBzsM2ymfuLZ2gykLCw/p BMQDLc5AeiN0aNA5MfhPyYVUQjhz5SG5wdzmhC0DBlTJbh5EPTQBD0d1WclweVVjVD L6FbdEkuEMTMWZJdywRnehGsoHuKKrk2PxjrMVuaDn3Gd6gm2TERJZMeXrbnxKICYw bDJwNREpp/WMQ== Received: from [172.16.0.134] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4Tc3PZ5RySzb14; Fri, 16 Feb 2024 15:26:58 -0500 (EST) Message-ID: Date: Fri, 16 Feb 2024 15:26:57 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] dax: add set_dax_nomc() and set_dax_nocache() stub helpers Content-Language: en-US To: Arnd Bergmann , Dan Williams , Andrew Morton Cc: Arnd Bergmann , kernel test robot , Matthew Wilcox , Jan Kara , Jane Chu , linux-fsdevel@vger.kernel.org, nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org References: <20240216202300.2492566-1-arnd@kernel.org> From: Mathieu Desnoyers In-Reply-To: <20240216202300.2492566-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-02-16 15:22, Arnd Bergmann wrote: > From: Arnd Bergmann > > In some randconfig builds, the IS_ERR() check appears to not get completely > eliminated, resulting in the compiler to insert references to these two > functions that cause a link failure: > > ERROR: modpost: "set_dax_nocache" [drivers/md/dm-mod.ko] undefined! > ERROR: modpost: "set_dax_nomc" [drivers/md/dm-mod.ko] undefined! > > Add more stub functions for the dax-disabled case here to make it build again. Hi Arnd, Note that this is a duplicate of: https://lore.kernel.org/lkml/20240215144633.96437-2-mathieu.desnoyers@efficios.com/ now present in Andrew's tree. The only differences are the subject, commit message and a newline between "set_dax_nomc" and "set_dax_synchronous" in your change. Thanks, Mathieu > > Fixes: d888f6b0a766 ("dm: treat alloc_dax() -EOPNOTSUPP failure as non-fatal") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202402160420.e4QKwoGO-lkp@intel.com/ > Signed-off-by: Arnd Bergmann > --- > include/linux/dax.h | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > > diff --git a/include/linux/dax.h b/include/linux/dax.h > index df2d52b8a245..4527c10016fb 100644 > --- a/include/linux/dax.h > +++ b/include/linux/dax.h > @@ -64,6 +64,9 @@ void dax_write_cache(struct dax_device *dax_dev, bool wc); > bool dax_write_cache_enabled(struct dax_device *dax_dev); > bool dax_synchronous(struct dax_device *dax_dev); > void set_dax_synchronous(struct dax_device *dax_dev); > +void set_dax_nocache(struct dax_device *dax_dev); > +void set_dax_nomc(struct dax_device *dax_dev); > + > size_t dax_recovery_write(struct dax_device *dax_dev, pgoff_t pgoff, > void *addr, size_t bytes, struct iov_iter *i); > /* > @@ -108,6 +111,12 @@ static inline bool dax_synchronous(struct dax_device *dax_dev) > static inline void set_dax_synchronous(struct dax_device *dax_dev) > { > } > +static inline void set_dax_nocache(struct dax_device *dax_dev) > +{ > +} > +static inline void set_dax_nomc(struct dax_device *dax_dev) > +{ > +} > static inline bool daxdev_mapping_supported(struct vm_area_struct *vma, > struct dax_device *dax_dev) > { > @@ -120,9 +129,6 @@ static inline size_t dax_recovery_write(struct dax_device *dax_dev, > } > #endif > > -void set_dax_nocache(struct dax_device *dax_dev); > -void set_dax_nomc(struct dax_device *dax_dev); > - > struct writeback_control; > #if defined(CONFIG_BLOCK) && defined(CONFIG_FS_DAX) > int dax_add_host(struct dax_device *dax_dev, struct gendisk *disk); -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com