Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2323217ybk; Sun, 17 May 2020 17:41:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5Vch4asIoagofY8R4IQmeGxRPE2u5v3jIFo9a+Z2l9OHyDhQGnKCP5pnAl7+59Sq8b0fH X-Received: by 2002:a50:8165:: with SMTP id 92mr11797469edc.263.1589762495766; Sun, 17 May 2020 17:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589762495; cv=none; d=google.com; s=arc-20160816; b=PkjVS8rwYbdjOYxX18DDM6G/PGl616FDKRkCj9tc7ys5NZimOfENCzmHZYvt351koO 6LlotWqKm7e4fhdB24w5wUSEKRuf47XWb20PxeZrGb3WQIdft6dgekBJAVnfhSb91Glo m9jRIzAnS5nAdHdPNf7OT2u/u9UHadEsNWD5V/13d0OMrU5RTMKgbUAKfMLM7xwpQFFD 610dz3NgyCCEPD/r2JzEOPVXDOMxM0AwsKk9GjIpqRrNED4h5rvN+FkQhNiVs4Ah9IXu cyzzubeNzLJ5WycHeDxO2Ej5FxG180pxXInaFOPPakJJ9ZDuPKJffn3HLDESqiabWmTb JKFw== 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:ironport-sdr:ironport-sdr; bh=RdXiNGGJZk8oP4AWTzkazWCcnXC6NOVd2V2+jU4gUAA=; b=d9HPrrcIcnoJjpahzGVp8h6DeNmgmQmZ9GWdpMKYoYzGZ5bDabiLAPDOeUmfraQRZn d7Pkc2Kri9qiBozfoOhUbOkzu930aDmjTiso1JlGoGoYRfjxKeGE0ZwiLxopb7ToToYl 2ZgKRLv0IK+pxsmpdvohBTecdV87zEvG9MaQAwzdTDZbhJt2KYi/eiCLaEXFhgCkOaZl FCZmJn9dl4d6HZ+Cx/5laQmJvfqBIXEvCuuY/4v4NqjwqUcVr+Y7G9yh8St0mmGNlOUj IK7JJwgH93237PdfF5YrssLVx+0kNvUTEny4K0WSuyDJEKoLnhgESeNsPNIBrUZYl+wP TFYQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o5si2086485edz.312.2020.05.17.17.41.00; Sun, 17 May 2020 17:41:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726726AbgERAfm (ORCPT + 99 others); Sun, 17 May 2020 20:35:42 -0400 Received: from mga05.intel.com ([192.55.52.43]:57991 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726675AbgERAfl (ORCPT ); Sun, 17 May 2020 20:35:41 -0400 IronPort-SDR: GUNjLEvbktaBOcgsW3shhbdbt27my5hD9hhFL1tSHDgSpEwCsP7g6oGOjZFFv/G31VX04KckN5 haMdhfYegl0w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2020 17:35:41 -0700 IronPort-SDR: NOguugL+eLy+5DTJF5CAdWogARdgcPfmnpRPmLq5S2lKx1qlqZhXbmYI8MNAx5Uhz0TrIi5Xyc zqlC6c4b9XWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,405,1583222400"; d="scan'208";a="373226041" Received: from pl-dbox.sh.intel.com (HELO intel.com) ([10.239.159.39]) by fmsmga001.fm.intel.com with ESMTP; 17 May 2020 17:35:38 -0700 Date: Mon, 18 May 2020 08:34:17 +0800 From: Philip Li To: Matthew Wilcox Cc: kbuild test robot , Michal Simek , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , Stefan Asserhall , linux-scsi@vger.kernel.org, linux-parisc@vger.kernel.org Subject: Re: [kbuild-all] Re: drivers/scsi/ncr53c8xx.c:5306:9: sparse: sparse: cast truncates bits from constant value (58f becomes 8f) Message-ID: <20200518003417.GA4344@intel.com> References: <202005160227.h6Ieqnmz%lkp@intel.com> <20200515190026.GI16070@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515190026.GI16070@bombadil.infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 15, 2020 at 12:00:26PM -0700, Matthew Wilcox wrote: > On Sat, May 16, 2020 at 02:20:38AM +0800, kbuild test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > head: 051e6b7e34b9bd24f46725f74994a4d3a653966e > > commit: 06e85c7e9a1c1356038936566fc23f7c0d363b96 asm-generic: fix unistd_32.h generation format > > date: 5 weeks ago > > I don't see how that commit in any way reflects this error message. > > > reproduce: > > # apt-get install sparse > > # sparse version: v0.6.1-193-gb8fad4bc-dirty > > git checkout 06e85c7e9a1c1356038936566fc23f7c0d363b96 > > make ARCH=x86_64 allmodconfig > > I can't even see a way to build the ncr53c8xx module with this config. > Unless somebody reenabled EISA on x86, the only way I can see to > still build this driver is on PA-RISC with the ZALON code. sorry, the reproduce steps here is wrong, it is not for x86_64. We will fix this. > > > make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kbuild test robot > > > > > > sparse warnings: (new ones prefixed by >>) > > > > >> drivers/scsi/ncr53c8xx.c:5306:9: sparse: sparse: cast truncates bits from constant value (58f becomes 8f) > > > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 @5306 OUTW (nc_sien , STO|HTH|MA|SGE|UDC|RST|PAR); > > This seems entirely intentional. > > Something like this should do the job (whitespace damaged): > > +++ b/drivers/scsi/ncr53c8xx.h > @@ -407,7 +407,7 @@ > > #ifdef CONFIG_SCSI_NCR53C8XX_NO_WORD_TRANSFERS > /* Only 8 or 32 bit transfers allowed */ > -#define OUTW_OFF(o, val) do { writeb((char)((val) >> 8), (char __iomem *)np->reg + ncr_offw(o)); writeb((char)(val), (char __iomem *)np->reg + ncr_offw(o) + 1); } while (0) > +#define OUTW_OFF(o, val) do { writeb((char)((val) >> 8), (char __iomem *)np->reg + ncr_offw(o)); writeb((char)((val) & 0xff), (char __iomem *)np->reg + ncr_offw(o) + 1); } while (0) > #else > #define OUTW_OFF(o, val) writew_raw((val), (char __iomem *)np->reg + ncr_offw(o)) > #endif > > _______________________________________________ > kbuild-all mailing list -- kbuild-all@lists.01.org > To unsubscribe send an email to kbuild-all-leave@lists.01.org