Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36458729rwd; Tue, 11 Jul 2023 00:58:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlFFxZwDkmyXzHUNC0GVjYTOjrdUtG0vbrffkbTRw2FU3GNQZ9muqwyO1yjPYuRseZEfj49v X-Received: by 2002:a17:906:1046:b0:993:d5bd:a763 with SMTP id j6-20020a170906104600b00993d5bda763mr11825797ejj.20.1689062332570; Tue, 11 Jul 2023 00:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689062332; cv=none; d=google.com; s=arc-20160816; b=BrngHd1BDeL52eEadaL0ve6kd23y4UaR89HMTwQmrxP1uDc3FHItfVKM1wm65WuWix 0jJjpuDo2CCZuat5X3E31A38gJc4beECjmzowl+pHc06DOLrW3xWJ88xvXwNQi/pHj2+ usFZGwOOhly800BylXVSmmlc7ivF/GfzbHj2u/85XdVYrbWJaaX6jaBYf1UGkDMeM073 IenU1rNZekyasEBU3FDPt5TxyWPd8ogz8W63VGn9r8pD7SIUcBZofhQg/seLUaONySCZ oBohfwDZotGM3Awuj0q67hMcXGoWcncCb0EcGA5ZYU0AnoZ3xdKRjsNk2h68oarF0+5X +HWQ== 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=Qm4hX5D28soqH84LHOlAPWnk5DdrpYg77j/nvFVXxqs=; fh=bCmFi4o+SiSRflj8G3n4DT8x2rJxY3c5f042hzKPJzQ=; b=H7jCLNaCkXSdT2dBl9f37THpSZmsnls62FQyR5e1vOEypfJGJXj0iBs5enXQdfxPBK 8sBtCKqQOxn8kBMiYoGHNppF5xw1DG7dj7pzhW3FahBgSvci7hCfThkuNp5fqcuDljcu G8Zf3x26ThvJ1+RCdu7bDvT7nNN2PbCzUaeoSUO4RlWHcW+rz5bw9Z+IehNHMJIz5B2/ wkzchKH3jZctfoa4tg/rmH+Iptx+Ccb3+2LoaoWIdFJRmE6QC1VDD7vFWmWDbDQUsArp bRz/iI8u7UhVeSo30SY5yGa55DnI2pjyPhUZW6VK0ToXOFyr9m8ZwfFoqBNgpFt9DjRw S+/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q3aHBPlI; 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 kg5-20020a17090776e500b00991f1e4b041si1378605ejc.737.2023.07.11.00.58.29; Tue, 11 Jul 2023 00:58:52 -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=Q3aHBPlI; 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 S230325AbjGKHuz (ORCPT + 99 others); Tue, 11 Jul 2023 03:50:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbjGKHux (ORCPT ); Tue, 11 Jul 2023 03:50:53 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F10A100; Tue, 11 Jul 2023 00:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689061852; x=1720597852; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FdsteEPVoKhljkYScsI1bW/zn+WpJ+G1WJFTIr7P2+I=; b=Q3aHBPlIffVDHxcKfeuwVdkG9ysTmOzJlSYsJ7lIoK8+evtwy2DfmshP Zf5cilbOUqBMxzRHORJxDi2q0NIbu+1xt8FRPIycKzqZ3BX+TgHpnt8aw x5GfGf5c7/5VoEKsRIoz9lGqCulKEyWXX8tl/M1+UV0Z8nCLPinGHrihK 1CQuXImvZs1llsmf1EFxyoBPRpgi/8NOiW1/wd/bCYj4iDjKBNuBay+9q Qm7Z0nXLwf5JPFjeebePGVriNro6eXXKftSnZSLmq023j3owef6kb9RtR FpDtZOUGjEcAkSVl0I92OvzgcPZ23D6sz+SYuGjDGtVkoSHwD5XnR1EnA w==; X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="363419830" X-IronPort-AV: E=Sophos;i="6.01,196,1684825200"; d="scan'208";a="363419830" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2023 00:50:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="895088411" X-IronPort-AV: E=Sophos;i="6.01,196,1684825200"; d="scan'208";a="895088411" Received: from lkp-server01.sh.intel.com (HELO c544d7fc5005) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 11 Jul 2023 00:50:48 -0700 Received: from kbuild by c544d7fc5005 with local (Exim 4.96) (envelope-from ) id 1qJ891-0004Sx-1N; Tue, 11 Jul 2023 07:50:47 +0000 Date: Tue, 11 Jul 2023 15:50:22 +0800 From: kernel test robot To: Vivek Pernamitta , mhi@lists.linux.dev Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, mrana@quicinc.com, quic_qianyu@quicinc.com, manivannan.sadhasivam@linaro.org, Vivek Pernamitta , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V1] net: mhi : Add support to enable ethernet interface Message-ID: <202307111559.xDdV7vHr-lkp@intel.com> References: <1688118281-13032-1-git-send-email-quic_vpernami@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1688118281-13032-1-git-send-email-quic_vpernami@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Vivek, kernel test robot noticed the following build errors: [auto build test ERROR on net-next/main] [also build test ERROR on net/main linus/master v6.5-rc1 next-20230711] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Vivek-Pernamitta/net-mhi-Add-support-to-enable-ethernet-interface/20230630-174659 base: net-next/main patch link: https://lore.kernel.org/r/1688118281-13032-1-git-send-email-quic_vpernami%40quicinc.com patch subject: [PATCH V1] net: mhi : Add support to enable ethernet interface config: riscv-randconfig-r042-20230710 (https://download.01.org/0day-ci/archive/20230711/202307111559.xDdV7vHr-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20230711/202307111559.xDdV7vHr-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202307111559.xDdV7vHr-lkp@intel.com/ All errors (new ones prefixed by >>): | ~~~~~~~~~~ ^ In file included from drivers/net/mhi_net.c:7: In file included from include/linux/if_arp.h:22: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:751:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 751 | insw(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' 105 | #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from drivers/net/mhi_net.c:7: In file included from include/linux/if_arp.h:22: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:759:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 759 | insl(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' 106 | #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from drivers/net/mhi_net.c:7: In file included from include/linux/if_arp.h:22: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:768:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 768 | outsb(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' 118 | #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from drivers/net/mhi_net.c:7: In file included from include/linux/if_arp.h:22: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:777:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 777 | outsw(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' 119 | #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from drivers/net/mhi_net.c:7: In file included from include/linux/if_arp.h:22: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:786:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 786 | outsl(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' 120 | #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from drivers/net/mhi_net.c:7: In file included from include/linux/if_arp.h:22: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:1134:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 1134 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; | ~~~~~~~~~~ ^ >> drivers/net/mhi_net.c:327:19: error: passing 'const unsigned char *' to parameter of type 'u8 *' (aka 'unsigned char *') discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 327 | eth_random_addr(ndev->dev_addr); | ^~~~~~~~~~~~~~ include/linux/etherdevice.h:230:40: note: passing argument to parameter 'addr' here 230 | static inline void eth_random_addr(u8 *addr) | ^ 13 warnings and 1 error generated. vim +327 drivers/net/mhi_net.c 320 321 static int mhi_net_newlink(struct mhi_device *mhi_dev, struct net_device *ndev, bool eth_dev) 322 { 323 struct mhi_net_dev *mhi_netdev; 324 int err; 325 326 if (eth_dev) { > 327 eth_random_addr(ndev->dev_addr); 328 if (!is_valid_ether_addr(ndev->dev_addr)) 329 return -EADDRNOTAVAIL; 330 } 331 332 mhi_netdev = netdev_priv(ndev); 333 334 dev_set_drvdata(&mhi_dev->dev, mhi_netdev); 335 mhi_netdev->ndev = ndev; 336 mhi_netdev->mdev = mhi_dev; 337 mhi_netdev->skbagg_head = NULL; 338 mhi_netdev->mru = mhi_dev->mhi_cntrl->mru; 339 mhi_netdev->ethernet_if = eth_dev; 340 341 INIT_DELAYED_WORK(&mhi_netdev->rx_refill, mhi_net_rx_refill_work); 342 u64_stats_init(&mhi_netdev->stats.rx_syncp); 343 u64_stats_init(&mhi_netdev->stats.tx_syncp); 344 345 /* Start MHI channels */ 346 err = mhi_prepare_for_transfer(mhi_dev); 347 if (err) 348 return err; 349 350 /* Number of transfer descriptors determines size of the queue */ 351 mhi_netdev->rx_queue_sz = mhi_get_free_desc_count(mhi_dev, DMA_FROM_DEVICE); 352 353 err = register_netdev(ndev); 354 if (err) 355 return err; 356 357 return 0; 358 } 359 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki