Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2209343iof; Tue, 7 Jun 2022 23:16:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzatl40wwkODrPgmTK93Mxd142mmM44+598VCb0Q4VQ7Kdz1NS1hoYBBOFk9tD/MDuBla0o X-Received: by 2002:a63:188:0:b0:3fd:f14a:b130 with SMTP id 130-20020a630188000000b003fdf14ab130mr7667436pgb.461.1654668996375; Tue, 07 Jun 2022 23:16:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654668996; cv=none; d=google.com; s=arc-20160816; b=XQuDA/2/kQFZzbq2cN64mBf2uc47YhAM4M9zGFykXJoi+McUTvUEbcwrdabjVIpZJP sznU2wvEV3We24dDirSyHFtoSMtlIXolNVoPMC5g5tW0GZZ498oFsCsWdrT6wwLFtYEL 3AMMJwCx2A7Ly+c54ZRm2CAWvkCTkXM6MqMHnx3e6ciJpGWw87WPQ3Y7DkuxPvoov2eR fbYMgNzDTBUIbpZWyn0GdQjTyi7D1rAxzspCch57570fkwzckjhdVoV9GwuBmMZ93Xnr R1QskxNqOcIoZLeYnHSmCi0xfLfuiOaxfv9wNYXJn+QyGaze19yDMI/M7nTekM0lrk3n /QNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=z7IMobaP3MpDVpqBQCJNsmovPxTLnmZJWupssLbjIDc=; b=WCPJiDL2DyuBUz2flThdi+pYlmvZ7TgtlE96RtoCR/4O5y28uztNU7mOuZoY/18GVq NeOgaJ2/YZWdHdjSXFUQSgn7iQxYiXrILAF+IiKHi1Tzvz0RMrzxDI3ftg5sq3e2c4EO GfLAU54LjScjk7fgYJ+ONshOzbbJtH5aj7aEkdJCAGHYsc3rsXX2Pu2QSg/KNYyby1x9 MKhWfk6zc1JMCgoCMtAPc/eah+wfBgnDZnI4ACJabfIvqazoNt1ZLnG692+dtyUn6vgp 5R97bPmdfjADS811sDHpNnQcb3XLkJfUSkcMQEQxQxaiixX98O15MWT/bA/ERue7Z1xR Bpqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=k+UwKDEV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bf20-20020a17090b0b1400b001e285f0889esi28731625pjb.35.2022.06.07.23.16.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:16:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=k+UwKDEV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5BA832FE607; Tue, 7 Jun 2022 22:37:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384731AbiFHB5N (ORCPT + 99 others); Tue, 7 Jun 2022 21:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1588393AbiFGXyh (ORCPT ); Tue, 7 Jun 2022 19:54:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D5A93887; Tue, 7 Jun 2022 16:05:48 -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 CA6E8616C3; Tue, 7 Jun 2022 23:05:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E53A3C3411C; Tue, 7 Jun 2022 23:05:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1654643147; bh=L2/9wdu7Khtn1jgRd/gRWs85FKV7GMEfu2Bx/poJDFY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=k+UwKDEV/MRQwkXB5GEKRtm2Di/gHC2LRSO6nQViEuk/6dD3hr7MvP/0vj0zqLVWv 9JNVf6cy17/X+St9S61aR7O50aZcShX/CFBiouhtQyH7lXP1P09Z8/WH425ooZ8oVC qOwAf9x8kdCgV042PxoFEupjtD+JDsP+Rk+VMujE= Date: Tue, 7 Jun 2022 16:05:46 -0700 From: Andrew Morton To: kernel test robot Cc: Shiyang Ruan , kbuild-all@lists.01.org, Linux Memory Management List , "Darrick J. Wong" , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [linux-next:master 728/1207] fs/xfs/xfs_file.c:1266:31: sparse: sparse: incorrect type in return expression (different base types) Message-Id: <20220607160546.2a0a826d29bec858ca402720@linux-foundation.org> In-Reply-To: <202206071511.FI7WLdZo-lkp@intel.com> References: <202206071511.FI7WLdZo-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 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Jun 2022 15:09:18 +0800 kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 73d0e32571a0786151eb72634f1a4c5891166176 > commit: d5f5b32dee7c09e3152cbbce45c73f0b1ea7d94c [728/1207] xfs: support CoW in fsdax mode > config: x86_64-rhel-8.3-kselftests (https://download.01.org/0day-ci/archive/20220607/202206071511.FI7WLdZo-lkp@intel.com/config) > compiler: gcc-11 (Debian 11.3.0-1) 11.3.0 > reproduce: > # apt-get install sparse > # sparse version: v0.6.4-18-g56afb504-dirty > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d5f5b32dee7c09e3152cbbce45c73f0b1ea7d94c > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout d5f5b32dee7c09e3152cbbce45c73f0b1ea7d94c > # save the config file > mkdir build_dir && cp config build_dir/.config > make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/xfs/ > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > > > sparse warnings: (new ones prefixed by >>) > >> fs/xfs/xfs_file.c:1266:31: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted vm_fault_t @@ > fs/xfs/xfs_file.c:1266:31: sparse: expected int > fs/xfs/xfs_file.c:1266:31: sparse: got restricted vm_fault_t > >> fs/xfs/xfs_file.c:1260:1: sparse: sparse: symbol 'xfs_dax_fault' was not declared. Should it be static? > >> fs/xfs/xfs_file.c:1314:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted vm_fault_t [usertype] ret @@ got int @@ > fs/xfs/xfs_file.c:1314:21: sparse: expected restricted vm_fault_t [usertype] ret > fs/xfs/xfs_file.c:1314:21: sparse: got int > > Please review and possibly fold the followup patch. Well yes, the followup patch (https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/xfs-support-cow-in-fsdax-mode-fix.patch) will most definitely be folded. Can you suggest how this can be communicated to the robot in order to suppress this notification? A Fixes: won't work, as neither of these patches have yet been promoted to a "stable" state. Their hashes will change.