Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3010511pxb; Mon, 18 Oct 2021 06:33:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/2MQ+f2dHo3D/ohPGPoYH/HtC4zq7nLiqC22Pvc5RmvP5rwOf+nMfKo7Kr2jXb1RIDyaA X-Received: by 2002:a17:90b:4b06:: with SMTP id lx6mr11678964pjb.220.1634563995140; Mon, 18 Oct 2021 06:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634563995; cv=none; d=google.com; s=arc-20160816; b=rF43LKCZYoqlFTzlNy54r76wm3BhwcGmTphzP+nSH0yALilSJPQPZ7VNL0CEnmKqLT oPJeBiRJ6ZdxM64inmkuWztSYsHlPfHZhXMj/9Kz1Rzc2tMSNVCFRU3LhHlDkCv74Q0l KVRjs+tmYIKZSDp37qAadb1ginxisKWdcHWhI2r0LYx8cjWnHqF8VlS53hje0/+UBpvj 31e4E6rF9/fFGWqj4VyhtUcKGaaOcNLE13VRlQNhCsD6XP+dadgfNQZzLx/+wMN3QKRA 4sFAfTSNlZw5ZX1TAHnUxXJFLt177Wc7eABh/SOh2lBgp4eOSgkHSD+fZJzLPRHYAEWN +Jhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2t0DYlkFLt+CLUVygIcg/MQ9DQ+Eja+pflPwZAEwvu8=; b=RLlzsmlEcEphslNsARe1eOmKdfsl5GGpadv2Jv19urW39l/y0G8/OQi/EgvpveuIKy NMiUzcTy90tdAOxtJoUwapYX8WRj1Sk4WuqxT2Oj4ijgOnD1y86uhWD4rn79cQBq292z KnXHLr3rJBq6o/qxOFQAzUZxnFoL70sVmEz8FRTsO8fqOJgdvKDMxZau3XmspyZ/Ue4Q a0+TCT9ff1/Uu9DMCRNuaQdMRlGiFcEwspd/DjtVzR7sgkyNus1T6S0ZJubxiBonOz/I 7oj3+/g+Ieryg3284s56jg2KXzllaB+dtgkH9RYdZwcb2Ch6SX+q4p4Cl8AYyBnsztN1 Yx7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rffjc8TI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si19219279pfg.60.2021.10.18.06.33.01; Mon, 18 Oct 2021 06:33:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rffjc8TI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232841AbhJRNeM (ORCPT + 99 others); Mon, 18 Oct 2021 09:34:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:42838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233055AbhJRNcX (ORCPT ); Mon, 18 Oct 2021 09:32:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A7816137B; Mon, 18 Oct 2021 13:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634563751; bh=u8O7nu3IFo70M67z9E3h7OH31dB0utrND8ayViNyC0o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rffjc8TIttC9pe57kJ+0SbzSTWoUoaCP7ha7lGCqA7c+G4YN3pFzb1Neh4H8Caaix CBgc5e5ZkNnEpFx8QJJxK7muqXcYpUnE3YMrG7R6KX0VRvNR2DHNJdHVj+8V35omlB uyLb2zb4zDOjy5LmXGra8cyOvEAbFRWYCtcXOWpw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vegard Nossum , "David S. Miller" Subject: [PATCH 4.19 50/50] r8152: select CRC32 and CRYPTO/CRYPTO_HASH/CRYPTO_SHA256 Date: Mon, 18 Oct 2021 15:24:57 +0200 Message-Id: <20211018132328.188381894@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132326.529486647@linuxfoundation.org> References: <20211018132326.529486647@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vegard Nossum commit 9973a43012b6ad1720dbc4d5faf5302c28635b8c upstream. Fix the following build/link errors by adding a dependency on CRYPTO, CRYPTO_HASH, CRYPTO_SHA256 and CRC32: ld: drivers/net/usb/r8152.o: in function `rtl8152_fw_verify_checksum': r8152.c:(.text+0x2b2a): undefined reference to `crypto_alloc_shash' ld: r8152.c:(.text+0x2bed): undefined reference to `crypto_shash_digest' ld: r8152.c:(.text+0x2c50): undefined reference to `crypto_destroy_tfm' ld: drivers/net/usb/r8152.o: in function `_rtl8152_set_rx_mode': r8152.c:(.text+0xdcb0): undefined reference to `crc32_le' Fixes: 9370f2d05a2a1 ("r8152: support request_firmware for RTL8153") Fixes: ac718b69301c7 ("net/usb: new driver for RTL8152") Signed-off-by: Vegard Nossum Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/usb/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/net/usb/Kconfig +++ b/drivers/net/usb/Kconfig @@ -98,6 +98,10 @@ config USB_RTL8150 config USB_RTL8152 tristate "Realtek RTL8152/RTL8153 Based USB Ethernet Adapters" select MII + select CRC32 + select CRYPTO + select CRYPTO_HASH + select CRYPTO_SHA256 help This option adds support for Realtek RTL8152 based USB 2.0 10/100 Ethernet adapters and RTL8153 based USB 3.0 10/100/1000