Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6141300iog; Thu, 23 Jun 2022 12:12:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uXZz1PUtQB8g2zXqcYpWrJR4seNl5gF2FpINIrtMcr1CHAcL+Z5o8bYlucZnFJErs4jy2o X-Received: by 2002:aa7:9823:0:b0:525:15b1:3297 with SMTP id q3-20020aa79823000000b0052515b13297mr27522533pfl.13.1656011533040; Thu, 23 Jun 2022 12:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011533; cv=none; d=google.com; s=arc-20160816; b=m9o3GwhzgsJlSMqwTqdo5Qkzt3vnIL0pA6zZSQpuYYAtUPJcpT/oK0e/EoHiXpHLaE mZIsoW+F32LLzzXh6DdWL7OrAD9dbBpaSsJx2nIJgaGV2U7IVupi8O71GjRtLBcj8NCJ 3Jm3SxM0mXL2AvIhCESTQG7p3bVT0MIBj3YEtlpJuADmDW5l/+j5NiWZQGIhMFIH050P WhC/wqaD/dMuKdwYqDSKL7VP+ECD/t3fNUnZE6WdgQIcSUAe/O5/QzTcSy3FrSeGsdc2 t+tT3QEsW/xqC7bT3pOta3rKwvnfP+yqu3hJnC4zhusmCZ1AGZN/+DNnjEQxXA4evhJ8 dvAA== 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=N0Ylx8HZb6Ag+rzrelaTv8wPyJUrzIst5j6UTmn1Asm8tSZz5SrcF0p+fKX0hnSlzb hNL0UNP2cGMxatCDQ9943LH9fX/WRdRwWWcc4z0VZKwOuzbICAqBMWmr6SsDz6FtCuNx PUiaNPEv86spMnTOY6erR0rcyRGXfprqhZFvcvJj6UTZP+J1HoPmPAnsf09jA6GUoP1P /n2EDTw+mCeS/IRG16vnhVgDwOYoC6QGh5YjMhlkHrJoSxtBcCzGMIsJJwIUO4x/hJam aX3nUGLP1LFmhoFdA6MAvjRj1DRpLe18wqn6f1SWYYHig2I9z381oYmSwQr6UMQ5oWop xWiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZbOjcl+C; 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 q23-20020a170902edd700b0015eabaaa16fsi316591plk.578.2022.06.23.12.12.01; Thu, 23 Jun 2022 12:12:13 -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=ZbOjcl+C; 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 S232682AbiFWSBa (ORCPT + 99 others); Thu, 23 Jun 2022 14:01:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236305AbiFWR7I (ORCPT ); Thu, 23 Jun 2022 13:59:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41A9EB2121; Thu, 23 Jun 2022 10:16:19 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 6CE9261E12; Thu, 23 Jun 2022 17:16:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35FB7C341C5; Thu, 23 Jun 2022 17:16:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004577; bh=VX61gT+Y08KmB0rcQK6oQt7Le4cwnWnzjxbdvU33n7k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZbOjcl+CF2Mh12ee3XPPPG7igaYbxP6724cFRBeeePUW43lrWKpOxj/xp+cHv8MLj maa3qmSs6gBRi36FKZ7I1R2bkgY7BnMDCSfRIqM475/hu6dtfkq0EHzpMnIs+8cC7j vJPV5muDR1HA0Ag2GcxvHpVBJp3gM7H6IPcHgkWU= 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.19 041/234] powerpc: Use bool in archrandom.h Date: Thu, 23 Jun 2022 18:41:48 +0200 Message-Id: <20220623164344.228002048@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164343.042598055@linuxfoundation.org> References: <20220623164343.042598055@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)