Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6144801iog; Thu, 23 Jun 2022 12:16:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tmj9xwtxKRq+caivq8Gzzyexk2tUQnP2X3dIvvS1BHfY2f8YhTSg1ZhpVPaOLUIijHDAL/ X-Received: by 2002:a17:90b:1b07:b0:1ec:c617:a314 with SMTP id nu7-20020a17090b1b0700b001ecc617a314mr5437155pjb.214.1656011778961; Thu, 23 Jun 2022 12:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011778; cv=none; d=google.com; s=arc-20160816; b=lTppNBnfybPIEWIGJJPVfM100xPF/82Iii+dqpewf18/GARWnMOpz1Bc4yVR+su0u9 pMj7B7OBmVllMiXlpfD+RVFfEOP7dhxaVAvfnxsD7M0le+Nsty9lgfKIHMIkqKNu7nmf xKQJnzugcgHrP+u7mPyYjHojwkSdoB7Iqwi6IScsjbC4RwcC1b/BbheU4iBIk28g0NVf 8c/9ZgS/u1NLlQRvigRRGM4PdZ8syHCqKpDeAo59JF5JBqhWkH8hd9/ek7KGYnf3lv6s KEX2AqO7fon25FLsLXpgP0PBdxBekSc12XZLdLkaQfFFEE1ulKXaKfr649C7o6F8VKM/ SNsA== 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=L/Bx7YJBofBieocTjWyhF5Td6BwA4GAIsDz0PACj3l8=; b=RHMvySeXyVS1yIa8ICSs5oKwRDirPtypFFiehRzk7zeOQ+VPGRcq+FaIWHcKN98W2O E+orfQrczYyezq+VxBq2M6a4nt1yuC12MyrE2ohjaQQIJ+H7OaWZ9ybr5nDzgbYpRyq+ g7G8DRO7htqaXRh0LAATdQpOokk/4BlPkAWQ18kodjRAk+2eKTAumlSxMtpe6YOUY65M DILSm/6oFrm3UoW1DeyaDxJHlq1M8PEMN2cirXESojeJrUoK/SeyIKR55hYEI/VBapnV svu3IG6CXbYP1gSNpX52MyoZ5k1FE8h8QBinyrgxd1kf1TU6dVnbd2CSMzKABODeqndf pFTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=blZvebOY; 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 g205-20020a6252d6000000b005252711f6b6si14023124pfb.336.2022.06.23.12.16.07; Thu, 23 Jun 2022 12:16:18 -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=blZvebOY; 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 S231425AbiFWREG (ORCPT + 99 others); Thu, 23 Jun 2022 13:04:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233311AbiFWRCd (ORCPT ); Thu, 23 Jun 2022 13:02:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C3A850035; Thu, 23 Jun 2022 09:54:28 -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 C957CB8248F; Thu, 23 Jun 2022 16:54:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28950C341C4; Thu, 23 Jun 2022 16:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656003260; bh=4528ckk+ibVb+Hw/nh0rGyVe+UZLJE98WXyINJ9hu08=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=blZvebOYfxyQ2MGjZ0yy2RzCGZV/fTtzPX0wtfdDxOQFJD9o/MkBe7/dcY9ewJmCY /ip8b4Ds6Ly2BdyUTrK1ZJebo4bLC6Ce9RDv+flqKk4sE6DrcaYQ5A0+Na95NnK63I pATr0Wv1BLBOhvOO+AiTfNDUMbu84tWhyPpXIYgA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Arnd Bergmann , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , "Jason A. Donenfeld" Subject: [PATCH 4.9 182/264] powerpc: define get_cycles macro for arch-override Date: Thu, 23 Jun 2022 18:42:55 +0200 Message-Id: <20220623164349.218357685@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: "Jason A. Donenfeld" commit 408835832158df0357e18e96da7f2d1ed6b80e7f upstream. PowerPC defines a get_cycles() function, but it does not do the usual `#define get_cycles get_cycles` dance, making it impossible for generic code to see if an arch-specific function was defined. While the get_cycles() ifdef is not currently used, the following timekeeping patch in this series will depend on the macro existing (or not existing) when defining random_get_entropy(). Cc: Thomas Gleixner Cc: Arnd Bergmann Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Acked-by: Michael Ellerman Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/include/asm/timex.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/powerpc/include/asm/timex.h +++ b/arch/powerpc/include/asm/timex.h @@ -53,6 +53,7 @@ static inline cycles_t get_cycles(void) return ret; #endif } +#define get_cycles get_cycles #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_TIMEX_H */