Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6146323iog; Thu, 23 Jun 2022 12:18:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v5MeBHS0KXAOwD9NAI2pubbr0IdWNiKdFLSQsDQtZ0Y4hO7lMv/nD3vlNXklAuZkjB+61s X-Received: by 2002:a63:b443:0:b0:40c:fbf9:8366 with SMTP id n3-20020a63b443000000b0040cfbf98366mr8671112pgu.308.1656011881288; Thu, 23 Jun 2022 12:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011881; cv=none; d=google.com; s=arc-20160816; b=xPLvAgiayz2+X/6AVtSsYwHLrUCj3FjZ+9iO/EVizuv1dTvAhcXCn2A7D9OnB/Lch/ YItW06Ib5aD9mfmsOFcftHLNkrx0P7fJ1CsjYmyIIu3m34tOSvq6dhLbj55p5HJMetbs Sfkbpr0h9NX7Yn08e91tBHJ01wIxsONlS9ZrYf3XeVwjd35n3FgPxXia62G6Z3GnD8Bk uiJtOKftdqYvPQKOkd3OU+uRUL8rWUmq+QmK1boNdaCaQdO1ft9l2F3/lO856xjnwMdC b2/YASkE+CYWgpicmECFxafl7ppmR+1t8KO39PU+P6wYujoT2KM+t2SEKI8lh74cZxSK p5tg== 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=4GYy+3oFOh/QMcQpCA8KYZXAPLDikRjVMREl3SFWkN4=; b=03tBLFi984RrwRHQoZVi8k53RDSOhGz36MgURLjk3IclThDSkPvupAW3Hqbfq+WhAq hET0/DX4z52nXsiL8Ou67vy+Rw7LnhNc2MYvukUhxQjfXkVjHZSx4GbH0qGIfkYrNUzY vaMhFBtNeB2gw3V/wvkeajB5U2Abt9edXD6Eh6pSkaU6tEWARJOdFgsANkvbXDF5NCqo f3WhrTs2H7zOjvmdlQdUKBt80R32OmA73s+NZfmnbyfD1hhMnuX7okljbTf5+U7UGTBh wGxyau4t3LfaXSh718bqxVox/n9bQkbGor//nqSdGq4TCv7A6AoJBFnLUrkw0TsolLtw LEzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R4wCRMuH; 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 e12-20020a170902e0cc00b00168db723df8si276542pla.581.2022.06.23.12.17.50; Thu, 23 Jun 2022 12:18: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=R4wCRMuH; 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 S236195AbiFWSJM (ORCPT + 99 others); Thu, 23 Jun 2022 14:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236013AbiFWSHL (ORCPT ); Thu, 23 Jun 2022 14:07:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9512994F25; Thu, 23 Jun 2022 10:19:10 -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 49947B82490; Thu, 23 Jun 2022 17:19:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83D38C3411B; Thu, 23 Jun 2022 17:19:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004748; bh=vzwuZWnm6kpqwOb+2kD3Qz0bX3zG6yU4MW7xDk9XB+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R4wCRMuH4CACq2yjezu8lcLUZBgB4Jrw2lOzG9fOX12uMVKYhQrXgxXJyqMeyiFHr 185cqwr/3F92FkLek7HwY2GFo9JnqwPRVoEX/fbsQmwH5KcWk+Sjm8aoxaAlJtRDEH kvoE26LYMIwC2XiEj+3mN8antjqS3dPQnoXHp+Zw= 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.19 138/234] alpha: define get_cycles macro for arch-override Date: Thu, 23 Jun 2022 18:43:25 +0200 Message-Id: <20220623164346.962038881@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 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 @@ -28,5 +28,6 @@ static inline cycles_t get_cycles (void) __asm__ __volatile__ ("rpcc %0" : "=r"(ret)); return ret; } +#define get_cycles get_cycles #endif