Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2437457ioo; Sat, 28 May 2022 13:40:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz5dY/BvMBva/hgOmNqNNK8+L4sSf/1VOocv+C+pRRpBj713pxa+0CNmEKgcaCUw8keC/q X-Received: by 2002:a17:90b:1bcc:b0:1e0:1c94:ebcf with SMTP id oa12-20020a17090b1bcc00b001e01c94ebcfmr14972498pjb.140.1653770421215; Sat, 28 May 2022 13:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653770421; cv=none; d=google.com; s=arc-20160816; b=T7jkqDvar+VTi/RLoxSHk6jAnztd3t0NnWmuZdqCa53b1DIDgbnfolkLK3IRr6MB5u PKwIKGYh93cLuqHI+DuVNqE6H0405i7hCePF1JApkPGwGeyWtYi+cZE17+z51LRqQc4u 1sCQ7C51h7pk+bDKktEp8uCKStbH0emsKWbVGotQprjhvamGhx+wRp3jXbBnlEWqRYO+ xEIfXQiiPEjjYjCiDuzKYxpnBDrBjWuSd2wZyYvnZi/xXNAZN5q4KTPEuvgX8Sg1MFIr c25Yv9auWgjPXfUNq1OfyVy1h3ctZSQR5orFFtBVpKFl7nKlE6IkGJFfRcLihj7LoRrN c/Yg== 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=rGM1yi76XZH2rGcFAuM6cHwA/YjDpjsvB3vEdPOBh5pSodtbhPp+BkCyGVzlMuqSTA VVjXjuTUW+nB9eRdhxHQ+IKrIkf3KWZl6uXrERqt+H4XgVAOa6ppCZozvVvdmByWFc2G C/2N6IQhZU00npPDCNm2PiVAZfNJ4mqvdaGecSzeU7njRx25Iq8pHz2Cdwplacl4Duls kn9LpwBfeVtfNkwNDYkbtAM2WiksubWkemiLMua9NozP9fuL67TCfb9DGM8JzKiqjTpY neCSoNb604vm5buqRLUlj9TWdZaK7xcbG+p5OkY1LchSHLGk0idoS+zQglLSV+4hcsbs Jq5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M9SRzo+9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e6-20020a170902ef4600b00161f3701ecdsi10890385plx.389.2022.05.28.13.40.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M9SRzo+9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5E44318CE23; Sat, 28 May 2022 12:42:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242025AbiE0MOJ (ORCPT + 99 others); Fri, 27 May 2022 08:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352442AbiE0MAa (ORCPT ); Fri, 27 May 2022 08:00:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A78B7BC1E; Fri, 27 May 2022 04:52: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 262FEB824D2; Fri, 27 May 2022 11:52:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86D54C385A9; Fri, 27 May 2022 11:52:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653652326; bh=vzwuZWnm6kpqwOb+2kD3Qz0bX3zG6yU4MW7xDk9XB+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M9SRzo+93eTZHTZJnB9OJ1XKrEKL1N2CC6Qb67/WfhweiitM9+u8D33G4Hhg0qafw fBpaF9sxHznXsAqiDJM0X7hJCfkojfXT+pX0ekQCqeNDHY2zEeBy/7wkp2kn0RL4i3 OEhMfMQSierNMeziXwXSthGXoiCChN7dH0yopYOo= 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.10 125/163] alpha: define get_cycles macro for arch-override Date: Fri, 27 May 2022 10:50:05 +0200 Message-Id: <20220527084845.365676632@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220527084828.156494029@linuxfoundation.org> References: <20220527084828.156494029@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=-1.2 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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