From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gnuweeb.org (Postfix) with ESMTPS id 4E436812EC for ; Sat, 22 Oct 2022 23:33:58 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (1024-bit key; unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=Wyktu+8e; dkim-atps=neutral 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 dfw.source.kernel.org (Postfix) with ESMTPS id B181360B38; Sat, 22 Oct 2022 23:33:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD99DC433C1; Sat, 22 Oct 2022 23:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1666481637; bh=bpQqDWzunN8eH2mdrn4dttE6VdzEvMNlZ5h2Yxe82Lk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Wyktu+8ed652g2aGSJzZ80/OBE3c0vCBNkHUsDhcf7hPBj9EiusXoN4JL/v3uH92y wNyCKQtFk4FZdgSGwLb6g0hXiMzOZBMpCyvdiIjDWF/EcbylBrnXUE2B66LYEFhb2C ra5u638TwPSJfBS7/4d6Q67E/SSGuwDT18Fu3sRA= Date: Sat, 22 Oct 2022 16:33:56 -0700 From: Andrew Morton To: kernel test robot Cc: Dan Williams , llvm@lists.linux.dev, kbuild-all@lists.01.org, Ammar Faizi , GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Linux Memory Management List Subject: Re: [ammarfaizi2-block:akpm/mm/mm-unstable 146/162] include/linux/memremap.h:258:9: error: expression which evaluates to zero treated as a null pointer constant of type 'struct folio *' Message-Id: <20221022163356.f5e08eeefe66fc71845be861@linux-foundation.org> In-Reply-To: <202210221343.e50d98Ht-lkp@intel.com> References: <202210221343.e50d98Ht-lkp@intel.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: On Sat, 22 Oct 2022 13:27:19 +0800 kernel test robot wrote: > In file included from include/linux/mm.h:31: > >> include/linux/memremap.h:258:9: error: expression which evaluates to zero treated as a null pointer constant of type 'struct folio *' [-Werror,-Wnon-literal-null-conversion] > return false; Thanks. Doh. --- a/include/linux/memremap.h~mm-memremap-introduce-pgmap_request_folio-using-pgmap-offsets-fix +++ a/include/linux/memremap.h @@ -255,7 +255,7 @@ static inline struct dev_pagemap *get_de 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) _