Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2930115iog; Mon, 20 Jun 2022 07:42:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sYyG+Cy+RJuQ9c1iBZf12/TBJd5eAGpIbxcWlO5IBETlMWEPEI8pK72LO2cQg1coJ5nyzJ X-Received: by 2002:a17:903:2612:b0:16a:30f:321f with SMTP id jd18-20020a170903261200b0016a030f321fmr18513835plb.69.1655736176005; Mon, 20 Jun 2022 07:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655736175; cv=none; d=google.com; s=arc-20160816; b=q0KbqCas6vUmt5PzkK0eHjGcdHV7c7OUvZhRrTGckxhwFv9jB7ye+4Pezw33oCgun5 kl+lRBqHAwB/Ty8r6Tpz6322sxkWUcvq1Q6ab0kI6o2iNdGiBcq5Nt6cVEIAzzJMwqlN x3tG/ek2KtZwEju7gO4Z3rG6BR9pSgiN6qvh+oDJkbgv42OXCfpM3LL4I7POAhltS6k6 QKNxaUZxZ6PicBl+rGj0Hy4y1Z1p+fucx6lvnNeU7lz8pgCk85x2WL4zLvv+MuEL6rEi dmh/du17SgDxD1WF86XILkBptxYuTACoIdRZuXLwyCm6ko6zjFZx9eFremmDtscKw+FJ X3+w== 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=d6MYXKzaRdd6XdUdSDIadcCWBOf8bAW4Q9uqxGuwFjg=; b=CQrWGppEo3rzTyUtwSDhkQuAUcJPiHi1yjiLsommPdzchIl1kZA/AXepnpvBzxkEht hwvLNAYtDLy1Urv+Vbph2c6qtSNObFmM849DluZ1SGhV4o0Tuy9P1VX/HHM+yEvSm+VP P9xaI6+5rTaHUNcDcOibM/64tY4Uq1q0Tf4SfPjShxTDR18Y6zYb9tamWsT4GPcvbs6U eN+ALPWVLEcnku4YZgvla99ik4xTRFAbK7rxik880+79VfHy3qoQpUirTMulyFHJH4me DRfbUCVVDvrtoFu5YDKouIQLqgELu6UqlMrzD9NgPboTZNv+kb0HRODwctWaNQNuNI+7 shHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HBsCW8Zv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r26-20020a635d1a000000b003fb238f91besi15495623pgb.738.2022.06.20.07.42.42; Mon, 20 Jun 2022 07:42:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HBsCW8Zv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1345790AbiFTNav (ORCPT + 99 others); Mon, 20 Jun 2022 09:30:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346370AbiFTN24 (ORCPT ); Mon, 20 Jun 2022 09:28:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6069F240B5; Mon, 20 Jun 2022 06:11:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B67F4B811DD; Mon, 20 Jun 2022 13:11:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F9CDC3411B; Mon, 20 Jun 2022 13:11:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655730702; bh=VX61gT+Y08KmB0rcQK6oQt7Le4cwnWnzjxbdvU33n7k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HBsCW8ZvLufSCuxSfGjnu2FAVYhvu5okFk7akNzK1/Au3BaERcg10Yeq9FAbb6puw MxceYzcQMLr0wwHAHYIFPyY2YDAH84b8T98+4VFHEN0D4OIhUASwJu0fcmWoncuTex 6EVhnKF80UuFJYJ5b7xEj9UvVSxN7CH6AUUoVcEg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ard Biesheuvel , Richard Henderson , Mark Brown , Theodore Tso , "Jason A. Donenfeld" Subject: [PATCH 5.4 030/240] powerpc: Use bool in archrandom.h Date: Mon, 20 Jun 2022 14:48:51 +0200 Message-Id: <20220620124738.719312946@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620124737.799371052@linuxfoundation.org> References: <20220620124737.799371052@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Henderson commit 98dcfce69729f9ce0fb14f96a39bbdba21429597 upstream. The generic interface uses bool not int; match that. Reviewed-by: Ard Biesheuvel Signed-off-by: Richard Henderson Signed-off-by: Mark Brown Link: https://lore.kernel.org/r/20200110145422.49141-9-broonie@kernel.org Signed-off-by: Theodore Ts'o Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/include/asm/archrandom.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) --- a/arch/powerpc/include/asm/archrandom.h +++ b/arch/powerpc/include/asm/archrandom.h @@ -6,27 +6,28 @@ #include -static inline int arch_get_random_long(unsigned long *v) +static inline bool arch_get_random_long(unsigned long *v) { - return 0; + return false; } -static inline int arch_get_random_int(unsigned int *v) +static inline bool arch_get_random_int(unsigned int *v) { - return 0; + return false; } -static inline int arch_get_random_seed_long(unsigned long *v) +static inline bool arch_get_random_seed_long(unsigned long *v) { if (ppc_md.get_random_seed) return ppc_md.get_random_seed(v); - return 0; + return false; } -static inline int arch_get_random_seed_int(unsigned int *v) + +static inline bool arch_get_random_seed_int(unsigned int *v) { unsigned long val; - int rc; + bool rc; rc = arch_get_random_seed_long(&val); if (rc)