From mboxrd@z Thu Jan 1 00:00:00 1970 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 F190AC04A95 for ; Sat, 22 Oct 2022 23:34:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229910AbiJVXeC (ORCPT ); Sat, 22 Oct 2022 19:34:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbiJVXd6 (ORCPT ); Sat, 22 Oct 2022 19:33:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B5B971BDD for ; Sat, 22 Oct 2022 16:33:58 -0700 (PDT) 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 BC16960B47 for ; 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) _