Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3149564ybi; Thu, 18 Jul 2019 22:00:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqweiEueorSEra2zslTH05JI2UWCND9UKacaPHWPki4A1D3GRDktdMsoEkyBcNMTWtV/BKCH X-Received: by 2002:a63:7887:: with SMTP id t129mr52562500pgc.309.1563512445574; Thu, 18 Jul 2019 22:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563512445; cv=none; d=google.com; s=arc-20160816; b=u0m1+CsUrTnkhfMZd8M5xcToZCM9GnH78n5FJ288DlFO1J4QGaMOwg66/ymRuD/ynZ fT4n8Y5IdhqOfbHc/NZFsIXiRqrAyWAgQqEt0J5Xs6fuYdbDdJZBfR0BJ1ctJUQ2gsmM yIJjuCpsTsjKMXxXUVqlIyqFitk8M6Ln3YMrO2A3yLLDYeW4QkriHapLCHCNPo/d6cuK viMiqMnZRRlHQC5ugFq1WpIBNIWdIBY+8lTPhuNzB3Bz+r38OeS3PfWoHX2wotIBshPS y6OE9J22/8YoKZXq1p/exZhc/gXA4FmbdCDnrc+UA6mwTbOvwzOojjkrlVaGPrQzPRuc SFQA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Cr/JLxVyksbaVLOrp1wspkl2MpcLKeq6iaRZsCcTJ54=; b=wrjZ8JRe2Yw01AkRxXiSlum1eIpmeGN2pIE6tospxLWaifaLMELK3FbBsmHdbIY+bF rmtcMmqgyKOTvPXjf2uScE60UQMJdR9vPU2T0BgfQ2+tK5zoaTwFQqaTnEhQNuMp2NV5 u+DiwpEOlNZm4jqh7wBljQZA8uwNiMhookaFGeiMZieEa5i3VGMw5tmiyvyA0NSnAB6g lSRr3mj/ggu9jBWMGlNmwMK46b1iLWC6xcABh80uGxF7S5MID6hpomXSFnUpZu1AZPp2 8dM8Mv+MoJs4UbEmMX/2cNd0zkYhFP3KjQjFKJC4uRZ6jaGuqJYfpYb+5Dx1LuR2Hngd qzEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Sz4jSDsi; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si1321957plv.182.2019.07.18.22.00.28; Thu, 18 Jul 2019 22:00:45 -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=@kernel.org header.s=default header.b=Sz4jSDsi; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389637AbfGSEiC (ORCPT + 99 others); Fri, 19 Jul 2019 00:38:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:59136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727483AbfGSD7b (ORCPT ); Thu, 18 Jul 2019 23:59:31 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1BA8E2189F; Fri, 19 Jul 2019 03:59:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563508770; bh=3GGrEOm9fazLA5eumls6MQ4xq/akDvOrKzvg5TbmCUM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sz4jSDsiyRMvVJvoyIeoqAq6kElmEzTaHO1nUwLs+sSBK5qKtiWN/+kAO1oz0Qo6K Ie0sJSaEeTvzBMVBljwFqPt+3Lm0o2aGhjRbP+N+RuIUEDafk8zu0L2f8QSzDdNriQ OhVMvRIoNxX2qOQUdQKEfCHQE+QIQdtxELVgmy34= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: YueHaibing , Hulk Robot , Greg Kroah-Hartman , Sasha Levin , devel@driverdev.osuosl.org Subject: [PATCH AUTOSEL 5.2 080/171] staging: ks7010: Fix build error Date: Thu, 18 Jul 2019 23:55:11 -0400 Message-Id: <20190719035643.14300-80-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190719035643.14300-1-sashal@kernel.org> References: <20190719035643.14300-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing [ Upstream commit 3e5bc68fa596874500e8c718605aa44d5e42a34c ] when CRYPTO is m and KS7010 is y, building fails: drivers/staging/ks7010/ks_hostif.o: In function `michael_mic.constprop.13': ks_hostif.c:(.text+0x560): undefined reference to `crypto_alloc_shash' ks_hostif.c:(.text+0x580): undefined reference to `crypto_shash_setkey' ks_hostif.c:(.text+0x5e0): undefined reference to `crypto_destroy_tfm' ks_hostif.c:(.text+0x614): undefined reference to `crypto_shash_update' ks_hostif.c:(.text+0x62c): undefined reference to `crypto_shash_update' ks_hostif.c:(.text+0x648): undefined reference to `crypto_shash_finup' Add CRYPTO and CRYPTO_HASH dependencies to fix this. Reported-by: Hulk Robot Fixes: 8b523f20417d ("staging: ks7010: removed custom Michael MIC implementation.") Signed-off-by: YueHaibing Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/staging/ks7010/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/ks7010/Kconfig b/drivers/staging/ks7010/Kconfig index 0987fdc2f70d..9d7cbc8b12df 100644 --- a/drivers/staging/ks7010/Kconfig +++ b/drivers/staging/ks7010/Kconfig @@ -5,6 +5,7 @@ config KS7010 select WIRELESS_EXT select WEXT_PRIV select FW_LOADER + depends on CRYPTO && CRYPTO_HASH help This is a driver for KeyStream KS7010 based SDIO WIFI cards. It is found on at least later Spectec SDW-821 (FCC-ID "S2Y-WLAN-11G-K" only, -- 2.20.1