Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp708421rwe; Fri, 26 Aug 2022 12:48:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR42UXnYKD9bSIMIr8cMZ1X7A3jr0vGi8Nh/Ht3/XQtUhcoIngczN+mPoLe0XeE7sewcwf+u X-Received: by 2002:a17:902:d4c3:b0:174:5ab1:e725 with SMTP id o3-20020a170902d4c300b001745ab1e725mr917489plg.26.1661543283223; Fri, 26 Aug 2022 12:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661543283; cv=none; d=google.com; s=arc-20160816; b=unCvAikD/zdHpcpzCcItN5j82WeNy4EoFZuDFvraUApgeqgusSFFdZG0U0iIfdnq4s rB3XICpAD0mRHZ+TsbX0gp9fOKs7cr6BnijjwOFJArjbnuftgBncsdC81O88qQLfKpfH wdQyHQKeQnsyn16MYK+8wD9bi5BLx/90PrnPwAQ+gsahBoRo2C1CE1SrR3P703nNON7F SlPZBqj774TKZC3aXGAb85E0/rnL8/aG2Ystkd9AaGaPB57EIZ0KYYZp/MKUZWa7dl7b NYHVSn73uk/w+WO0AuMfL62GjFd5FCUY4QsXi603bM0Tu5wgomVIUMCNeUIHhj0FwGTM dNng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2HlevgqUjKR0d9zIR7qF6Rw4l3iNsACgF6yB2OMnTRs=; b=L62RGbMsrYT9B+4hrcFT2GWtGZAkCumIEjJRgndVV8qE/IhSVdhsS5Ly2/qzHT/zlB Ds8mGVmTY/IP24J6M15Q7DjvSi0gMphiVocsB1b+IzLvr+V0MipVlIDwpAAiF1Opj3L8 OdnbGp06Jbb3ciNLQ5gVmb9ziVLBg3VCBdVoPadPj+XN46ac7jKcq1Yib8sSSrAQLxUg HnGVF9wIq3OamIhqk6LxUiLsQkQ+YYVfGznDNoKIp4B29VDClylZeXq0cxgiwPGF5N1u WhBvKRUBAMSHpX4r7U4DLWBlmKbJ8RWCaZ2B96q8Cf6zj59rzfo29QPpeiyr9FQGxUgz Gt9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SS4HQoWY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a17090adc0600b001fb23bb1c9csi2406508pjv.43.2022.08.26.12.47.50; Fri, 26 Aug 2022 12:48:03 -0700 (PDT) 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; dkim=pass header.i=@intel.com header.s=Intel header.b=SS4HQoWY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239304AbiHZTdY (ORCPT + 99 others); Fri, 26 Aug 2022 15:33:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbiHZTdW (ORCPT ); Fri, 26 Aug 2022 15:33:22 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E2DBE094D; Fri, 26 Aug 2022 12:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661542401; x=1693078401; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uc2TYwlN7Q3eN+h/6L2zTtzGkQz/C51IfpFs5f9w59U=; b=SS4HQoWYCzgwnE8P5uo7rl0IvajnwMt/rydVO/LKuASvW1HtSanUj6gc d0dd5rk0r1xS+TWhjbgF6/Zo4TvEP6a1oONrqGJtnKmY2x8T1Kpvm/lop Maobh/bHUycS7itUOaySfWXTdlMRjvC6ggnEeYPUD8ZVMqU5T0bW/3zh2 szHayErfMHaz+maP9aEy1YlecqVrWfP0q8Ohnnv38LapJRNlcAzcrfAP8 nqBmmUx4CZ0NQ1Wvz9ShPpPqcIbwCUuE3mX3OWROIR3I0o1rvt0uYb8Kl c3HGWDmMpgkqm9cT+zkp+/yHvk3f9pPXqVbcjrtHP9PVIdH9PKkzBRI5H A==; X-IronPort-AV: E=McAfee;i="6500,9779,10451"; a="356295960" X-IronPort-AV: E=Sophos;i="5.93,266,1654585200"; d="scan'208";a="356295960" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2022 12:33:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,266,1654585200"; d="scan'208";a="561548154" Received: from lkp-server01.sh.intel.com (HELO 71b0d3b5b1bc) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 26 Aug 2022 12:33:11 -0700 Received: from kbuild by 71b0d3b5b1bc with local (Exim 4.96) (envelope-from ) id 1oRf4o-0000KH-2I; Fri, 26 Aug 2022 19:33:10 +0000 Date: Sat, 27 Aug 2022 03:32:17 +0800 From: kernel test robot To: Maxime Chevallier , davem@davemloft.net, Rob Herring Cc: kbuild-all@lists.01.org, Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Vladimir Oltean , Luka Perkov , Robert Marko Subject: Re: [PATCH net-next v3 1/5] net: ipqess: introduce the Qualcomm IPQESS driver Message-ID: <202208270327.kMRdLLxb-lkp@intel.com> References: <20220826154650.615582-2-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220826154650.615582-2-maxime.chevallier@bootlin.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi Maxime, I love your patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Maxime-Chevallier/net-ipqess-introduce-Qualcomm-IPQESS-driver/20220826-234846 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 44387d1736c40a74085be354e2b5f37ca0689608 config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220827/202208270327.kMRdLLxb-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/7a04850338791b6a0d192df5be0e4317e6961fc4 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Maxime-Chevallier/net-ipqess-introduce-Qualcomm-IPQESS-driver/20220826-234846 git checkout 7a04850338791b6a0d192df5be0e4317e6961fc4 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/net/ethernet/qualcomm/ipqess/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/device.h:15, from include/linux/dma-mapping.h:7, from include/linux/skbuff.h:31, from include/net/net_namespace.h:43, from include/linux/netdevice.h:38, from include/linux/if_vlan.h:10, from drivers/net/ethernet/qualcomm/ipqess/ipqess.c:12: drivers/net/ethernet/qualcomm/ipqess/ipqess.c: In function 'ipqess_rx_buf_prepare': drivers/net/ethernet/qualcomm/ipqess/ipqess.c:180:30: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t' {aka 'long long unsigned int'} [-Wformat=] 180 | "IPQESS DMA mapping failed for linear address %x", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:144:56: note: in expansion of macro 'dev_fmt' 144 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ include/linux/dev_printk.h:174:17: note: in expansion of macro 'dev_err' 174 | dev_level(dev, fmt, ##__VA_ARGS__); \ | ^~~~~~~~~ include/linux/dev_printk.h:192:9: note: in expansion of macro 'dev_level_once' 192 | dev_level_once(dev_err, dev, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~ drivers/net/ethernet/qualcomm/ipqess/ipqess.c:179:17: note: in expansion of macro 'dev_err_once' 179 | dev_err_once(rx_ring->ppdev, | ^~~~~~~~~~~~ drivers/net/ethernet/qualcomm/ipqess/ipqess.c:180:77: note: format string is defined here 180 | "IPQESS DMA mapping failed for linear address %x", | ~^ | | | unsigned int | %llx >> drivers/net/ethernet/qualcomm/ipqess/ipqess.c:188:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 188 | rx_ring->hw_desc[rx_ring->head] = (struct ipqess_rx_desc *)buf->dma; | ^ vim +188 drivers/net/ethernet/qualcomm/ipqess/ipqess.c 170 171 static int ipqess_rx_buf_prepare(struct ipqess_buf *buf, 172 struct ipqess_rx_ring *rx_ring) 173 { 174 memset(buf->skb->data, 0, sizeof(struct ipqess_rx_desc)); 175 176 buf->dma = dma_map_single(rx_ring->ppdev, buf->skb->data, 177 IPQESS_RX_HEAD_BUFF_SIZE, DMA_FROM_DEVICE); 178 if (dma_mapping_error(rx_ring->ppdev, buf->dma)) { 179 dev_err_once(rx_ring->ppdev, 180 "IPQESS DMA mapping failed for linear address %x", 181 buf->dma); 182 dev_kfree_skb_any(buf->skb); 183 buf->skb = NULL; 184 return -EFAULT; 185 } 186 187 buf->length = IPQESS_RX_HEAD_BUFF_SIZE; > 188 rx_ring->hw_desc[rx_ring->head] = (struct ipqess_rx_desc *)buf->dma; 189 rx_ring->head = (rx_ring->head + 1) % IPQESS_RX_RING_SIZE; 190 191 ipqess_m32(rx_ring->ess, IPQESS_RFD_PROD_IDX_BITS, 192 (rx_ring->head + IPQESS_RX_RING_SIZE - 1) % IPQESS_RX_RING_SIZE, 193 IPQESS_REG_RFD_IDX_Q(rx_ring->idx)); 194 195 return 0; 196 } 197 -- 0-DAY CI Kernel Test Service https://01.org/lkp