Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp2002475lfo; Sat, 28 May 2022 13:27:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygsEfmjbjplLf3oRpq1WJheJYkhsDDcVE7RFHCK6kbrKKodetPvWN3PJskjK2kSx3FLmjp X-Received: by 2002:a17:90b:4a91:b0:1df:ea07:9596 with SMTP id lp17-20020a17090b4a9100b001dfea079596mr14775474pjb.141.1653769641339; Sat, 28 May 2022 13:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653769641; cv=none; d=google.com; s=arc-20160816; b=eRLuPilDmpvQ2NEIiSsXPmiJ8QRGDyA4qR8+lm4erraV/XBxEAJiYGrXBuSVkpiyMe LMeiyMVvVOHfPy6lWvUz3cEg90iCXj/7S/I3cDZ/uqGDqC13peLM+WpvGzIIcw2ap2pe NYMXOw916MMzToUvZz2IPgqBGI4upZ1nFxdkk+I1u8AW/GvovRiuXNF0TlVlbKp42IVm ttaK31PpZLJZL508eiY89pJ36bP2sg7krCTc0FuVgylVz5siuwvT2bJLzBEpZm4N1Dr4 zwaAmtGFhlvzyK4nbZEPbXptm2qmXo4Wyo1smsM4E0OoOByHtEVZWcD3OepGo++eZ+Wg B1Dg== 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=ZFktUf+2VD71cjhSdQWy3zAxIRDoq04d6VR5sP+LEAU=; b=ehDv5sd4TSKmouhEd7OFiJenmSzvIZnMe3jgoDIc2yIpSI9rC427JqaUYG0/DazmSZ xZJNxr8jqyn+JJPDjHeZHt6+vyfACtVxlzf0CHxBqTbegZ+Aqhr0gyJC1zWvEjapuY+a +Q0LDQKOOAgW0N8yJxFXZXZlA/NIrjm9oAGWyNzYMcXAN6eFyiF8EpcN0kvORutxGxqx K1+0I0BNzo0Mhj/7rc4Muw3f32cy7G6E40QeQqvyjrP2OQcqFxF1mODdxRKqBJvqzuD4 qb1J+dG4mjMyoVzmWpAX+FuvpoTW9cFIW3d/gmG+nQeDtXWmzPvvbX+0suR2zME4Iym8 syIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iYb1SSuW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p22-20020a170902a41600b00161c545c5c3si8320058plq.601.2022.05.28.13.27.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:27:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iYb1SSuW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C906619321A; Sat, 28 May 2022 12:35:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353153AbiE0MKc (ORCPT + 99 others); Fri, 27 May 2022 08:10:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353433AbiE0L4e (ORCPT ); Fri, 27 May 2022 07:56:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C99DA3889; Fri, 27 May 2022 04:51:51 -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 6C57CB824CA; Fri, 27 May 2022 11:51:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC40BC385A9; Fri, 27 May 2022 11:51:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653652309; bh=N4I2vRnlz5HhcFVb3tpYEZeesn0q49B0+WAvsvwec5E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iYb1SSuW8s8o5r4sbk3v4hAxZuN2lE38M/sd/2ukD1v0dgkf2ep7PBC1q4XpJXM2S I3Ce9LcyAEQzOXB3tDS9NuJXFc+HyzeE9Belc+Nvig+t/E4pHKOVRpmkBuQ3jRcMUo xJZAtnrsfOh0Ubbt1gjcgFaGFbg4cDvfB/Pe6xY8= 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 5.15 108/145] powerpc: define get_cycles macro for arch-override Date: Fri, 27 May 2022 10:50:09 +0200 Message-Id: <20220527084903.663694172@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220527084850.364560116@linuxfoundation.org> References: <20220527084850.364560116@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=-1.2 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 @@ -19,6 +19,7 @@ static inline cycles_t get_cycles(void) { return mftb(); } +#define get_cycles get_cycles #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_TIMEX_H */