From patchwork Wed Jan 25 15:08:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 9537241 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5B8566046A for ; Wed, 25 Jan 2017 15:08:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C5AB1FE82 for ; Wed, 25 Jan 2017 15:08:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40CDD27FA6; Wed, 25 Jan 2017 15:08:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7E5E1FE82 for ; Wed, 25 Jan 2017 15:08:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751086AbdAYPIX (ORCPT ); Wed, 25 Jan 2017 10:08:23 -0500 Received: from mx2.suse.de ([195.135.220.15]:44537 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750790AbdAYPIW (ORCPT ); Wed, 25 Jan 2017 10:08:22 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8F5F7AD9F; Wed, 25 Jan 2017 15:08:20 +0000 (UTC) Date: Wed, 25 Jan 2017 16:08:17 +0100 From: Jean Delvare To: linux-cifs@vger.kernel.org Cc: Steve French , LKML Subject: [PATCH 2/3] cifs: Only select the required crypto modules Message-ID: <20170125160817.1d6fb22d@endymion> In-Reply-To: <20170125160639.255cd58e@endymion> References: <20170125160639.255cd58e@endymion> Organization: SUSE Linux X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The sha256 and cmac crypto modules are only needed for SMB2+, so move the select statements to config CIFS_SMB2. Also select CRYPTO_AES there as SMB2+ needs it. Signed-off-by: Jean Delvare Cc: Steve French --- fs/cifs/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- linux-4.5-rc0.orig/fs/cifs/Kconfig 2016-01-22 09:52:13.700961277 +0100 +++ linux-4.5-rc0/fs/cifs/Kconfig 2016-01-22 09:56:23.420279765 +0100 @@ -9,8 +9,6 @@ config CIFS select CRYPTO_ARC4 select CRYPTO_ECB select CRYPTO_DES - select CRYPTO_SHA256 - select CRYPTO_CMAC help This is the client VFS module for the Common Internet File System (CIFS) protocol which is the successor to the Server Message Block @@ -173,6 +171,9 @@ config CIFS_SMB2 select KEYS select FSCACHE select DNS_RESOLVER + select CRYPTO_AES + select CRYPTO_SHA256 + select CRYPTO_CMAC help This enables support for the Server Message Block version 2