From patchwork Thu Nov 14 11:33:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 179399 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp10929774ilf; Thu, 14 Nov 2019 03:34:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwBEunnrocy0RJ8KPfmLHkESmE7O0+Xu+ShGokldfTS4OqGS7aPeRFAiQKngLoJJVAVHgwQ X-Received: by 2002:a17:906:394c:: with SMTP id g12mr7777276eje.233.1573731244924; Thu, 14 Nov 2019 03:34:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573731244; cv=none; d=google.com; s=arc-20160816; b=GOLMP0zVFnwv6B42Yhm3vDax65CfWsodvDc1lf0jOb12BHOhGL7j9Ju1DCqYeLUQbd xRsjldeWRNQsgg78OfTAdm4Mk09snwRvLT8bEq29OE1hSc9JBQY/nO344SVv0zwsUhVI w1l1DYLWPkjtNzQN9XzZb9JxENcd2Q0L+jfhaLXD4UNOpYYRidryYgG8pfDhy6uubA3A aQZN1b/n+QQkittuKh/Vf1HbWQ32dMLe8o+YaMUxGSP15Th5reB5KSxf2g0fKr7eU5gJ UC4/cxjkGhpDCTztDJaQ2ojvGBieGT1GiwG7taFYnTObkOJ/620wjjauGb4EmawhrG+3 jstQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=hXXV/2kIvB08deAA2EN09TWub+GXZhxQylBGV0wly2o=; b=vXQErmqnR0fZUygcdatL9gbaqxJX4TFOT4Em1g9BrQAwKAHDheq4IfzCunVqsNb1N6 wb9m8UB1EOXGxevX/IGE7/wrm0BbSkRn/DOrKPgikuoIME2x3o+wVlKzDEhLf1BTzSBh Zw1zt50WqKZZM86dMKQ7rlkhUMonfXxD318cMJ+l7WgFYknzWhUUKcKQWc9Hmit0UM71 p81NWSOn/4JICK8wB79Ps6GKo2ss+q+6eZ8g/dlkWim57XV63imFMUBN8lwj5O/Cr73e Dj7LXHwOvw2oDONbJsX2ce5cWjLCOOCyUYpw0qjQTqGrJ2C7SXK8pbiRf18kAB+mAg2S Astg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kiaWUZsh; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si3513391edp.177.2019.11.14.03.34.04; Thu, 14 Nov 2019 03:34:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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=@linaro.org header.s=google header.b=kiaWUZsh; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726139AbfKNLeC (ORCPT + 3 others); Thu, 14 Nov 2019 06:34:02 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:56227 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726179AbfKNLeB (ORCPT ); Thu, 14 Nov 2019 06:34:01 -0500 Received: by mail-wm1-f65.google.com with SMTP id b11so5297411wmb.5 for ; Thu, 14 Nov 2019 03:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=hXXV/2kIvB08deAA2EN09TWub+GXZhxQylBGV0wly2o=; b=kiaWUZshTXZr77I5eM6Iord4uC+esCXUajeEDu2SLSeAXVtTQJxNXvn/FQxeDmINbP hT17ITCVf33E7Nuo5Pa2+FdnKKivHy4MyMPQj4CZH8O0ULOonqs1/Mepgy1lCxDcDDPo upBGlMw+9BhH8O2H4d2RY0V+vFjd6vM0zb3QqRYrGGOiaEwfmpMMoyhldK6cQ8vgcDHo 9zQTdLi2HBjEGiZY49KODbfy6ti/XQ9hA8mH2PPqLNLouCSyZXIFF4NW8Y5QNvIW/7Yd /8KJ42P5CDv61U5sOVP7bcOPKI3zBjG5FL6it8hU7ucv8Nz4lbnbLUSrjLtHXxwnRcX7 oNDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hXXV/2kIvB08deAA2EN09TWub+GXZhxQylBGV0wly2o=; b=V1UuKnJq9GhpjsijwO3YbrkAk7ouRyVi3up+sUUtuClap35MtjKWhYEf4EWrK7oBlU DUxJYVq8+NXEVC0dnlKYykLt5cX8izEF44aXKGWdAQZ8AFn4dbTKjFufvCjzvr6OLWDq uz1UzjJBTU2rPP5em6hMy34rWE/XQQeb33w+8CSLLgJ3Jter3ucfK+FgIMdN+OAqatjW FbugtKhx5x2oSKOJPzLc3uUqiOKHsYOgCqPQsdapA07TxrBd18RhJ9Cep9ac81usGcWT 46rnmpETEVxHl/7yVPEkre1f4U90cW3OURrZvIHA8Ax+U4TJ1o8QM+hJ92jBS4wkgXVS 6Vkw== X-Gm-Message-State: APjAAAXZHVVPrwj+2yMNrqtlnOmHRezhKdoqABKthKhdtvFqIMrVUlCF LLLV6NVWqFTbPFXTSOI9dWhBIgSPFJurRA== X-Received: by 2002:a05:600c:230d:: with SMTP id 13mr6806183wmo.159.1573731239464; Thu, 14 Nov 2019 03:33:59 -0800 (PST) Received: from localhost.localdomain (184.red-37-158-56.dynamicip.rima-tde.net. [37.158.56.184]) by smtp.gmail.com with ESMTPSA id m187sm3324275wmf.35.2019.11.14.03.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 03:33:58 -0800 (PST) From: richard.henderson@linaro.org To: linux-crypto@vger.kernel.org Cc: linux-arch@vger.kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Richard Henderson Subject: [PATCH] random: Make RANDOM_TRUST_CPU depend on ARCH_RANDOM Date: Thu, 14 Nov 2019 12:33:46 +0100 Message-Id: <20191114113346.25138-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Richard Henderson Listing the set of host architectures does not scale. Depend instead on the existance of the architecture rng. Signed-off-by: Richard Henderson --- drivers/char/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index df0fc997dc3e..3c2123a23600 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig @@ -539,7 +539,7 @@ endmenu config RANDOM_TRUST_CPU bool "Trust the CPU manufacturer to initialize Linux's CRNG" - depends on X86 || S390 || PPC + depends on ARCH_RANDOM default n help Assume that CPU manufacturer (e.g., Intel or AMD for RDSEED or @@ -559,4 +559,4 @@ config RANDOM_TRUST_BOOTLOADER device randomness. Say Y here to assume the entropy provided by the booloader is trustworthy so it will be added to the kernel's entropy pool. Otherwise, say N here so it will be regarded as device input that - only mixes the entropy pool. \ No newline at end of file + only mixes the entropy pool.