Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3405594rwb; Fri, 20 Jan 2023 15:55:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXtQzLpGuj+5phVcjC+1+XH0nlSapXe59oIlJD88cf4iTRnpl/cMhHcjg5i31BzQ/F4gabVE X-Received: by 2002:a17:90b:4a0c:b0:22a:3c8:9d1 with SMTP id kk12-20020a17090b4a0c00b0022a03c809d1mr5045301pjb.32.1674258951876; Fri, 20 Jan 2023 15:55:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674258951; cv=none; d=google.com; s=arc-20160816; b=Bxzq+ciTHrwGW9ihBh1g5a1IWMlJ681XASWQHkaNC5JhXQoWyDfWcFY/lCdEFnVCRM aSNedcbtq5y9DP115Ebn8SNCcfp/QamgoKzNcdHsbfV+ummi0OWj1WRtmq5jPSGG4dzS kIEVnV3eJx0nA2PnW2u3nwPAjaAUHTqDmucev4muHvGyekFABPcgyTsbXFEkCrWbdXHy APdLyUbBQwmaSwioVwCEeOqeBlHs2hyLaIOSbHLLmRVU/q43jyQpiVJTUb72QPDZCk1e huZRtoHtq2ze31prM5xFhm8hXnPWak/k3L3d4E/HXfbemoe7z6Hb+oJb1vykiXe1japH JR6g== 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=6UbhAO3kgU0HPp36D32UWnFvzazClTrS+nr/Kt7lFrs=; b=zZv0gn8GUwnizjNlBuzfpxnEEDQLqlaeuZy5UwxiQSbzDi5TOfICN1Gr3XPvoCXxRz 4f96jCoCTMz1SmDwjUtjYNgiZDS6sCGHlsKq58wjZrf2wcARO1PbShh7i/yVsOKIDdRf yS1rnI6o1KGidni4KNnAMWdjDgjh27V2IUVtaqNk0CzEpMcg/Z1+lDeTudJE3gpA3Vou GGx6EAaylFhEsM0kNl3Zt7Je/tn4s66/iVQ5k3PLRu8oS2MBCzw0JM3gcWlDAtfujBuF TzpUUnFRJy9UFD/rffzjil3pcl4MVgHkV7NV36yvt6nWE0/nEIxC7EJTVeCx44/IiZ/9 J5dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=geVKXPR7; 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 i13-20020a17090acf8d00b002213d9c01cdsi3800934pju.136.2023.01.20.15.55.41; Fri, 20 Jan 2023 15:55:51 -0800 (PST) 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=geVKXPR7; 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 S229637AbjATXei (ORCPT + 52 others); Fri, 20 Jan 2023 18:34:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjATXeh (ORCPT ); Fri, 20 Jan 2023 18:34:37 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9559B7DFAA; Fri, 20 Jan 2023 15:34:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674257676; x=1705793676; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=E2gxb0L3/toBnbFs7DTv3zXEuUw4WpxcDWK6bM6N05A=; b=geVKXPR7aHD14Bf8Kypx5+hDQa+yWWid38u26UTuHmrEmB/ubR+UGl58 MA0amb6IzQljeGoSTYNYY/v7Ld/DSd0hLBGR1JlAzwtmqLQtcVCHIWvjb BfzC83cDIS7noyALdOeRHxz+gC+n4bI7woaYTvQ+EfacuIvm07VEtf+wd 91UA6bjS8bz5QJc7EmiTqSQTBvj0SFkvjwP83xayo0NT6c4QM7IV0A04C Z9qvs3qZyOKul3l+3CH+6VjPH53MIZ/UtBaDBh7tbz7Cdz96pRb+RjGsF IPmSk2nd7qLbSxdqAx6ITmKjwLA+qNVt2aTYZePQZXy35SEL9pFBCjFjR w==; X-IronPort-AV: E=McAfee;i="6500,9779,10596"; a="352979728" X-IronPort-AV: E=Sophos;i="5.97,233,1669104000"; d="scan'208";a="352979728" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jan 2023 15:34:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10596"; a="662708195" X-IronPort-AV: E=Sophos;i="5.97,233,1669104000"; d="scan'208";a="662708195" Received: from lkp-server01.sh.intel.com (HELO 5646d64e7320) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 20 Jan 2023 15:34:32 -0800 Received: from kbuild by 5646d64e7320 with local (Exim 4.96) (envelope-from ) id 1pJ0tz-00036I-20; Fri, 20 Jan 2023 23:34:31 +0000 Date: Sat, 21 Jan 2023 07:34:12 +0800 From: kernel test robot To: Vladimir Oltean , Frank Wunderlich Cc: oe-kbuild-all@lists.linux.dev, Andrew Lunn , Florian Fainelli , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Landen Chao , Sean Wang , DENG Qingfang , Matthias Brugger , Daniel Golle Subject: Re: [PATCH] mt7530 don't make the CPU port a VLAN user port Message-ID: <202301210746.xjCzhDc3-lkp@intel.com> References: <20230120172132.rfo3kf4fmkxtw4cl@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230120172132.rfo3kf4fmkxtw4cl@skbuf> 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 Vladimir, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v6.2-rc4 next-20230120] [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/Vladimir-Oltean/mt7530-don-t-make-the-CPU-port-a-VLAN-user-port/20230121-012326 patch link: https://lore.kernel.org/r/20230120172132.rfo3kf4fmkxtw4cl%40skbuf patch subject: [PATCH] mt7530 don't make the CPU port a VLAN user port config: i386-randconfig-a005 (https://download.01.org/0day-ci/archive/20230121/202301210746.xjCzhDc3-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/563aaac5703ee8530858faf04f93f30785d74cf6 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Vladimir-Oltean/mt7530-don-t-make-the-CPU-port-a-VLAN-user-port/20230121-012326 git checkout 563aaac5703ee8530858faf04f93f30785d74cf6 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 olddefconfig make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/dsa/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/net/dsa/mt7530.c: In function 'mt7530_port_vlan_filtering': >> drivers/net/dsa/mt7530.c:1525:26: warning: unused variable 'cpu_dp' [-Wunused-variable] 1525 | struct dsa_port *cpu_dp = dp->cpu_dp; | ^~~~~~ vim +/cpu_dp +1525 drivers/net/dsa/mt7530.c 83163f7dca5684 Sean Wang 2017-12-15 1519 83163f7dca5684 Sean Wang 2017-12-15 1520 static int 89153ed6ebc148 Vladimir Oltean 2021-02-13 1521 mt7530_port_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering, 89153ed6ebc148 Vladimir Oltean 2021-02-13 1522 struct netlink_ext_ack *extack) 83163f7dca5684 Sean Wang 2017-12-15 1523 { 1f9a6abecf538c Frank Wunderlich 2022-06-10 1524 struct dsa_port *dp = dsa_to_port(ds, port); 1f9a6abecf538c Frank Wunderlich 2022-06-10 @1525 struct dsa_port *cpu_dp = dp->cpu_dp; 1f9a6abecf538c Frank Wunderlich 2022-06-10 1526 83163f7dca5684 Sean Wang 2017-12-15 1527 if (vlan_filtering) { 83163f7dca5684 Sean Wang 2017-12-15 1528 /* The port is being kept as VLAN-unaware port when bridge is 83163f7dca5684 Sean Wang 2017-12-15 1529 * set up with vlan_filtering not being set, Otherwise, the 83163f7dca5684 Sean Wang 2017-12-15 1530 * port and the corresponding CPU port is required the setup 83163f7dca5684 Sean Wang 2017-12-15 1531 * for becoming a VLAN-aware port. 83163f7dca5684 Sean Wang 2017-12-15 1532 */ 83163f7dca5684 Sean Wang 2017-12-15 1533 mt7530_port_set_vlan_aware(ds, port); 563aaac5703ee8 Vladimir Oltean 2023-01-20 1534 // mt7530_port_set_vlan_aware(ds, cpu_dp->index); e3ee07d14fac20 Vladimir Oltean 2019-04-28 1535 } else { e3ee07d14fac20 Vladimir Oltean 2019-04-28 1536 mt7530_port_set_vlan_unaware(ds, port); 83163f7dca5684 Sean Wang 2017-12-15 1537 } 83163f7dca5684 Sean Wang 2017-12-15 1538 83163f7dca5684 Sean Wang 2017-12-15 1539 return 0; 83163f7dca5684 Sean Wang 2017-12-15 1540 } 83163f7dca5684 Sean Wang 2017-12-15 1541 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests