Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2929823iog; Mon, 20 Jun 2022 07:42:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uEwTLo+f06pCMm2f12sOyGD9x8p1I/Ka/UAkmMfpkupAbZV440BZYQ+BMJ0ZZCRSYkNWZd X-Received: by 2002:a05:6a00:319b:b0:51b:c5ec:62ba with SMTP id bj27-20020a056a00319b00b0051bc5ec62bamr24894705pfb.1.1655736158216; Mon, 20 Jun 2022 07:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655736158; cv=none; d=google.com; s=arc-20160816; b=ktQPladolyWqAy13rViNMUIUpaSK50UvMQIplZBVsdjkhrexT+BtZY26AGaQl5ikmx ultKZjMTTewCKIQqP+S/ftENLDVma6DI5SqmW3wuM6cv5UxfxX50Hi7Gq9Vtzr0ayaNC CnOc7stas/Uc9OchazV5kkB4UMBS8cwb+o2GqySKnzyaHfku5fy+ss77KsTtyURRsJiO Hsq58rw/M4zib370ybcZZr87fAtPu9oHfRxwfm5a4J51j/191K6TgNxoO+zIDrYAxxKf AQPLDhPdny/zEojqnBrj5klYzpARjLApLUcJSg4yKusMfNZO9y+Gxx/p7McQdOopJYPL lAPw== 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=0hfXUnMh/zSD5VY9NK5Hv/WZK+cN1cKMT2H0JsvClSk=; b=M+k1v+eVFEXApv+uhjGo4idiSlAeeeDeYrXBk3kYOq9vVrnjvQ6owk+r/Rv4ssxQYS LunXTyu3VHbWpGHAX78frD26TCpimX0KpkUr5F+2XZEnTtFZ2I2GynOTj0+6HnvrQv99 MeQ2Yr/Fo9Nmkt05jiWRWerzjwWPOTOt+w/pkD+o9lisUuPd/uc1wmmy3Zn58AV28H3u /SttjmCabjS0phW9t0c0slugckrRaXLrqBN5SRqIKFPBPXdvKVkivOUDJCpm5Bs9NxoQ +r2xKz5uLvBHNn3AzMCmHrul1k9c5yaiE+kCjTCkU47XQKt/ejGvXXnvbKHMwfI6HVH8 YiIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LVJG1BWj; 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 83-20020a630056000000b0040c7cbadecfsi8842571pga.692.2022.06.20.07.42.25; Mon, 20 Jun 2022 07:42:38 -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=LVJG1BWj; 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 S1349969AbiFTNwe (ORCPT + 99 others); Mon, 20 Jun 2022 09:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349211AbiFTNv3 (ORCPT ); Mon, 20 Jun 2022 09:51:29 -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 8EB3D136; Mon, 20 Jun 2022 06:18:34 -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 29683B811F8; Mon, 20 Jun 2022 13:17:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AB2FC3411B; Mon, 20 Jun 2022 13:17:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655731029; bh=IPrm7l7Y4DEnj3K/unR0h1dsLN/bo46PUM9Qs6lbRoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LVJG1BWjQcz4pGXlKayjFNJwDDrypHw0z0v3tvaOG83Oe9w9bob3FtXIZQSVuUqvQ CakDEwa6L0piv123LbR8xlUjp3ONIF0rMRy7ElSJyYidKompsrnQZ5wh/TxKSURae0 v55Wxob8DIlhVcfK/J84mi9+F4rwvK9GVYVKIalY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Arnd Bergmann , "Jason A. Donenfeld" Subject: [PATCH 5.4 131/240] ia64: define get_cycles macro for arch-override Date: Mon, 20 Jun 2022 14:50:32 +0200 Message-Id: <20220620124742.805632744@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 57c0900b91d8891ab43f0e6b464d059fda51d102 upstream. Itanium 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 Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- arch/ia64/include/asm/timex.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/ia64/include/asm/timex.h +++ b/arch/ia64/include/asm/timex.h @@ -39,6 +39,7 @@ get_cycles (void) ret = ia64_getreg(_IA64_REG_AR_ITC); return ret; } +#define get_cycles get_cycles extern void ia64_cpu_local_tick (void); extern unsigned long long ia64_native_sched_clock (void);