Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2692470pxb; Tue, 23 Feb 2021 13:10:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxeO8Nn73C0gYpA0kKwolrMxA8fJeGDUHWL9ZdURPsEC2A/tI85ob/XW2r9Q7ot2pLwYcPi X-Received: by 2002:aa7:d2ce:: with SMTP id k14mr12258155edr.190.1614114649444; Tue, 23 Feb 2021 13:10:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614114649; cv=none; d=google.com; s=arc-20160816; b=xqIzIUJbACwPeGZJGImgD8gSa8uHSeVVDHNn79VYU5tgbWAsafxEsVOO+kv6MNiyhh kq5ZEF+Q/aosp8Szg7xiOK3haPqzgdfj5OxliHgLLPQfvWD5xZ217xQpy0AZQCG32TaM h1Uf9JE5JnEccOtI3s+2nxfejsxsSy7/7t9Ny1W4Yfub6zzVPv59bg7dElgdPAP425gR blEYY+8ldxvnxWlig8FBXN3leR2R9FFHz7uuR63urC5mc6SFht1CpVbU2W7q5GMebns6 MmRaydcDP5pEyQaUp3MKyullV67T70UEk3o781E/J+n0aQMIFqr1DnuWm7U391iwCGbU pJ1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=msweh/H99w4qThhENJA/rCXk7boQQGH67HzAb2Ry+w8=; b=mt1nZV98bZO2OombLPrzV2oPEXcTXeSumfRu015R/VooAbR/GmJcfbxjup5LNpCZHi 5TmioQPJEyPCqserszKbnESSEJIY9ywdfao0HSbLKX0JQGcewNP1HPiYjvDkoNiWRjjQ vGg08uQW0AeULn1j50ogdc3M8dagIRRJizedIdoNAu2fR582g+asuqsk/68cdSAfsHUM jkaBdfYSc6PyiRd2biOBA0njw5cDzUE6BSG+neuEldCbLzCcIQ5ypKKhKZ+FJnmS39tD +25rUX82vrbqj6IPK3wL/1LXlvujlWqD4GdtX+0Za5fmGFzsmMxmeaqPMRz81Iy9sSBZ jQOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YJ4c8V9G; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p24si15095034edw.475.2021.02.23.13.09.39; Tue, 23 Feb 2021 13:10:49 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=YJ4c8V9G; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234422AbhBWUhW (ORCPT + 99 others); Tue, 23 Feb 2021 15:37:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:45842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234404AbhBWUhT (ORCPT ); Tue, 23 Feb 2021 15:37:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F1A564EC3; Tue, 23 Feb 2021 20:36:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614112599; bh=yEGgFL8k53m3R7IpaGtWjZIWePAa7cqEb/2P0j1Tt5E=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YJ4c8V9Gpnr2S8WYr2Dwqtz/+cXWXraXKQEe7Aa1KUf39IvEjwRAJz1RLt8SgFWGk qHVjhc2Iy+lt38JM+xJwa8YOFzw5PU1hNViIKvCA5BCcoh0tJDFaElTZwJlblCU9VK MdJQm0e8SdAeUzCFckTd3ku26rAfsyKspSEJ8vYy/2hpWve7//SbYqSN+kTLZKiNwU /NYw2MpJTJe4ikTyh8IVTeTLxq5gRMabZ72Wj74NteiovaMLAxLt5fNevQvfrMj5pl 6wCTyZmOUdWCY/gbHm54kltnAz7XqzQ95f90Sli44VKgs4terBDIjY18Xe4FwbVhCZ /hm4iHAmQJmlg== Received: by mail-ot1-f50.google.com with SMTP id b16so17017317otq.1; Tue, 23 Feb 2021 12:36:39 -0800 (PST) X-Gm-Message-State: AOAM533UNupuRSngbyFXSQ3d3soyKcysh+aPHMeV1Z5o7ztALJm2N5/j h8ya4ZEPc3KvUb/teuv9zXdTjQfrLwNtoC6SgVU= X-Received: by 2002:a9d:6b8b:: with SMTP id b11mr2790661otq.210.1614112598462; Tue, 23 Feb 2021 12:36:38 -0800 (PST) MIME-Version: 1.0 References: <21525878.NYvzQUHefP@ubuntu-mate-laptop> <20210222155845.GI2643399@ziepe.ca> <20210222164645.GK2643399@ziepe.ca> <850d8bf2-c5a0-9fee-f95f-2dfc7d22a528@infradead.org> In-Reply-To: <850d8bf2-c5a0-9fee-f95f-2dfc7d22a528@infradead.org> From: Arnd Bergmann Date: Tue, 23 Feb 2021 21:36:22 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drivers: infiniband: sw: rxe: fix kconfig dependency on CRYPTO To: Randy Dunlap Cc: Jason Gunthorpe , Leon Romanovsky , Arnd Bergmann , Zhu Yanjun , Julian Braha , Doug Ledford , RDMA mailing list , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2021 at 5:53 PM Randy Dunlap wrote: > On 2/22/21 8:46 AM, Jason Gunthorpe wrote: > > > There is nearly 1000 places that use a 'select CRYPTO_*' in the > > kernel. > > > > I see only 60 'select CRYPTO' statements. I think most of these are correct, as you typically have a single 'select CRYPTO' in combination with a couple of 'select CRYPTO_*' ones for the specific algorithms. I just added a lot of 'select CRC32' statements to deal with all the build failures in drivers that require this but fail to have an extra select statement. The way I got the list was to start with 'make allmodconfig' and then recursively disable everything that had an explicit select, until I was left with all the modules that need it without selecting it. The same method could be used for CONFIG_CRYPTO, but it's a few hours of work. > Correct. :( > We (community) tend to fix bug reports, not do global audits > to see what needs to be fixed (with a few exceptions). > > > I'll gladly wait to see what Arnd says. For the specific case of CRC32, it might actually a good idea to change the code to call into the CRC32 code directly instead of the CRYPTO_CRC32 abstraction. Would that work for RDMA_RXE? Arnd