From patchwork Sat Oct 22 22:40:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 13016078 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AF25C04A95 for ; Sat, 22 Oct 2022 22:40:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 422408E0002; Sat, 22 Oct 2022 18:40:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3D22A8E0001; Sat, 22 Oct 2022 18:40:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2C14A8E0002; Sat, 22 Oct 2022 18:40:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 1FF518E0001 for ; Sat, 22 Oct 2022 18:40:54 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id ABF6CAAC44 for ; Sat, 22 Oct 2022 22:40:53 +0000 (UTC) X-FDA: 80050056786.24.31B9AE9 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by imf25.hostedemail.com (Postfix) with ESMTP id 7C9C8A0007 for ; Sat, 22 Oct 2022 22:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666478452; x=1698014452; h=subject:from:to:cc:date:message-id:mime-version: content-transfer-encoding; bh=Pst2uhR2xvg/Znkt6nPeUuXcQVUI/8XVcItJooMuWHw=; b=BD+UYLI1OoDvkiREo7Jrjv9r4401DzDpViQlo/43ByTRcdE/PLQc2xmf HhhLAjlHbGQgP20SBz2nf5dL+Gi4MsXqJw+7apxG0a+Kbz8w8LqLJfTUO eM1VQyHv/78oH0Rm6J3S2ByN9Cl4k8LZ85siDSnce4l4Kpfw9DcLzPtXK PhNfmKlrwOhFz8xdapBPr4PZfs3J2IZMqZ2119Kt8gqVNJeF05p0eEqS4 IMuodoJXiibTifHdMp+MQQuw1zK6gQ6KOgJd3kBWCGoMMAiIserVf52WE zOpMTzewpVh+A6ORfgLruu0naETfZJloKrvQwLH5zBzJ5JwLd/BlA57Bk w==; X-IronPort-AV: E=McAfee;i="6500,9779,10508"; a="308899178" X-IronPort-AV: E=Sophos;i="5.95,206,1661842800"; d="scan'208";a="308899178" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2022 15:40:39 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10508"; a="876060641" X-IronPort-AV: E=Sophos;i="5.95,206,1661842800"; d="scan'208";a="876060641" Received: from rhabibul-mobl.amr.corp.intel.com (HELO dwillia2-xfh.jf.intel.com) ([10.212.235.98]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2022 15:40:38 -0700 Subject: [mm-unstable PATCH] mm/memremap: fix pgmap_request_folio() stub From: Dan Williams To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, nvdimm@lists.linux.dev Date: Sat, 22 Oct 2022 15:40:38 -0700 Message-ID: <166647843799.1783549.13495269957811737203.stgit@dwillia2-xfh.jf.intel.com> User-Agent: StGit/0.18-3-g996c MIME-Version: 1.0 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666478453; a=rsa-sha256; cv=none; b=fHKiovRY4o2gfQfVELijGmhjQL017/ofHLNp709V1ie8NHnnXdHUQYxbvu6GBKCLLm4gwy s33lQmuwAoxV5PErSZUr444Zp7Mn5LslWkha/Y/xcVmrHWaUaGFcqIjhV1+pHc9btGnYaV wAKVDCuibkvxAhRsbZE49VbgLCsWFQs= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=BD+UYLI1; spf=pass (imf25.hostedemail.com: domain of dan.j.williams@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=dan.j.williams@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666478453; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=eqIQCsU6JY2BteI5YmSQ6NTy5c26+b30O5J2uPCpiME=; b=eTmjGZ+hc1hgj24RhAKYv9j9/YuQa9qlK3vu2ouQOB13soDlQ2FGvMaWc12mdPrcNDwDbt NMQ7mb1bf3hEXhpyj1wcaUw2363MUyQYJSWJC4iB3X8gcTU2dG7A2m7SDNbPJHFlfoJ0Br iMNuKzTRXRXOC7A1mfnhicB1vdbMlGk= Authentication-Results: imf25.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=BD+UYLI1; spf=pass (imf25.hostedemail.com: domain of dan.j.williams@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=dan.j.williams@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: 48uod1uhhtgsu41fxdjurmaojczpwday X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 7C9C8A0007 X-Rspam-User: X-HE-Tag: 1666478452-976507 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 0day robot reports: include/linux/memremap.h:258:9: warning: expression which evaluates to zero treated as a null pointer constant of type 'struct folio *' ...because I failed to update the pgmap_request_folio() return value in the CONFIG_ZONE_DEVICE=n case when changing the calling convention. Fixes: e634e7e18f3b ("mm/memremap: Introduce pgmap_request_folio() using pgmap offsets") Reported-by: kernel test robot Signed-off-by: Dan Williams --- include/linux/memremap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/memremap.h b/include/linux/memremap.h index f11f827883bb..4a6eadf0d1d8 100644 --- a/include/linux/memremap.h +++ b/include/linux/memremap.h @@ -255,7 +255,7 @@ static inline struct dev_pagemap *get_dev_pagemap(unsigned long pfn, static inline struct folio *pgmap_request_folio(struct dev_pagemap *pgmap, pgoff_t pgmap_offset, int order) { - return false; + return NULL; } static inline bool pgmap_pfn_valid(struct dev_pagemap *pgmap, unsigned long pfn)