Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6045539iog; Thu, 23 Jun 2022 10:11:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1un0rX1HZsB4UdQhZbvkYC28M/DRSVqJ9PAoqIKUlNeaBY65Psx3b0WId0gY4pbRXl62YYd X-Received: by 2002:a17:907:6295:b0:703:92b8:e113 with SMTP id nd21-20020a170907629500b0070392b8e113mr9326823ejc.594.1656004261894; Thu, 23 Jun 2022 10:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656004261; cv=none; d=google.com; s=arc-20160816; b=v953U5U4ByCQOk3fzkqRJN7HH/5ICi8wfgg8hVUL7cjkg708AZUIMah+WnX2jddoU1 JsDjS3cGTg2PcF9Z+MG/K/AMy9QHROfTZ+IE1CadvrR2UE7cE5hmjdAkErItjlBOCQJv QT/FDS3X2ISmIHXhLz00aEszHPizxuhKpostKfEsyaQI6D2RXOAAF3idHYPrTEvGGSSk 2fzoPkawI+dYo6sBvD9OkVOvPAUn6zrepWIHq2WhaaPp9oFQuC8zqVQvIgNsnHhbMdH1 BnKdqH/9b3TWA50XDCRu1lYi4TRH8OlqFi1L1+8xys4JIsPJPgBiRhPh2yNHRTnKR5/D LV5Q== 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=6oSapFLFpu6d+JgvIm/cqrjBsYU7c3jGeejslZGDvKs=; b=MzcIp0iA5WQT94XljN9ivY3GeWlkJhMM0mnhPPX3iNwSXNc++iEakHMq0e5Fe83Rem djqZ7VPW2gKKzhzr63Leo60pCFgE7uau4GgnZTR6KoJKfB2t7Vf66pSlgPuvWR5BvHKa ueE/NhbwOK8HVSJVIxTIh+OKGvJJAM3NNum7sO1ATyaWI4+j+m+J4D6y0nZLidlW+7+e DBKcCBIb7geRwKJsx3fnf5VtO8mbZu3yUAVExQWgpPQDo4F5uxwjElJKwFZbMaTPKRs+ fsSiyjFA1zbkx0WdUY/FFV40kV1RR/IthX+Az7T1roJmDZqjpBpPk4ANyQPZJnEQq4kM 8IRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ulr3SRdJ; 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 hp28-20020a1709073e1c00b00703953c1631si6549307ejc.151.2022.06.23.10.10.35; Thu, 23 Jun 2022 10:11:01 -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=ulr3SRdJ; 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 S230301AbiFWRDy (ORCPT + 99 others); Thu, 23 Jun 2022 13:03:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233126AbiFWRBJ (ORCPT ); Thu, 23 Jun 2022 13:01:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F12C4FC4E; Thu, 23 Jun 2022 09:54:16 -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 1CED961FFB; Thu, 23 Jun 2022 16:54:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0503C3411B; Thu, 23 Jun 2022 16:54:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656003254; bh=U71YCgBwZPMBM6krXE/wQf4g0JZCHmQ3AB3XjJA9Zk0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ulr3SRdJJNZoera0rAkY06ZGPqcPHtIyQmkd1XCC++ynDEwd6yK0y3exfViC70WDR mPgP3FhUFOJSiFQFUvuQPAu3F7uj0gxjJ2JX2w9+cEbRpgNMWS5sPdBGMS+4EBxk4j OXgG05Cu66cfbi3e+neZSGB7kWKELyzOLtrog0Rk= 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.9 180/264] parisc: define get_cycles macro for arch-override Date: Thu, 23 Jun 2022 18:42:53 +0200 Message-Id: <20220623164349.159583501@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 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 @@ -11,9 +11,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