Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2293439pxa; Fri, 7 Aug 2020 07:51:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxRzqF5jMiTz9bORs71ijClNCaazUwnoxJCnr5MXCyQIt0e0UUHGUSWaRwKx6UVjyYXKjM X-Received: by 2002:a17:906:4f0f:: with SMTP id t15mr9353818eju.337.1596811869437; Fri, 07 Aug 2020 07:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596811869; cv=none; d=google.com; s=arc-20160816; b=qmXAygA78EyVXAHfawf3jsqtHB+fAZgLtVuJQDN6waJj/Ri3/vFt+KbzFGrdcuEGu9 QhuXMyhAvhRD/k1ENZHyFDhdtYg+ZPlaM9DWZ32VfcaP7JlnNVEjI/vlJrTTkwgz5Qgv 7rB23Bl83G4nWzw5qcpRLVgnCJHBBGKIKETecLPvmQlYMmdcp46YRDC83HGqsj/RpKsY wJ01fKCYielwMQuW671gETGQdSkdR1lRf1ZebjGYEQj8Wmgy8xY0h6Otd7OAa7FxFX1B FE3JvyHANqG74G8+I+FE5UorxgImm41L/jrHwvEV8sI6lYwz8jVvBTa+N9JRgz4vVE0/ GF4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DRdKyhPGIi9crruXXUy170YawLE0IdKbv+gBvEcp4AM=; b=t1RAiawiU8sdpbrt9U5kKy6tPZF9XmgjwiWSf++GWS0EVj79xiisdTiPPzUDj/c95C PmqNzX44NPdBld+WcQw3ra3GyW3DLcBdhQI7IxeT1dnKS5heiqnTSXvouY7wEydypDDD ifdebpX/hF/0vuaimd50n/6XSUBiANl9j0R+L7ifJlTbH4RZSeFwXBRfgyRTzNwiYRsL SzlJg54HE6S4hP6+GV3Hs4lE49mZFfbAs1fgjkHQejD8eRj0AjXBVk9zDkFQSoam8dLs LFn8s2W7hQTlT2TY13O9xda7djK1YZVRD8VnBJfisDoWsUxgT/lg4aqR9tUkNbA0NT7j ZSRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=NiJoSnAT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a23si5290652edx.271.2020.08.07.07.50.45; Fri, 07 Aug 2020 07:51:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=NiJoSnAT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726226AbgHGOs0 (ORCPT + 99 others); Fri, 7 Aug 2020 10:48:26 -0400 Received: from sonic316-54.consmr.mail.gq1.yahoo.com ([98.137.69.30]:35434 "EHLO sonic316-54.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbgHGOs0 (ORCPT ); Fri, 7 Aug 2020 10:48:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1596811704; bh=DRdKyhPGIi9crruXXUy170YawLE0IdKbv+gBvEcp4AM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=NiJoSnATbMRLRjHMinPnle5lIzryqrmYBEmotq/eMoeImwyOzfzZ5Mgpnhm0DB4pAyZUB29p60D5QIiIu+c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gOxPG5B9bZJ6CchZTBcg QJ87vEunZ__1YQJ9aXj7fHHOHaxxoeaC1IRtkhxnD5X9o3Dr2FN6XzovSGLFkFp8qOh_JKxhIY9d sn4w.IyuQnLqKv.OZIC9maMN8QzM2Pnnd.FrmTYmJqDisDq8jgjOsB5V6NO5QtvQIPrzlk2_9Oca jFFTy20BBxbJaZziUietLqtnCj783DwdXJghbC2Ct737B859knEIjaCA0TBAnu4FY3xDpn1.le0L rclBjVEHuCGZ4Pdqc6bOG9611dxdX5h3zH6MA7ZsLrIP7LyiUkwa7XKfBXPueyYA4Oj5Fh1SipoU xOG6mm18qqDduABQ0xqUDNWHHipG03owWXyJiqPCcwgWjFy3vJaLFAwCHM5MIYC5XqacLs5Y31Mr rJgbknL1LOFKntvlsQXbSfHjsxsG13zaxmupCo0xWCGzlVrhgh2Z3U4BKpfF4vzqFjSemE9e6PNt XwE_Pw_.fuMjlaozA35gMnoizdeAsJDpYJZSf_Q88QDDgF0y50qi1wWrXVPTB5vpi213WnCwVskD HXGR3DSZp7uBtuJM93vstqeL_GanKnCmiiX40F0x2IYz13Gj.8pXSIs6F.F9Gp15wfE_z7o1jfEC zRojRcu_83f29TR5kl4hA8yEUgCiu9olKM037eC2vNabmcPdS_YQx0tAdz1wp_RiPYs4UROtuXQ7 9CA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Fri, 7 Aug 2020 14:48:24 +0000 Received: by smtp420.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 24b5f98ba496c054505f6f72607bc988; Fri, 07 Aug 2020 14:48:21 +0000 (UTC) Date: Fri, 7 Aug 2020 22:48:12 +0800 From: Gao Xiang To: kernel test robot Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: fs/erofs/zdata.c:198:22: sparse: sparse: non size-preserving integer to pointer cast Message-ID: <20200807144801.GA30258@hsiangkao-HP-ZHAN-66-Pro-G1> References: <202008072005.Myrby1lg%lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202008072005.Myrby1lg%lkp@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Mailer: WebService/1.1.16436 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Content-Length: 2035 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Aug 07, 2020 at 08:08:10PM +0800, kernel test robot wrote: > Hi Gao, > > First bad commit (maybe != root cause): > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 86cfccb66937dd6cbf26ed619958b9e587e6a115 > commit: 47e4937a4a7ca4184fd282791dfee76c6799966a erofs: move erofs out of staging > date: 12 months ago > config: s390-randconfig-s032-20200807 (attached as .config) > compiler: s390-linux-gcc (GCC) 9.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # apt-get install sparse > # sparse version: v0.6.2-118-ge1578773-dirty > git checkout 47e4937a4a7ca4184fd282791dfee76c6799966a > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=s390 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > > sparse warnings: (new ones prefixed by >>) > > >> fs/erofs/zdata.c:198:22: sparse: sparse: non size-preserving integer to pointer cast > fs/erofs/zdata.c:282:22: sparse: sparse: non size-preserving integer to pointer cast > fs/erofs/zdata.c:1094:24: sparse: sparse: non size-preserving integer to pointer cast I don't think these are valid warnings. All these three lines are using cmpxchg struct page * (which is equivalent to unsigned long in these cmpxchg macros) and nothing special at all in my opinion (Especially the last two lines). +198 if (!cmpxchg_relaxed(pages, NULL, tagptr_cast_ptr(t))) +282 if (!cmpxchg(clt->compressedpages++, NULL, page)) +1094 if (oldpage != cmpxchg(&pcl->compressed_pages[nr], oldpage, page)) { btw, recently sparse warnings quite confuse me (p.s. they're all on alpha/s390/sparc archs and relate to cmpxchg/xchg by accident), I have no idea what happened with sparse. Thanks, Gao Xiang