Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2931377iog; Mon, 20 Jun 2022 07:44:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vIl2NcfYrnPfy6/VvBSq4PpM4fWA5b+LtHM89uglsNJzkYgiXKG2dBA58OqxTs+qQIiHeW X-Received: by 2002:a17:902:f7cf:b0:16a:322d:3f48 with SMTP id h15-20020a170902f7cf00b0016a322d3f48mr987934plw.148.1655736272257; Mon, 20 Jun 2022 07:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655736272; cv=none; d=google.com; s=arc-20160816; b=L/Vi3GKMtzsBEIJeqDZOIDB8YpEJNUeE29wL6lZF+JILI6AXbYO9+6heAMQHOXTKZX +ikd8QObeVHN8wwoHU7DiXNdITtgLLVOMmVwfFUUuAmRQj2f7lsM/5I0siC0ssbHfqS9 Kd0x03U13DShytecN4v0ldMAdb7bNeFlaFRCEHEdS5sBpWg1SQurr7B2GPbkIZOelFbW 1rPQEMG10vurDs+gtA1ZZHHqN1FgoNQp7W+zFMY06jP95tALCRebVIXuGxlwtBSBYjmC QuOGgfspZFU4nC9Pzf/DHU3+Fvzr5+eyfSb+UOKEKQ5pGQCVZDTsi5RmFkj712sew0kP m+SA== 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=GbwITpY23/qBYDgf4jEb/0MwWSMEUrkWvXpLAIS/15qi5ehRRmLJq/agxcTh7xwtYX IQd/RsIgXPyhcngKVS+hcjjNCYHp8E/j/VKs3ZwBGiV6pIBoA9qsnn7ies54NSt+Jvbx FBrOppfZliCVD6FM+Mkvu5KGfmg8oJcVsIpGjAMF006lz6WKnmFij1pgsIN1UoXHXVYk kcDl3RLmrRglGh669crlbHvOrP7wk99gI1O5fLl1hhOIC/IK9/WFwusJ2+vISo4dEWLC pBz9dve0Br9b544yhsK9jvkLuzJQJRvyHrB6TkLvT5/QjVagrsG+C1x53uJWyUa1xBOZ 4zBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=w11fNbOn; 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 f126-20020a636a84000000b003fc6b3c8274si15059308pgc.16.2022.06.20.07.44.20; Mon, 20 Jun 2022 07:44:32 -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=w11fNbOn; 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 S1347953AbiFTNrx (ORCPT + 99 others); Mon, 20 Jun 2022 09:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347509AbiFTNrV (ORCPT ); Mon, 20 Jun 2022 09:47:21 -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 0B13A2E9F3; Mon, 20 Jun 2022 06:17:30 -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 8FF1AB811F9; Mon, 20 Jun 2022 13:17:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E47A2C3411B; Mon, 20 Jun 2022 13:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655731039; bh=vzwuZWnm6kpqwOb+2kD3Qz0bX3zG6yU4MW7xDk9XB+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w11fNbOnDM7aDtr9Hd5y+foB/Arn42Q+bFzYojWQl8viVjT4ege/c2AkBMY1vTnFU 0nBuVuEubwBSbvGVlLZeNuBU6boKeGF+Y8dzMkDWZ+UIpCr9vi7cAPrkeSQuOJ2UGR aN1oAB+NzhXD905aYoJnIqI4JesFZpX4TvgcL6bQ= 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 5.4 134/240] alpha: define get_cycles macro for arch-override Date: Mon, 20 Jun 2022 14:50:35 +0200 Message-Id: <20220620124742.892373208@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620124737.799371052@linuxfoundation.org> References: <20220620124737.799371052@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