Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp855558ybx; Tue, 5 Nov 2019 06:38:40 -0800 (PST) X-Google-Smtp-Source: APXvYqy6Bq/evKNEUd1d62yZOO7JdAc1Qo31XjPjkMg3NuZ5GntqSG/V0HfR5t965mjahrg6JnUC X-Received: by 2002:a17:906:9418:: with SMTP id q24mr28959899ejx.28.1572964720307; Tue, 05 Nov 2019 06:38:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572964720; cv=none; d=google.com; s=arc-20160816; b=ZVYYAWfPtKbuZKpyhxELZfD8BMLMOOWBNra6+i/YaP+AtbXts/fEZNKXGmVJ8I8W/p YmNIdkkh0a4r6wKk6jJTXB7E6XhbhaSF4BJq/X0ilka1bVO/4ZJXG/4eNgUjEQtU57zV 1F98MEbas9Gd92N76e/QoCkM8Lbz1LaFWyzuurNPfLO5ygRAnpF/BOMBG2qYdi62mXMn BfSzTf0yGtQ7uzTtwiIGE9A+kDEg27iaErSA7pQL8oLO5BJNxYrSSJ60EvLQczAWvDhb j7gwIh5ThgY2aobHpRGNP4JT/w+lDQn4sCrOLFLY3jwUxGOhsxTMCniQnkj/DkJTqH/Z vqxw== 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:mime-version :message-id:date:subject:cc:to:from; bh=XtgKYj+PtRUGUZDRk755uLv5m+Uup3oI3ilh3YjS7SI=; b=m0Uf6q14O/zZjvscZicurg8wH9DqCBi7W673pnqshE6UG/kcbzjENiZBQ7hLWGzvcW mTgljHCmRImm9/0rCbShJQP0x5Psw7e035tQFwTXCZ0mMCsWowQkGECqiUNKEt3SPpfX MLZ1eox5ATwoMZveqK0HkV/QTJLR/0hzpQMI2Jjs8pdfnHHmsI42QXCi3dqF+q/bNxz8 8+jLQtFv2EGUE+sLrm1Ezn7sqUWXK0/uIm1Gg8EpEm58pLukmT3ctHVWrqbO1c9LhXke MCYXWZ74J2NMP+QAzHhP3GoTHNCbHLGf2JdCnKDLqViaqQUlcqA4eGfkQUJQTl4Cmf4t gWFw== 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 b7si10254362ede.12.2019.11.05.06.38.07; Tue, 05 Nov 2019 06:38:40 -0800 (PST) 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 S2389798AbfKEOep (ORCPT + 99 others); Tue, 5 Nov 2019 09:34:45 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:57634 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389763AbfKEOek (ORCPT ); Tue, 5 Nov 2019 09:34:40 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 5685F8DD25CC4EF26B11; Tue, 5 Nov 2019 22:34:38 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Tue, 5 Nov 2019 22:34:28 +0800 From: Mao Wenan To: , , , CC: , , , Mao Wenan Subject: [PATCH -next] crypto: hisilicon: move label err to #ifdef CONFIG_NUMA Date: Tue, 5 Nov 2019 22:33:40 +0800 Message-ID: <20191105143340.32950-1-maowenan@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org If CONFIG_NUMA is not set, there is error in function find_zip_device: drivers/crypto/hisilicon/zip/zip_main.c:154:13: error: head undeclared (first use in this function) free_list(&head); This is because CONFIG_NUMA is not defined, it should move label err to #ifdef CONFIG_NUMA. Fixes: 700f7d0d29c7 ("crypto: hisilicon - fix to return sub-optimal device when best device has no qps") Signed-off-by: Mao Wenan --- drivers/crypto/hisilicon/zip/zip_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zip/zip_main.c index 255b63c..0504fb2 100644 --- a/drivers/crypto/hisilicon/zip/zip_main.c +++ b/drivers/crypto/hisilicon/zip/zip_main.c @@ -150,10 +150,12 @@ struct hisi_zip *find_zip_device(int node) return ret; +#ifdef CONFIG_NUMA err: free_list(&head); mutex_unlock(&hisi_zip_list_lock); return NULL; +#endif } struct hisi_zip_hw_error { -- 2.7.4