Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7332787ybh; Thu, 8 Aug 2019 14:00:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXy+EocbpYyodgiZpEc0crWXb+Am9XSEDS9KJXYJnE7NWQiJZaWhbP/F0F1lCHoWEekfFG X-Received: by 2002:a17:902:b696:: with SMTP id c22mr15570630pls.305.1565298025727; Thu, 08 Aug 2019 14:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565298025; cv=none; d=google.com; s=arc-20160816; b=EYRdYF6QtR4gW/pMt6gpDKKTz5yAHU19e6B8hPPEQMWmXP7L6A1Ko7fryGV8D1SmRY 9OKhc3gV3q6hU9MzcqdJ/jfPxTd7rJmyXYz2NnqQECBuyYEVLTUZH/wYpl+OORSmSyK5 CsWnVfzJYFTLYkw28AoQU1YsKBPVYE1r0WBxzt/eKFKRCbuYHg4lSz0oUmTyfHBFF5// sabFq926gxTSyzymuXm+Li5F0xTfdnc11iahprghSvhTGjYJfLPfCvAxCVzrdZ6R63BJ rcpeY1bV0cXQLg+a13SeSt749BaVoalXh1d2xV07jVZMdvRvXsyLN7qlfD9tndT9AOH0 ZmKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=8mxGa4chBrgQNevnCvAcwzWURj7Slh/JTgfQfZkE+fQ=; b=iQYE7w1lFNJScy6JNCSWhu1ead/8lFUe/pgEGf1RhKhALZcWXgysbVgZbRcAvRUrms JGeggR8xu97w2El7wd5C7h26sZ1ANwLRI86aP8004radBP/OXCVso+hGa+IThhOeZNfi FPXGHhXtuCgkvvvO2sbwoGYjzRSuFXcEMuA2aWCT2oFkRFwYcYEAOsboZ3KZNG7DbwjF USCThUnmBjThKudSTFhOhRNlspFvx9ony2/nCMOFS0Gq/3OFKBK8qlVgk793vTaypVQt 7SKAYfddMVd7lgp4hQhXBwWdmfNWjMElm5fevqwLba0vxe8iNN8mVqco0CgvcGjC9h2l F89w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14si2652811pjp.78.2019.08.08.14.00.09; Thu, 08 Aug 2019 14:00:25 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404125AbfHHUmG (ORCPT + 99 others); Thu, 8 Aug 2019 16:42:06 -0400 Received: from mga11.intel.com ([192.55.52.93]:38354 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733140AbfHHUmF (ORCPT ); Thu, 8 Aug 2019 16:42:05 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Aug 2019 13:42:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,362,1559545200"; d="scan'208";a="374981565" Received: from ellie.jf.intel.com (HELO ellie) ([10.24.12.198]) by fmsmga006.fm.intel.com with ESMTP; 08 Aug 2019 13:42:04 -0700 From: Vinicius Costa Gomes To: David Miller , yuehaibing@huawei.com Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next] taprio: remove unused variable 'entry_list_policy' In-Reply-To: <20190808.113813.478689798535715440.davem@davemloft.net> References: <20190808142623.69188-1-yuehaibing@huawei.com> <20190808.113813.478689798535715440.davem@davemloft.net> Date: Thu, 08 Aug 2019 13:42:04 -0700 Message-ID: <87mugjtmn7.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, David Miller writes: > From: YueHaibing > Date: Thu, 8 Aug 2019 22:26:23 +0800 > >> net/sched/sch_taprio.c:680:32: warning: >> entry_list_policy defined but not used [-Wunused-const-variable=] >> >> It is not used since commit a3d43c0d56f1 ("taprio: Add >> support adding an admin schedule") >> >> Reported-by: Hulk Robot >> Signed-off-by: YueHaibing > > This is probably unintentional and a bug, we should be using that > policy value to validate that the sched list is indeed a nested > attribute. Removing this policy should be fine. One of the points of commit (as explained in the commit message) a3d43c0d56f1 ("taprio: Add support adding an admin schedule") is that it removes support (it now returns "not supported") for schedules using the TCA_TAPRIO_ATTR_SCHED_SINGLE_ENTRY attribute (which were never used), the parsing of those types of schedules was the only user of this policy. > > I'm not applying this without at least a better and clear commit > message explaining why we shouldn't be using this policy any more. YueHaibing may use the text above in the commit message of a new spin of this patch if you think it's clear enough. Cheers, -- Vinicius