Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1991694rwl; Thu, 30 Mar 2023 04:38:45 -0700 (PDT) X-Google-Smtp-Source: AKy350YEFTSlSSkaWcJR9IEVfpkZHQbvZ6UjW81jUiSAQ7nMKSiCLS3ETGNrP9z45irh35Hd2Vv7 X-Received: by 2002:a17:902:da88:b0:19d:2a3:f019 with SMTP id j8-20020a170902da8800b0019d02a3f019mr2029188plx.1.1680176325019; Thu, 30 Mar 2023 04:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680176325; cv=none; d=google.com; s=arc-20160816; b=gzl1kbBL4Vu5cKtuJWRon2jkZ3z0CQfm7qlC10NpwxYSuVm4ph492GlDNBxZ9gBMzk 9qpDPO9Jnv+caxSgATbAgC8rIg2YTwiD+WGxKrEuEigRdP0gbpsrT3WNJFhbmVeE+qvd LVZ4jjr/IHk8Q6i0UKwvPsfLQRSUsZr6ZX2RrYqo3aaArXkh9IcwOMUUMU6yrOTuMIzx E20JY0fPzG2OeliIPzn/aGA5r0jUPE8FW2aXpn+I1S/CNv6oFLpS2bpSfHS4M/eJBxtW oUEQ6hmur9noUL7vLxWD1ypwXmlZ6NaINpIC1GjIRYr/sXYkG5NtfEcLEanDqNMcoZOg 5QCQ== 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=zgZ5Qe/QrYIDETX/vmE7SXivnmvEPZfGkWUUlb1gwYI=; b=H7WiYGq39r/SsqhocrlpUv8tM1yd4OwexsIwnKKRrs8TaXjdhE/2hIdYWI+61VPnuE 4m5ZgNfZKMStQPLXgghspRWTlET3dj/abuRINzt0TVGL/1p/DxkxpXaDwTLPIdD91hia shZjA4BASxFl3cLegE//lFWYpJBBjybf/4AdB0Qy8O7Tte38GXZNmF9CClzCE8kTSmkJ 6vXWDe24p+VP/pVmvCMKCW8f2PyEMskHczN2E6QLAz0oKwaehvbGyTlZ+j7h1csE6hAg UyOS05f7YIYizBKxBliTKpQErDWad1Hew5ShquvMvSBbLIgIEgfdPYDaFL5TbTZZvKK5 XKng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hPj2s7lE; 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 kw5-20020a170902f90500b001a199eaf57csi32632148plb.404.2023.03.30.04.38.31; Thu, 30 Mar 2023 04:38:44 -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=hPj2s7lE; 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 S231196AbjC3LZM (ORCPT + 99 others); Thu, 30 Mar 2023 07:25:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbjC3LZL (ORCPT ); Thu, 30 Mar 2023 07:25:11 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB0BE8A46 for ; Thu, 30 Mar 2023 04:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680175509; x=1711711509; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=F5r1hQ7cUkUBDcgkzl+YhbbYgvKadrwOMiLaWgNj7YI=; b=hPj2s7lEldqpnXihXsZv7L/qd1LXYFhJ5aDk+xulMt3dA0MXnBnLAOeV 231I+L5chaiu7kNfTL6foqNp+55T31AdxnNm9JDba+42emD/Zb/UGcpqA S8X/bjAJ2DQLnGedMDtZEBT0P3HlvwV8T7exsEVJmU5jgGfm1EFRZimbf 02fgzrzRjEtNv2fScDfEtwW4YfMMYEC9fQb8miWolNNoAWexPMzDQzvm2 SGmfST7f4jyb5lVM0tl6kq4zvbKF4vj8kXZbNhWmh+Qc1591ktqwCyw8S RzJfsUNPaEZFTllu6uHGUI5/mT+Hz5bnq0puCFRrRbs3e4CihJofC1o9X w==; X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="338638366" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="338638366" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2023 04:24:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="717277836" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="717277836" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 30 Mar 2023 04:24:51 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1phqOh-000Kny-0I; Thu, 30 Mar 2023 11:24:51 +0000 Date: Thu, 30 Mar 2023 19:24:24 +0800 From: kernel test robot To: Boon Khai Ng , "David S . Miller" Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Mun Yew Tham , Tien Sung Ang , Boon Khai Ng Subject: Re: [PATCH v1 2/8] drivers: net: stmmac_main: fix vlan toggle option. Message-ID: <202303301902.TxsoXxWD-lkp@intel.com> References: <20230330070305.18808-1-boon.khai.ng@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230330070305.18808-1-boon.khai.ng@intel.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable 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 Boon, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/main] [also build test ERROR on net/main linus/master v6.3-rc4 next-20230330] [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/Boon-Khai-Ng/drivers-net-stmmac_main-Add-support-for-HW-accelerated-VLAN-Stripping/20230330-150648 patch link: https://lore.kernel.org/r/20230330070305.18808-1-boon.khai.ng%40intel.com patch subject: [PATCH v1 2/8] drivers: net: stmmac_main: fix vlan toggle option. config: x86_64-randconfig-a016 (https://download.01.org/0day-ci/archive/20230330/202303301902.TxsoXxWD-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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/fb80bd4d4331439d42a4c555121e4bc27ddcd16f git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Boon-Khai-Ng/drivers-net-stmmac_main-Add-support-for-HW-accelerated-VLAN-Stripping/20230330-150648 git checkout fb80bd4d4331439d42a4c555121e4bc27ddcd16f # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303301902.TxsoXxWD-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:5687:2: error: non-void function does not return a value [-Werror,-Wreturn-type] } ^ >> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:5689:2: error: expected identifier or '(' return 0; ^ >> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:5690:1: error: extraneous closing brace ('}') } ^ 3 errors generated. vim +5687 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 5656 5657 static int stmmac_set_features(struct net_device *netdev, 5658 netdev_features_t features) 5659 { 5660 struct stmmac_priv *priv = netdev_priv(netdev); 5661 5662 netdev_features_t changed; 5663 5664 changed = netdev->features ^ features; 5665 5666 /* Keep the COE Type in case of csum is supporting */ 5667 if (features & NETIF_F_RXCSUM) 5668 priv->hw->rx_csum = priv->plat->rx_coe; 5669 else 5670 priv->hw->rx_csum = 0; 5671 /* No check needed because rx_coe has been set before and it will be 5672 * fixed in case of issue. 5673 */ 5674 stmmac_rx_ipc(priv, priv->hw); 5675 5676 if (priv->sph_cap) { 5677 bool sph_en = (priv->hw->rx_csum > 0) && priv->sph; 5678 u32 chan; 5679 5680 for (chan = 0; chan < priv->plat->rx_queues_to_use; chan++) 5681 stmmac_enable_sph(priv, priv->ioaddr, sph_en, chan); 5682 } 5683 5684 if (changed & NETIF_F_HW_VLAN_CTAG_RX) 5685 stmmac_set_hw_vlan_mode(priv, priv->ioaddr, features); 5686 priv->plat->use_hw_vlan = features & NETIF_F_HW_VLAN_CTAG_RX; > 5687 } 5688 > 5689 return 0; > 5690 } 5691 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests