Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755284AbcLATJG (ORCPT ); Thu, 1 Dec 2016 14:09:06 -0500 Received: from mga05.intel.com ([192.55.52.43]:29636 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753068AbcLATJD (ORCPT ); Thu, 1 Dec 2016 14:09:03 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,726,1477983600"; d="scan'208";a="36277783" Date: Fri, 2 Dec 2016 03:08:33 +0800 From: kbuild test robot To: Joshua Clayton Cc: kbuild-all@01.org, Alan Tull , Moritz Fischer , Rob Herring , Mark Rutland , Russell King , Joshua Clayton , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 3/3] fpga manager: Add cyclone-ps-spi driver for Altera FPGAs Message-ID: <201612020310.CmijyVw2%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2292 Lines: 62 Hi Joshua, [auto build test WARNING on linus/master] [also build test WARNING on v4.9-rc7] [cannot apply to next-20161201] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Joshua-Clayton/lib-add-bitrev8x4/20161202-013521 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': unknown attribute >> drivers/fpga/cyclone-ps-spi.c:93:33: sparse: incompatible types in comparison expression (different type sizes) In file included from include/linux/delay.h:10:0, from drivers/fpga/cyclone-ps-spi.c:14: drivers/fpga/cyclone-ps-spi.c: In function 'cyclonespi_write': include/linux/kernel.h:739:16: warning: comparison of distinct pointer types lacks a cast (void) (&min1 == &min2); \ ^ include/linux/kernel.h:742:2: note: in expansion of macro '__min' __min(typeof(x), typeof(y), \ ^~~~~ drivers/fpga/cyclone-ps-spi.c:93:19: note: in expansion of macro 'min' size_t stride = min(fw_data_end - fw_data, SZ_4K); ^~~ vim +93 drivers/fpga/cyclone-ps-spi.c 77 /* set buffer to lsb first */ 78 while (fw32 < fw_end) { 79 *fw32 = bitrev8x4(*fw32); 80 fw32++; 81 } 82 } 83 84 static int cyclonespi_write(struct fpga_manager *mgr, const char *buf, 85 size_t count) 86 { 87 struct cyclonespi_conf *conf = (struct cyclonespi_conf *)mgr->priv; 88 const char *fw_data = buf; 89 const char *fw_data_end = fw_data + count; 90 91 while (fw_data < fw_data_end) { 92 int ret; > 93 size_t stride = min(fw_data_end - fw_data, SZ_4K); 94 95 rev_buf((void *)fw_data, stride); 96 ret = spi_write(conf->spi, fw_data, stride); 97 if (ret) { 98 dev_err(&mgr->dev, "spi error in firmware write: %d\n", 99 ret); 100 return ret; 101 } --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation