Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6142654iog; Thu, 23 Jun 2022 12:13:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u9TmwwPL17MdNP6+gWBGs7N01IcR++jw0Mf8liBWu2flSR/9FksKrNPGT+PqQlh8qPOgGy X-Received: by 2002:a63:2c93:0:b0:407:b2e9:b22a with SMTP id s141-20020a632c93000000b00407b2e9b22amr8556052pgs.46.1656011628459; Thu, 23 Jun 2022 12:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011628; cv=none; d=google.com; s=arc-20160816; b=dwBCV7ETWR7YhUiY9Cf0BR4Eg259957ncQZ4TAfa7Rn6vx1Oxqq6bmvYI+49xzIvM4 op5XOHFgY0JWv7va631X7GleZwrkqrY0mc82t1MnabM8aO4JqWU7+OrxRf6+CvviubTs 2voAqEdqCdJfWafki/to4y5Wfi+x/8IfE99JpoQrAe0gs60Aa3WApRt3QwAn8XFs76q7 PpdfRQo1G24J9yKg+g0CCnQj3ollKs9M1zi9T8oq/t8tQqoiip/IpUnENZnvrPWcLY58 yXLScYeYSX5zZu3mOkp59p0drPnK4+qomf8awbzKtpfH9bxkxz61qKB07U9DpQ5wiKOy kwJw== 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=vhCeCx2yBCiH0NL2XBa+OqL+p/6coZDCUVX/bk/5C0c=; b=waIa4zSVIIo+Ipj3jMeho5l6fjHeGlKPX7AdrFCMaoi7kTHJgKIopll+5DHOShIBjR Otua/+r4RwznxxWTPmSKWT4jN51OEu1warJrsL+P68yaG0mz3Qqzkh/anKyOjgAqEF0b Ml+NmM2E/z229T6Lt9diwhvIHTbAXFrkL/JM65c28B/1TtHZ9LdZKp8nlA723ZJoxboV S/YBo0EcPrEd14QFs1gvBXyTTP8xm25iQ/Bqdbc8/b1VRsTMxjtLPSldtj4ewfXcJcM6 VZ/nSWh85KrhCIypt4TakzhEMHPyFaGENQbpCMW+Gaxhkj2vdIv/XjPtMo+U9kpZMP7t Mv0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=O5AIim3e; 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 ik18-20020a170902ab1200b0016a080b3988si436293plb.130.2022.06.23.12.13.35; Thu, 23 Jun 2022 12:13:48 -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=O5AIim3e; 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 S231284AbiFWREB (ORCPT + 99 others); Thu, 23 Jun 2022 13:04:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231134AbiFWRBu (ORCPT ); Thu, 23 Jun 2022 13:01:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 582424FC6E; Thu, 23 Jun 2022 09:54:20 -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 B37D8B82490; Thu, 23 Jun 2022 16:54:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25BC7C3411B; Thu, 23 Jun 2022 16:54:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656003257; bh=Z4K5trf9hQxf9+At5Y5do4u4889G7hzVgVOshj8AtIE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O5AIim3ewtHSt2MR7qJHCZuyIE5+/rg63vtd0M0HStFnKEBKzVbWbCA7JemfXmML3 6o2ju7Dlt+P7MtoPjDEmtYMwdR6Iqbo+U0iiGNMR1eEEm6tfsKWPWKpM+yx9L5ojlP Bq3qb/Fojske4yHxhc/DR/4EqC2YQFPto83PPBlw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , "Jason A. Donenfeld" Subject: [PATCH 4.9 181/264] alpha: define get_cycles macro for arch-override Date: Thu, 23 Jun 2022 18:42:54 +0200 Message-Id: <20220623164349.187845555@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 1097710bc9660e1e588cf2186a35db3d95c4d258 upstream. Alpha 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: Richard Henderson Cc: Ivan Kokshaysky Acked-by: Matt Turner Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- arch/alpha/include/asm/timex.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/alpha/include/asm/timex.h +++ b/arch/alpha/include/asm/timex.h @@ -27,5 +27,6 @@ static inline cycles_t get_cycles (void) __asm__ __volatile__ ("rpcc %0" : "=r"(ret)); return ret; } +#define get_cycles get_cycles #endif