Message ID | 20191106141308.30535-6-rth@twiddle.net |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp666316ilf; Wed, 6 Nov 2019 06:14:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxGkMp9VNj3ipxAHFDfis6y0H2jwxrue/H6cuSxA4rTHRZ2VxOgTgErQrensV19L9di6Ft0 X-Received: by 2002:a50:9850:: with SMTP id h16mr2980166edb.193.1573049676990; Wed, 06 Nov 2019 06:14:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573049676; cv=none; d=google.com; s=arc-20160816; b=PJf5kWQ2SjlMkDsoLoCD7lgUa0tSVm5xN7Fb4EzXOBWBqq7izuKwMEmqGW/nXp6NSm Og0yChwwNIveHDYbjgQNbu8W+vc5r2YPwWySNTlsaB0N7v2F4hrst1XqAmuQ+n0okOYq NANQqg76/sTfztVq/Qr4g3WEFfsbtZLHSSkQ1iwjGBVaoFufQG1knunJH0lKTHrSTCGV thqFMRZjndsJmDQKBB4zyqLjsqe6FDotLjdDtbnwbwq3PACs+HS1Jg6OZAvXMlRp0USi 7ag73AohS1TVD/5XnpPgeuAk3H/93aYPLe8hZMnwkiHAW0QQFS8vYsZLJxI6q4DoiqiF mVAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=WSWMpSoTK1qPuZQMUXUs+rrNl9psDWT+JwajLc5x63s=; b=B4b89s0cCGs6iMACNBQI+Zj6CTlGxZCj9JYzfjWJVqIrZFakNCdP4ELzgo/zu+ynrZ S/jAdIeivm4zmxAXmSkHDqhT7wLvsOGZruFbTtezN6mK0Ou+yZncSZ9rM6skeed1sQuD 3bmpTHzOPgBZp+Qx8Kn7UqAYkXkhyAO3Cw31e5tTZjjeLstzqrdkkbizws06tPfBWM67 Az/Bctkyo3GBkGDlRcq936OxA97DUG1xvaSbxJLjb/+0LxyAh4ZhE3VrdA1BJTHh34gp /YsoL6UWU3ruU7wfqxhOBFAH2gH2QfF7ITUyCvCaaECh8pGpja+Oh9f9L1f/FX4wsWn0 4IVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o3RLE9hu; 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: <linux-crypto-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si15189348ejp.287.2019.11.06.06.14.36; Wed, 06 Nov 2019 06:14:36 -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=o3RLE9hu; 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 S1731807AbfKFOOA (ORCPT <rfc822;sumit.garg@linaro.org> + 3 others); Wed, 6 Nov 2019 09:14:00 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:36048 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731870AbfKFONc (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Wed, 6 Nov 2019 09:13:32 -0500 Received: by mail-wm1-f66.google.com with SMTP id c22so3546858wmd.1 for <linux-crypto@vger.kernel.org>; Wed, 06 Nov 2019 06:13:31 -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:in-reply-to:references; bh=WSWMpSoTK1qPuZQMUXUs+rrNl9psDWT+JwajLc5x63s=; b=o3RLE9hugfNMGeayOKXMF63poaTZyNZSixnercrQpPsfWWgoGcVsahZ9wGvxqajkTL 65VNFHB6mdXVYgOXplvY1kFNexysDEPq5Mte9WIOjqcg1aowVtTrhVDsnT0wub/uMIGv 9plm99mfCRtSEw63V2+FJEO0avUTLLDH0v6gLjF9DVOTaBg6oIbNyb7sjS7eGkIP45xe 49mB8MByUP2KQml5xF2ln4ggynO86gSJMmUBV6ZeCzC7nwpX1YYgQOkj2KBMtTdJsDRM SSr5E0h3bqcqVqwF535O59szwWAxXieho+zlqJlenhqMZUeXa7L9rW2HfuF4DfbrOvdy Hi6A== 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:in-reply-to :references; bh=WSWMpSoTK1qPuZQMUXUs+rrNl9psDWT+JwajLc5x63s=; b=ZItKAQQyByGPRsuvAW4V8xee+31gxwnIEO65Ohi4vtb1BONOveKlSoPBzwfTdT9rj6 VYDCiGhB0MabFYSJbt9psUC+26viKpRHJrQ7LTHuwgjBGiO4Vd7xb1INi2XS9yx/JL9l Q0FGrOsg3yuBQN48Z1wD4kp2eJKoDkb4YkooyWhPvLSPyhf/8DYoHztKR0KLS/vKK666 hn+9+mm3czXfIye74Aj7lQoH+00Xhnv//S1dpDZ5KA9mzFJOXgizR3yj5H8P7osVMHeB KYceAEA4OxpexEZSpOZP+y4eBBWM90hXHi1kPygTNwyjWM+Dn9yMjkrkm1TvIOVKMnjI OLFA== X-Gm-Message-State: APjAAAUsWvHh6k5MGo34RuH2dctEhV0dVLZ0eha0HBsw6BGkGqyREm9k ekjgwZ32By2OOxhXJlrT+vZYV5A+ER2c5A== X-Received: by 2002:a1c:9a15:: with SMTP id c21mr2802805wme.93.1573049610656; Wed, 06 Nov 2019 06:13:30 -0800 (PST) Received: from localhost.localdomain (31.red-176-87-122.dynamicip.rima-tde.net. [176.87.122.31]) by smtp.gmail.com with ESMTPSA id b3sm2837556wma.13.2019.11.06.06.13.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2019 06:13:30 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> X-Google-Original-From: Richard Henderson <rth@twiddle.net> To: linux-crypto@vger.kernel.org Cc: herbert@gondor.apana.org.au, linux-arch@vger.kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 05/10] linux/random.h: Use false with bool Date: Wed, 6 Nov 2019 15:13:03 +0100 Message-Id: <20191106141308.30535-6-rth@twiddle.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191106141308.30535-1-rth@twiddle.net> References: <20191106141308.30535-1-rth@twiddle.net> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: <linux-crypto.vger.kernel.org> X-Mailing-List: linux-crypto@vger.kernel.org |
Series |
Improvements for random.h/archrandom.h
|
expand
|
diff --git a/include/linux/random.h b/include/linux/random.h index 7fd0360908d2..ea0e2f5f1ec5 100644 --- a/include/linux/random.h +++ b/include/linux/random.h @@ -169,19 +169,19 @@ static inline void prandom_seed_state(struct rnd_state *state, u64 seed) #else static inline bool arch_get_random_long(unsigned long *v) { - return 0; + return false; } static inline bool arch_get_random_int(unsigned int *v) { - return 0; + return false; } static inline bool arch_get_random_seed_long(unsigned long *v) { - return 0; + return false; } static inline bool arch_get_random_seed_int(unsigned int *v) { - return 0; + return false; } #endif
Keep the generic fallback versions in sync with the other architecture specific implementations and use the proper name for false. Suggested-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Richard Henderson <rth@twiddle.net> --- include/linux/random.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.17.1