Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6138782iog; Thu, 23 Jun 2022 12:09:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v9rL4mjMk4E/biF/t1jneEelUVboHo2yDDd7oigMyBcqLf15sxfnC1giAhfv4CZNzagvGY X-Received: by 2002:a63:2bc8:0:b0:3fe:22d6:bdb2 with SMTP id r191-20020a632bc8000000b003fe22d6bdb2mr8990933pgr.474.1656011356470; Thu, 23 Jun 2022 12:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011356; cv=none; d=google.com; s=arc-20160816; b=FtFBRfUZaXi80RmgPiv6fzuWCY3qNzBXNpy90PAJxbcMSt+qfJk6vmW2LaVNt/+XQ/ YPEaymBkdWuIJTVIdSgIvtzRqgqHVO5JQuismTL5LEKLZPMYgFaFe1RDIWlAoxNJgwoN nafXylGQTLo68fPkpIUHPp9qg2XfBY1ifmupnMaip+4DBXcnnlWJ/hgV0zBgCGP2OA1Y GLFweQnuE7ZqZb8AVBsgFsTdGnJHUTK3wTG/bCEAvuEgbxeYhNfPFXhxVNhZfzGllrX2 cv+GFlM4UeRlzMZVUOI6WsWlhRbVFeWMtclWH/+/YO7O3aZcvutbY03fpLv02vISL+Ts eUUw== 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=WlGnZHo41RIc7YGV9tBGnAe9eeJQuO/ik/67UeM69jk=; b=Zj5JmOlfLZky9esQvidtwfq6fPibd2VF3vstnIKjbYqVKHo2T1DdH93bfMvMg3F/mp QsyypY1ZOVTsA0L2ZsZ94Qbeoe7GM9ZzHsCEGfTV5kADuD2xXYmJPHS7hI67sFLjxCUc 7WMJS6S+oi1EP2bb8EqiLJQ+2dH1gcSN+rhvFWrZLcK0/ZGm9bIYyL9d+NlwTpB5MQHQ NK0/OoSf2XVuUsrQt1hOOHQeAmbOAG02JuhsTyJ2LNd0VUVNBfChLnWTXfmUvO94MVOU 25F8iehPXFi/N89Vhs2thadU107i3FKkiezQpMcwscXRxEVX0zEn6cG/uzkzj6fmbJDL 5cEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1Lq94yNL; 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 r12-20020a17090b050c00b001ecb528e0b2si3663572pjz.99.2022.06.23.12.09.03; Thu, 23 Jun 2022 12:09:16 -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=1Lq94yNL; 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 S233760AbiFWQ61 (ORCPT + 99 others); Thu, 23 Jun 2022 12:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233481AbiFWQvC (ORCPT ); Thu, 23 Jun 2022 12:51:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A93104F9CB; Thu, 23 Jun 2022 09:48:59 -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 12473B82491; Thu, 23 Jun 2022 16:48:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69F18C3411B; Thu, 23 Jun 2022 16:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656002936; bh=ag2YVSNlaVzVRkgSpBPxtBVA81ouLQWkY3rX9LUC020=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1Lq94yNL0T9SknH3DDW/PFztmF0/ttB/nGqDU7sDq3n/aHV12PnFAbDFCK1gNw0It WOxD/7WYu9WMYyMjgFjd0mfcy9ptamfiZW0erihqvKvgl/VDOtmk43hcZL5t2evqT4 nY7rI26sgc3qsXDJn5fpsmoqBguyYm3LIBCcBOcY= 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 4.9 074/264] powerpc: Use bool in archrandom.h Date: Thu, 23 Jun 2022 18:41:07 +0200 Message-Id: <20220623164346.165241870@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164344.053938039@linuxfoundation.org> References: <20220623164344.053938039@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 @@ -5,27 +5,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)