Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3041544pxb; Mon, 18 Oct 2021 07:08:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbs0C+Hhcsm6xbYQmMATMThoXkE3wk3cO/c75MPn+irDfo8MWEWHFPYk7vtumSQWKIpzlQ X-Received: by 2002:a05:6402:438f:: with SMTP id o15mr43710152edc.301.1634566139306; Mon, 18 Oct 2021 07:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634566139; cv=none; d=google.com; s=arc-20160816; b=gJlN38wy85tjn2rcRfpsMR8kWCtXA4ZsmJn+Y4QEzPDhCqDVs+ItMkr6K2rlq2WaNn XoJeF6UMk1Hx4Spf1m85z7IBjZV40fyR1lRIJhkqcKQ3x/Nuek2maXGrz7vsNQun67gT yye0JQvdsRQNaL0yfwzl+QQog8CMnAYIqAomy0858pQeDYMJ0OSaz+4WIP196F3iUbIL Up9OgCaDZDrLwxm538UTEBGBd//kiarFQTHb3zv+LQkWJOAFFfpPPPxalU/jZb104NFU kwcGlYSarM1oXIi4ZRt55e/imeGmDmbUgcObzk88H30ba+DWaert3LFT+K+aYDxvv0R6 rMFQ== 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=b4GWCtMEzf9AOiD/4YeDImHcoSvh4G7K7nf92K5IqQA=; b=pPFhpiklqjYzGDOqurjnqCwIVgVdVHzXmsZn/yf2eknWTbDwKRKvXV5nm0RuodqNKc qAzGw+rDI1H3MQjttQ6VdIH//cZ/P0jBTQFTKBympGk19Y9yBWMQQeXKIMpYI7cfwh8G Ld2eQAPJ61m2LREhyuixVqn84LVd9L09ITvmZzdLdJMtlxS5qMWd2kUsz/u6YxVaV2Mv c+026qGBK6fqwDOS59M13oFbjvxdTq+RBGF+kRWSRekPXvdOcKi7zpNRk7DdsI5miSkN vjKXR5Xza3UlpFTwk2foz9rejO+fsVLeT4BsToMSEtsMMfoxW3S8C2yl9oKR1KAYGgUX ntKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G+rmLwZ3; 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 c23si20304649eje.22.2021.10.18.07.08.33; Mon, 18 Oct 2021 07:08:59 -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=G+rmLwZ3; 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 S232601AbhJROGR (ORCPT + 99 others); Mon, 18 Oct 2021 10:06:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:39544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232548AbhJRODH (ORCPT ); Mon, 18 Oct 2021 10:03:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8A8AA61A71; Mon, 18 Oct 2021 13:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564606; bh=Iyu7TEnz67pI/qx6n5wEofWbBHfC59wdErmoqPzeylg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G+rmLwZ3JhVRFw1XsA7EFB6uOLBkeSt1j2Z0mmRKecy00/xMO1a1BN7xh9KJCeFt+ LJYgNCbWmLJbXV4Ur2a+2imUeGRKez+EKhHg9/vSH0we0LSyOTq8KpqgIt29D+ylGO GKFyMVBcOjedU4+E/gcILZEbyk2RrOi8rRCYkJXw= 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 5.14 141/151] r8152: select CRC32 and CRYPTO/CRYPTO_HASH/CRYPTO_SHA256 Date: Mon, 18 Oct 2021 15:25:20 +0200 Message-Id: <20211018132345.249714110@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@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 @@ -99,6 +99,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