Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp343791ybx; Fri, 1 Nov 2019 04:30:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmjgtrwfGCw8txia2WuGpX8knhm01zCcHTLurt2GIxC3GYBx1JZoFLI239ob7PRyp9j89Y X-Received: by 2002:aa7:c1d4:: with SMTP id d20mr12125461edp.47.1572607820708; Fri, 01 Nov 2019 04:30:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572607820; cv=none; d=google.com; s=arc-20160816; b=UOT5NkBYqP5Yl6G21lci3gEJG1PY1WGkDPuVCnXBsybvfDx2l/UeE9b0O74s4ttXUI 3UkEaWJSIPiTJpAikmPq8wxoFYSHGsy9aO2mZ/vGSFqzkAwp79V9a9znKXewCBlV+JTS TByzca3lMZJkx5RafYwdxIAZigNQ3wHkbfxtzClVS5jj6RwgLTMUIKue+pbzzpAIm/13 WkOu4+LBw7Rd1JwUlkfS4ssjYAeFzQcViN0gfmsIRi1NIg/cfJBgf81vkGwMFb2yWgFk 5Q8IPaE5SZKvYtOda1YFcI8ftqz15eQWw9rv0w18nqCFc0oIsGYE2BBcN4rjJ8hHcYuK yfcA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=9jambhBspYJ22UND8rdSRFPTm0sM9R1C+O+buYUnrb4=; b=uS+uD4OyMVdgugU3SIEd+qWpPKQUsMqZ0A9OywfvcdD+VHRBFvVhtvmOFBA1jNnwEB YdWnRE62XRC9jZ5/ZV8wVbHcrtGMTzvSMKlWrIl7z3hLrccM9rJDu8plDJo4tIgaxGve Z5T4zgqAt0j4AegJqqMbJRtLz+dDfj2Xw5fnmBNS6jrq15WjepsqVNO/zXTeYc9J/UcU 3O8UEcNme+0Ktr3iAkTxoKEtY71pDeOLjh5Q3NMjzdGDPJ1xYI8BzaXCiJoCvXfi2Pu8 y6EBqHXv4iRp3MsAVtwpH7lRlhpGROMp20+w0M0IwzzQxqSg+92JmhX6oD6/S7OZ29lA PuDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8si102059edb.57.2019.11.01.04.29.47; Fri, 01 Nov 2019 04:30:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730203AbfKALEO (ORCPT + 99 others); Fri, 1 Nov 2019 07:04:14 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:37748 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729855AbfKALEO (ORCPT ); Fri, 1 Nov 2019 07:04:14 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 72A3E30F05D50A6BFC73; Fri, 1 Nov 2019 19:04:08 +0800 (CST) Received: from [127.0.0.1] (10.63.139.185) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Fri, 1 Nov 2019 19:03:59 +0800 Subject: Re: [cryptodev:master 162/163] drivers/crypto/hisilicon/zip/zip_main.c:154:13: error: 'head' undeclared; did you mean '_end'? To: kbuild test robot References: <201911011637.ZqPb4BBG%lkp@intel.com> CC: , , Herbert Xu , Shukun Tan From: Zhou Wang Message-ID: <5DBC111D.7020101@hisilicon.com> Date: Fri, 1 Nov 2019 19:03:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <201911011637.ZqPb4BBG%lkp@intel.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2019/11/1 16:33, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master > head: 298b4c604008025b134bc6fccbc4018449945d60 > commit: 700f7d0d29c795c36517dcd3541e4432a76c2efc [162/163] crypto: hisilicon - fix to return sub-optimal device when best device has no qps > config: alpha-allyesconfig (attached as .config) > compiler: alpha-linux-gcc (GCC) 7.4.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 700f7d0d29c795c36517dcd3541e4432a76c2efc > # save the attached .config to linux build tree > GCC_VERSION=7.4.0 make.cross ARCH=alpha > > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot > > All errors (new ones prefixed by >>): > > drivers/crypto/hisilicon/zip/zip_main.c: In function 'find_zip_device': >>> drivers/crypto/hisilicon/zip/zip_main.c:154:13: error: 'head' undeclared (first use in this function); did you mean '_end'? > free_list(&head); > ^~~~ > _end > drivers/crypto/hisilicon/zip/zip_main.c:154:13: note: each undeclared identifier is reported only once for each function it appears in > drivers/crypto/hisilicon/zip/zip_main.c:153:1: warning: label 'err' defined but not used [-Wunused-label] > err: > ^~~ will fix this by IS_ENABLED(CONFIG_NUMA). > > vim +154 drivers/crypto/hisilicon/zip/zip_main.c > > 104 > 105 struct hisi_zip *find_zip_device(int node) > 106 { > 107 struct hisi_zip *ret = NULL; > 108 #ifdef CONFIG_NUMA > 109 struct hisi_zip_resource *res, *tmp; > 110 struct hisi_zip *hisi_zip; > 111 struct list_head *n; > 112 struct device *dev; > 113 LIST_HEAD(head); > 114 > 115 mutex_lock(&hisi_zip_list_lock); > 116 > 117 list_for_each_entry(hisi_zip, &hisi_zip_list, list) { > 118 res = kzalloc(sizeof(*res), GFP_KERNEL); > 119 if (!res) > 120 goto err; > 121 > 122 dev = &hisi_zip->qm.pdev->dev; > 123 res->hzip = hisi_zip; > 124 res->distance = node_distance(dev->numa_node, node); > 125 > 126 n = &head; > 127 list_for_each_entry(tmp, &head, list) { > 128 if (res->distance < tmp->distance) { > 129 n = &tmp->list; > 130 break; > 131 } > 132 } > 133 list_add_tail(&res->list, n); > 134 } > 135 > 136 list_for_each_entry(tmp, &head, list) { > 137 if (hisi_qm_get_free_qp_num(&tmp->hzip->qm)) { > 138 ret = tmp->hzip; > 139 break; > 140 } > 141 } > 142 > 143 free_list(&head); > 144 #else > 145 mutex_lock(&hisi_zip_list_lock); > 146 > 147 ret = list_first_entry(&hisi_zip_list, struct hisi_zip, list); > 148 #endif > 149 mutex_unlock(&hisi_zip_list_lock); > 150 > 151 return ret; > 152 > 153 err: > > 154 free_list(&head); > 155 mutex_unlock(&hisi_zip_list_lock); > 156 return NULL; > 157 } > 158 > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation >