Message ID | cee692c7babd754c1c36186af116c4bb4dad0a17.1685853842.git.christophe.jaillet@wanadoo.fr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1975133vqr; Sat, 3 Jun 2023 21:56:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xM8grTzTE7Lf18TPSmvU09A6jXOXoO5q624lsIIoa7fc+sC4Bi8PbuxsZKMxxmkm0rFns X-Received: by 2002:a05:6808:6393:b0:39a:a880:50dc with SMTP id ec19-20020a056808639300b0039aa88050dcmr1383309oib.52.1685854587977; Sat, 03 Jun 2023 21:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685854587; cv=none; d=google.com; s=arc-20160816; b=TM3sinD+P3dlKmcEhJPOhrY32z7fwiKlQGz4hQ0+h1PVicZ6t2c+afDBqHCniEZeOz q65/k/LrVKYlpe1ZTOQqKXy0UvLrKYMrcoEKMLLVKn68qwV0Z3tav40+62fM0TqNb1hu FDGECnG5UcWR5W2iKfKzQvaM6wNZhWt69ZBZNsJkwK/4dw8GuM7c5v2o8H1s0RtFmwFG I7iT5XuegDHuXRJctxeNfBnYRdEI/dDr7HDkeWxdzZIweuk5+1Gt8yxr3JWm+Nck456y lvF1Np0hsCwy9GgLQkEaSkqh8RyehRuc3zJPWtmQwFcaDTMzPywmONSB43oxByfGYd3b aRBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=yuCvWJusB0jjXwJ/HnT0XtQ4exUNOe6cHL/s4AWv+dQ=; b=H3oDs0A0OGh+YCqVHsc6brwRXKjwF4JJuClNe9GUdQ0VQMSDAgKuoq1+pQEtIJaUmk wdMCZotkin9s18z7jg0OhsfP4MLCE5Q24HRpQJhZHx8DFnuTW2NASbqOmKVspluEtIRg +nipMTjyUBFvCLpSbIwWsuDUO8SP+MDEu5SgftlDpCkg8l1dnGHFLXglO7cWt7JZ0eDC Qs7HhQIuoM7C6In8I7sTU8OofPDiL+jfDHgCG4k6Ld3iywefgCJAd+St8i8NrNNuRBG0 MdBvxWLoo7jgRzx79YY/DMecMHiE3JaQv4fqOW7ymTtei2hwTV5fJpMsDFXUfIB1X1gc FeLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wanadoo.fr header.s=t20230301 header.b=aTFm+I9Y; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc7-20020a17090b318700b0025066f45e40si3668155pjb.22.2023.06.03.21.56.14; Sat, 03 Jun 2023 21:56:27 -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=fail header.i=@wanadoo.fr header.s=t20230301 header.b=aTFm+I9Y; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230020AbjFDEoY (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Sun, 4 Jun 2023 00:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbjFDEoV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 4 Jun 2023 00:44:21 -0400 Received: from smtp.smtpout.orange.fr (smtp-23.smtpout.orange.fr [80.12.242.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 758CAD3 for <linux-kernel@vger.kernel.org>; Sat, 3 Jun 2023 21:44:20 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id 5fbGqlk8R8aX95fbGqkWVn; Sun, 04 Jun 2023 06:44:18 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1685853858; bh=yuCvWJusB0jjXwJ/HnT0XtQ4exUNOe6cHL/s4AWv+dQ=; h=From:To:Cc:Subject:Date; b=aTFm+I9YSsneXEOM9vJJVrcWs/ud1UsnfbBeeaaPXgDK2MLld+4yfcytK3Yo6H7zl Dr0uVon4mdyX0pha25rbg/aAGyDp3lCvCVwMlp3FjU4TiLMAt7QeCw6xyG0jSjsfOL e6dXBKjpgDBRTY141rPV0MZLruGkKJdCYM/veS78wgOBL9xBCIkFEu91Id4KVlj6Fu PIj2fwqSSRF+P7mq1JT6YdZ0tdquMlLJedaV9XPj2not3B+IGr29xHp5Qln0VwfRj/ kc9/IFM+EkS7O7yNdiVZX3aAH2eqjLLYLc6c/yGGEoSPXVEa/07+85yfYOYTUK9EUB +Y2H2yicOoj1w== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 04 Jun 2023 06:44:18 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET <christophe.jaillet@wanadoo.fr> Subject: [PATCH] cdx: Drop useless LIST_HEAD Date: Sun, 4 Jun 2023 06:44:17 +0200 Message-Id: <cee692c7babd754c1c36186af116c4bb4dad0a17.1685853842.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767746660391451097?= X-GMAIL-MSGID: =?utf-8?q?1767746660391451097?= |
Series |
cdx: Drop useless LIST_HEAD
|
|
Commit Message
Christophe JAILLET
June 4, 2023, 4:44 a.m. UTC
'cleanup_list' is unused, so drop it.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
drivers/cdx/controller/mcdi.c | 1 -
1 file changed, 1 deletion(-)
Comments
Hi Christophe,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.4-rc4 next-20230602]
[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/Christophe-JAILLET/cdx-Drop-useless-LIST_HEAD/20230604-124432
base: linus/master
patch link: https://lore.kernel.org/r/cee692c7babd754c1c36186af116c4bb4dad0a17.1685853842.git.christophe.jaillet%40wanadoo.fr
patch subject: [PATCH] cdx: Drop useless LIST_HEAD
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230604/202306041613.FCYOdhUW-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
mkdir -p ~/bin
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/0836d9a86cf6d803585f7d9810ec8622ec81b2f7
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Christophe-JAILLET/cdx-Drop-useless-LIST_HEAD/20230604-124432
git checkout 0836d9a86cf6d803585f7d9810ec8622ec81b2f7
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306041613.FCYOdhUW-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/cdx/controller/mcdi.c: In function 'cdx_mcdi_process_cmd':
>> drivers/cdx/controller/mcdi.c:637:64: error: 'cleanup_list' undeclared (first use in this function)
637 | cdx_mcdi_complete_cmd(mcdi, cmd, outbuf, len, &cleanup_list);
| ^~~~~~~~~~~~
drivers/cdx/controller/mcdi.c:637:64: note: each undeclared identifier is reported only once for each function it appears in
vim +/cleanup_list +637 drivers/cdx/controller/mcdi.c
eb96b740192b2a0 Nipun Gupta 2023-03-13 609
eb96b740192b2a0 Nipun Gupta 2023-03-13 610 void cdx_mcdi_process_cmd(struct cdx_mcdi *cdx, struct cdx_dword *outbuf, int len)
eb96b740192b2a0 Nipun Gupta 2023-03-13 611 {
eb96b740192b2a0 Nipun Gupta 2023-03-13 612 struct cdx_mcdi_iface *mcdi;
eb96b740192b2a0 Nipun Gupta 2023-03-13 613 struct cdx_mcdi_cmd *cmd;
eb96b740192b2a0 Nipun Gupta 2023-03-13 614 unsigned int respseq;
eb96b740192b2a0 Nipun Gupta 2023-03-13 615
eb96b740192b2a0 Nipun Gupta 2023-03-13 616 if (!len || !outbuf) {
eb96b740192b2a0 Nipun Gupta 2023-03-13 617 pr_err("Got empty MC response\n");
eb96b740192b2a0 Nipun Gupta 2023-03-13 618 return;
eb96b740192b2a0 Nipun Gupta 2023-03-13 619 }
eb96b740192b2a0 Nipun Gupta 2023-03-13 620
eb96b740192b2a0 Nipun Gupta 2023-03-13 621 mcdi = cdx_mcdi_if(cdx);
eb96b740192b2a0 Nipun Gupta 2023-03-13 622 if (!mcdi)
eb96b740192b2a0 Nipun Gupta 2023-03-13 623 return;
eb96b740192b2a0 Nipun Gupta 2023-03-13 624
eb96b740192b2a0 Nipun Gupta 2023-03-13 625 respseq = CDX_DWORD_FIELD(outbuf[0], MCDI_HEADER_SEQ);
eb96b740192b2a0 Nipun Gupta 2023-03-13 626
eb96b740192b2a0 Nipun Gupta 2023-03-13 627 mutex_lock(&mcdi->iface_lock);
eb96b740192b2a0 Nipun Gupta 2023-03-13 628 cmd = mcdi->seq_held_by[respseq];
eb96b740192b2a0 Nipun Gupta 2023-03-13 629
eb96b740192b2a0 Nipun Gupta 2023-03-13 630 if (cmd) {
eb96b740192b2a0 Nipun Gupta 2023-03-13 631 if (cmd->state == MCDI_STATE_FINISHED) {
eb96b740192b2a0 Nipun Gupta 2023-03-13 632 mutex_unlock(&mcdi->iface_lock);
eb96b740192b2a0 Nipun Gupta 2023-03-13 633 kref_put(&cmd->ref, cdx_mcdi_cmd_release);
eb96b740192b2a0 Nipun Gupta 2023-03-13 634 return;
eb96b740192b2a0 Nipun Gupta 2023-03-13 635 }
eb96b740192b2a0 Nipun Gupta 2023-03-13 636
eb96b740192b2a0 Nipun Gupta 2023-03-13 @637 cdx_mcdi_complete_cmd(mcdi, cmd, outbuf, len, &cleanup_list);
eb96b740192b2a0 Nipun Gupta 2023-03-13 638 } else {
eb96b740192b2a0 Nipun Gupta 2023-03-13 639 pr_err("MC response unexpected for seq : %0X\n", respseq);
eb96b740192b2a0 Nipun Gupta 2023-03-13 640 }
eb96b740192b2a0 Nipun Gupta 2023-03-13 641
eb96b740192b2a0 Nipun Gupta 2023-03-13 642 mutex_unlock(&mcdi->iface_lock);
eb96b740192b2a0 Nipun Gupta 2023-03-13 643
eb96b740192b2a0 Nipun Gupta 2023-03-13 644 cdx_mcdi_process_cleanup_list(mcdi->cdx, &cleanup_list);
eb96b740192b2a0 Nipun Gupta 2023-03-13 645 }
eb96b740192b2a0 Nipun Gupta 2023-03-13 646
Le 04/06/2023 à 06:44, Christophe JAILLET a écrit : > 'cleanup_list' is unused, so drop it. > > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> > --- > drivers/cdx/controller/mcdi.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/cdx/controller/mcdi.c b/drivers/cdx/controller/mcdi.c > index a211a2ca762e..03e34f214aea 100644 > --- a/drivers/cdx/controller/mcdi.c > +++ b/drivers/cdx/controller/mcdi.c > @@ -611,7 +611,6 @@ void cdx_mcdi_process_cmd(struct cdx_mcdi *cdx, struct cdx_dword *outbuf, int le > { > struct cdx_mcdi_iface *mcdi; > struct cdx_mcdi_cmd *cmd; > - LIST_HEAD(cleanup_list); > unsigned int respseq; > > if (!len || !outbuf) { NAK. Ouch! Something went wrong in my compile-testing process for this one, sorry for the noise. CJ
diff --git a/drivers/cdx/controller/mcdi.c b/drivers/cdx/controller/mcdi.c index a211a2ca762e..03e34f214aea 100644 --- a/drivers/cdx/controller/mcdi.c +++ b/drivers/cdx/controller/mcdi.c @@ -611,7 +611,6 @@ void cdx_mcdi_process_cmd(struct cdx_mcdi *cdx, struct cdx_dword *outbuf, int le { struct cdx_mcdi_iface *mcdi; struct cdx_mcdi_cmd *cmd; - LIST_HEAD(cleanup_list); unsigned int respseq; if (!len || !outbuf) {