Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5566720pxb; Mon, 14 Feb 2022 02:07:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOkOhi/SOcxb6RJD1fpgEtmX+hVDLONm85pQYV03ptGpqKDIkWVF5nZ/JE4BXK34Pv4q8N X-Received: by 2002:a17:902:c101:: with SMTP id 1mr13468904pli.6.1644833278959; Mon, 14 Feb 2022 02:07:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644833278; cv=none; d=google.com; s=arc-20160816; b=g4nk+t7jOZDcvkjkmRII28cLahoxt+TR907p4Fb68sFZQzk2eXyhdB58MI4sFf4Lem k8ZrVEMPQc96ih7v1MiqJnBzfHASP1JFV9t9njEtenPuU0tQJOEgBI4nUNVWPnCMBFCH rn3UTdJSF6iVQ6myMbRT3GeH96ybKceiiF4t5yTqtmg/AT1uzOYHMKhRWU25JWcrTzry XLRJO/nyBCuxY3TGP3OFrO1PxBAZhsuaCORnUuTLUaq9QlF3MRFx1yBpSdGisly/lK4S 5m06lcCAzbxLPL5c7/7XDiXBtD1J2gloLOIrv/J39ENJNAXcJharhTqjyXgDUaC7DpCs DsgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=K/qlvh3fU+HPPXGHfZFRqQ4SwI9QT3pLKxCMPLEcgfU=; b=gIIdHDss8D4J+7+t1ZUjEGRgxpEGSLPQy91ZzwLjtUrGn9DryEdGs32re8MoYUZ3Mm fREeGbqqWvLihadScjm/9uiax6ZUAZT4jmSmcJ+DAFa5tLV62/6st3oujzCBRaQuRtyJ Z7QawfD7INMLU4u0XHLuwFkv725QMz4m3tfY+5YkCNV2LtDZFiJhVTzH30GFhv/sx/J2 8Hu3CNT/McDidQDssnwb0rSC9Q1mi2HZaw7lHfRtPzc5AeFfb13+elveZohzqVgjItj+ hGpBKR1g+NrMpXM7c+TVpVM4X84pAAkxNIXsafgCRQUeEdBB9QQbjhPj9ZVP/orwz3Iw G/5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7si13153642plc.206.2022.02.14.02.07.43; Mon, 14 Feb 2022 02:07:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240290AbiBNFN2 (ORCPT + 99 others); Mon, 14 Feb 2022 00:13:28 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:58498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233236AbiBNFN1 (ORCPT ); Mon, 14 Feb 2022 00:13:27 -0500 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65F804DF4B for ; Sun, 13 Feb 2022 21:13:20 -0800 (PST) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJTfm-001eJX-FG; Mon, 14 Feb 2022 05:13:14 +0000 Date: Mon, 14 Feb 2022 05:13:14 +0000 From: Al Viro To: Alexander Aring Cc: kernel test robot , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, David Teigland , cluster-devel Subject: Re: fs/dlm/midcomms.c:913:22: sparse: sparse: restricted __le32 degrades to integer Message-ID: References: <202201221028.YKA8kSdm-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Sat, Jan 22, 2022 at 01:28:20PM -0500, Alexander Aring wrote: > Hi, > > On Fri, Jan 21, 2022 at 9:45 PM kernel test robot wrote: > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > head: 9b57f458985742bd1c585f4c7f36d04634ce1143 > > commit: 658bd576f95ed597e519cdadf1c86ac87c17aea5 fs: dlm: move version conversion to compile time > > date: 3 months ago > > config: x86_64-rhel-8.3-kselftests (https://download.01.org/0day-ci/archive/20220122/202201221028.YKA8kSdm-lkp@intel.com/config) > > compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 > > reproduce: > > # apt-get install sparse > > # sparse version: v0.6.4-dirty > > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=658bd576f95ed597e519cdadf1c86ac87c17aea5 > > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > git fetch --no-tags linus master > > git checkout 658bd576f95ed597e519cdadf1c86ac87c17aea5 > > # save the config file to linux build tree > > mkdir build_dir > > make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash > > > > If you fix the issue, kindly add following tag as appropriate > > I have it on my list but it isn't easy to make sparse happy here... > this is the second time the robot reported this issue. Is there a way > to turn the robot off in that case? > > Maybe some human who reads that knows the answer? Frankly, these "convert in place" functions (dlm_message_in(), etc.) are asking for trouble. IOW, it's a genuinely fishy code. Saner approach is to keep them in little-endian through the entire thing, but it's quite a bit of massage.