Content-Type: multipart/mixed; boundary="===============1751292050757657105==" MIME-Version: 1.0 From: Andrew Morton To: kbuild-all@lists.01.org Subject: Re: [linux-next:master 10191/10581] mm/memremap.c:270 pagemap_range() warn: missing error code 'error' Date: Thu, 18 Feb 2021 14:29:06 -0800 Message-ID: <20210218142906.b789221a9f87eaf089034a97@linux-foundation.org> In-Reply-To: <20210215124053.GJ2087@kadam> List-Id: --===============1751292050757657105== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Mon, 15 Feb 2021 15:40:53 +0300 Dan Carpenter wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.g= it master > head: 671176b0016c80b3943cb5387312c886aba3308d > commit: 719fa3d6ddb50d3035c713c27feeae8b249eb586 [10191/10581] mm/memory_= hotplug: prevalidate the address range being added with platform > config: x86_64-randconfig-m001-20210211 (attached as .config) > compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > Reported-by: Dan Carpenter > = > smatch warnings: > mm/memremap.c:270 pagemap_range() warn: missing error code 'error' > = Thanks, I did this: --- a/mm/memremap.c~mm-memory_hotplug-prevalidate-the-address-range-being-a= dded-with-platform-fix +++ a/mm/memremap.c @@ -266,8 +266,10 @@ static int pagemap_range(struct dev_page if (error) goto err_pfn_remap; = - if (!mhp_range_allowed(range->start, range_len(range), !is_private)) + if (!mhp_range_allowed(range->start, range_len(range), !is_private)) { + error =3D -EINVAL; goto err_pfn_remap; + } = mem_hotplug_begin(); = _ --===============1751292050757657105==--