Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5554613ybh; Wed, 7 Aug 2019 07:51:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4Ew+BBJlZT6PvO2JhQMdpbHvtNXMj9RmifNcYBB5J08yV8gWQyQyvHfLmpdmKpmnTP22Q X-Received: by 2002:a17:902:86:: with SMTP id a6mr8614044pla.244.1565189512424; Wed, 07 Aug 2019 07:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565189512; cv=none; d=google.com; s=arc-20160816; b=fQMvjnOQ10/N98viwynrPD5JtDHbZUHAAPN0D1j+pfNVU3X8VtA5R5V42yqpJauYnb n3slJv8WW24fKT6jPzlkKeXBT1gY86/f1FvTBBxEoIXhmGWb+D4VipZz8UguU9HhiYfl yoOU4IPD9cmkyQUWnpWDG6u+4uk5A4ZlLdRAz5y4DQoT10CHKP8hExerVrJ80EsH3lFF EJ18eaCAV1RQULxIJUZRUL0Zc5xNyMZUMKUl7Kvj3wDRnW+H9qpZrsBFWi1dqzI1M0d2 s8MGrK782NefRQzhvxIDtAnyh/5cG8nouPnWCnlUgt2NigfwyuyCJ9+hMRS5zcC926OE sIQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-disposition:mime-version:references:in-reply-to:subject:cc :to:from:message-id:date:dkim-signature; bh=0eo1cuSOLKuBc/AsDSL5J5wiBJZGR8gnSw3Z4l9sYKg=; b=Nu8BjwJ1xGMAf6yfRoOg8tXjjYJ3F6+vvfDpHsAh71BIM/CrUugtCfcc4tQKEMFgt1 Mdwxg/y/0PRYTWB5Z9V0GnRaIkhXbqNoggBpnojay2i6fTpbNEPl8pRnDVg6fNSZktcN X6ccSQ0OBmjJDQiDUTJsY7C0yohW8P80vP+etyOL3a9rC/4LWvYQESI4ScTtWToxoCn5 gNXyg1pXOaQltVw3WezBKbZ/MpeorBFW4cB+lje0fa7OsXxLkzI1/Um9u2dVHzZ9i4T7 28KrN5xPg/bm53WrouXEQPnQ+izCl8fkaNXwByVV0i12aHrZ8HPTNSqPNNZTqYieU1Mh tMgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Im9mrtlT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32si44158392plb.86.2019.08.07.07.51.37; Wed, 07 Aug 2019 07:51:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Im9mrtlT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388028AbfHGOP5 (ORCPT + 99 others); Wed, 7 Aug 2019 10:15:57 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:40927 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729408AbfHGOP5 (ORCPT ); Wed, 7 Aug 2019 10:15:57 -0400 Received: by mail-qt1-f196.google.com with SMTP id a15so88416405qtn.7; Wed, 07 Aug 2019 07:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:from:to:cc:subject:in-reply-to:references :mime-version:content-disposition:content-transfer-encoding; bh=0eo1cuSOLKuBc/AsDSL5J5wiBJZGR8gnSw3Z4l9sYKg=; b=Im9mrtlTccOuh5BHDB3W0jR5+YFOCS3dAR/vurzp0zUwWD3deG7I3VvqCr4VpQDmXi P+ooIZ1TGApur+GvetVeZhJTUPkSdL5sDU0ukclRHTAd5+PWsFyf5OW41Ju4UFJ0hQBB QRVO4vHvNYIFSMvHufATTbNo4oGS4LaWnZx5kmzYxPF+UAp5hFx9e1zSnpKC2y40ZvYU u0aA7UEyZWdoeb+BOXirmvhYvWki1F61qRMNAa+VeKZk5KFFA/FNXE2QOvNw04R8MyDq sVMSv6PRU4adQ0gHCPJ46/+aaBgIuFfXt5pBZGcwzH8yTLjjBuxdBNamwEaOhUEIVS/d Cbbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:from:to:cc:subject:in-reply-to :references:mime-version:content-disposition :content-transfer-encoding; bh=0eo1cuSOLKuBc/AsDSL5J5wiBJZGR8gnSw3Z4l9sYKg=; b=KDRAFcFvnBj+oyb2jgUHem6fPGwJvzcs7bIyHa2bl9uRVuM3DuAsG41SarxzEZ9cYd GJhF9HPD+NP70jIqbV7wsgWWtqAmlJ5NafRYWrLdGh7rSIeUvkDsNLkkCc/fYGVf9yUn aivEkMzruAr2N2R9D4rmPCwlHL8ICn6486RAl2I0xmLAOMukhJhJajeMg2yqr6S0/jg5 S+o10b3Wl6ixXpeb54UoBTx8Ht9dyZKcs1ZZe7mClJVmjy3cVsA/aAWLCN/hqa9TAp3B uz/8SmkpS+urYwnmU9OSvwxCrLwu/gpzS9J3JoWHNOsQiB1cb5iujfZngX/u9LLksEGP nX5g== X-Gm-Message-State: APjAAAWnyY+sZbAKPGQlX5Ov0SW/mm3mYVQFaBnPN0M+aoPZQZDLqi86 OAXTj9Nw5rF8i5awxi9zz0g= X-Received: by 2002:ac8:42d4:: with SMTP id g20mr8356709qtm.78.1565187355949; Wed, 07 Aug 2019 07:15:55 -0700 (PDT) Received: from localhost (modemcable249.105-163-184.mc.videotron.ca. [184.163.105.249]) by smtp.gmail.com with ESMTPSA id x14sm2482778qkj.95.2019.08.07.07.15.54 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 07 Aug 2019 07:15:55 -0700 (PDT) Date: Wed, 7 Aug 2019 10:15:54 -0400 Message-ID: <20190807101554.GB29535@t480s.localdomain> From: Vivien Didelot To: YueHaibing Cc: davem@davemloft.net, olteanv@gmail.com, andrew@lunn.ch, f.fainelli@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, YueHaibing Subject: Re: [PATCH net-next] net: dsa: sja1105: remove set but not used variables 'tx_vid' and 'rx_vid' In-Reply-To: <20190807130856.60792-1-yuehaibing@huawei.com> References: <20190807130856.60792-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Aug 2019 21:08:56 +0800, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/dsa/sja1105/sja1105_main.c: In function sja1105_fdb_dump: > drivers/net/dsa/sja1105/sja1105_main.c:1226:14: warning: > variable tx_vid set but not used [-Wunused-but-set-variable] > drivers/net/dsa/sja1105/sja1105_main.c:1226:6: warning: > variable rx_vid set but not used [-Wunused-but-set-variable] > > They are not used since commit 6d7c7d948a2e ("net: dsa: > sja1105: Fix broken learning with vlan_filtering disabled") > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Reviewed-by: Vivien Didelot