Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6141271iog; Thu, 23 Jun 2022 12:12:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tx/VOUc8qBIZ2gJhCt5iW4rXlf/iPfUmOflp5vQFzhyzhoNLw9+uVLvNuc9iSebEgCUkLK X-Received: by 2002:a17:903:32cd:b0:16a:3648:104e with SMTP id i13-20020a17090332cd00b0016a3648104emr15662590plr.143.1656011530645; Thu, 23 Jun 2022 12:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011530; cv=none; d=google.com; s=arc-20160816; b=N+yUmZtAOEv6WKGAB1mJd+/IUdTlPr3EIaj2Eq6eH8H6k91bXLodJrr3/krKUUUPe3 jARzMyR8OihI8yfqidjQo0/xMJ6d6bHtgD1uBg7RZnF2Y9RN5UTCIDfKJ+vB8C4+sSvS t5zRBe8XYzZf3iH6d2Y1TW8zfXi9d6/pLeReCDo8fteYdptrEJRQCVAowBolwmuN71yM 40auO9yZQeRVPFMddxdIOJ+kiNJVqBdwmTTGiEffOqXufDyzH5ZFbRy+eNBhY3o17Hl3 7S+XhGJhUOzfZAWShP9gImqcjGfKLZC3f6duc57srUpDNA+uKEF5Af6ojB4/EBkM8F1S GBBg== 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=/1QW9mKIwUgBaouGlvxj5iVklQLU77IeBxCZ9HR/2NI=; b=R9DlkwGazVAtwnbwbEI60kUfMn4+unMQsHAI0+2mcaUR6sKRXX5hFu5rQsBgR4KsX9 nDJq2VbMfyVzwf605KFTvDNBU9KKdCwDZtZWUzMgqpA+d4ukivPEIIgLTtGR3dzqStVq J3neaQhb5tEGFeXyTqwFQpy0cnrhBvmbwA+gJcrQmI0ygVQx7A2r8RKZsBAaY+os2OjS 9p8apNuFaISc7XAIu1YcYEYhpUcannGnG0VSthiNgedIGLaLpNnZ7fBrLZ6WrhQ7Lo+4 cVeAtxe4zXlUv/OYY9Iokzxg6Cy4NMij/nqkb9epJt7He5AWkCVl5MSNguwfwKWhryNt GjAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="LmGT2/d4"; 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 q16-20020a656250000000b003fe3b8c6ff1si28255080pgv.154.2022.06.23.12.11.59; Thu, 23 Jun 2022 12:12:10 -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="LmGT2/d4"; 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 S236154AbiFWSJJ (ORCPT + 99 others); Thu, 23 Jun 2022 14:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236077AbiFWSGp (ORCPT ); Thu, 23 Jun 2022 14:06:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EF7689D3A; Thu, 23 Jun 2022 10:19:06 -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 93F4161DE5; Thu, 23 Jun 2022 17:19:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B5C9C3411B; Thu, 23 Jun 2022 17:19:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004744; bh=3Ln4hEtHTP/Iye9VV536yRYzaH7q597arnp1pdMkgQI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LmGT2/d4ygb7XmXDo0mR4Iuz9Q3pKTKCnKxyeOF0EwoKoCyQ4KRPFFcJt69fKsPFG AEHNoHDDmgBoyIL3tIKnNOfOSvuceibAS0UHgi0/b9oc5gkvlupD/G92+3diiQa+Qo MpJtzkGGz5CkRos+JQ5qCuORGI2/WHCN+65omglg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Arnd Bergmann , Helge Deller , "Jason A. Donenfeld" Subject: [PATCH 4.19 137/234] parisc: define get_cycles macro for arch-override Date: Thu, 23 Jun 2022 18:43:24 +0200 Message-Id: <20220623164346.933750508@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: "Jason A. Donenfeld" commit 8865bbe6ba1120e67f72201b7003a16202cd42be upstream. PA-RISC 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 Acked-by: Helge Deller Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- arch/parisc/include/asm/timex.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/parisc/include/asm/timex.h +++ b/arch/parisc/include/asm/timex.h @@ -12,9 +12,10 @@ typedef unsigned long cycles_t; -static inline cycles_t get_cycles (void) +static inline cycles_t get_cycles(void) { return mfctl(16); } +#define get_cycles get_cycles #endif