Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6133168iog; Thu, 23 Jun 2022 12:03:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1troZcyCHIcGQcNtDY0Chlnjpk5XWVqA5Ji1pQ/eHYk6a/G5N6wB8kGHyDyZfk6vf9/vgIu X-Received: by 2002:a63:6b82:0:b0:3fd:1865:a783 with SMTP id g124-20020a636b82000000b003fd1865a783mr8381432pgc.500.1656010986448; Thu, 23 Jun 2022 12:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656010986; cv=none; d=google.com; s=arc-20160816; b=DTACigT529Xk8FHRxLTga1qPqhkvArVmEHUhOniinHOcVt5zXm5Hsn/Gm9lXRmr+x4 XDU13ehrucvv05n9DpN0CuRUecUCMrWxXk9dTZuqcLdhG7GeIjkU4oHVfFqyl/mCvVs6 /ulkCQnNBoN8HejOoLLA85U17+Deo19JQQTPGuJ8aErIf7Y006deEC7GVaHUhaNC6TKN cOEB8YmRZjRiB8Z1FHc3tdTq0f+FKHu97alueTnxQOWC6d1W31p2DGMfdCW7mAFO5FlP 0NAg/lhfcBFTYPv3+Wc1bWdGxLeLPpk0YUJgu2src4YM3W9OBYM3LmebjqadlXa1MiU6 z51A== 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=EdIqDTz+SQLaytOD5UBrb1njSpOSnMIZExw4bXml7FTFIuWhCzMxQdvlTMN62uQfgk IezORfmuh5eSA228PMfeqMWx9QBAFcqVI3kQB4mObf69RHBn9ngN0k+WqQlyMc6IkUPt nLIgRMVvSk8PZrp/DArfmkgMJ02pwpibDyjvIWgOF03cVCi7JhYQJEJgy6/+nQldLfcg JKVjfYDufqY03QErJgkdoN3UJrunPjo7qbwVoUB2e7fMLzFlvGps2a4H7bk309Mlgreq IUW174njPQyknz+lK9dDQWTHt2rcj4Fm1ahxQaFEf8x+pbRFvV2IT4yetcQH179ciUf0 jl9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="NYv/Ibp1"; 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 r5-20020a1709028bc500b00166496b7274si391438plo.186.2022.06.23.12.02.53; Thu, 23 Jun 2022 12:03:06 -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="NYv/Ibp1"; 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 S235995AbiFWSIw (ORCPT + 99 others); Thu, 23 Jun 2022 14:08:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236045AbiFWSGm (ORCPT ); Thu, 23 Jun 2022 14:06:42 -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 7B01489D0A; Thu, 23 Jun 2022 10:19:01 -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 1A1B4B82498; Thu, 23 Jun 2022 17:19:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6857FC3411B; Thu, 23 Jun 2022 17:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004738; bh=IPrm7l7Y4DEnj3K/unR0h1dsLN/bo46PUM9Qs6lbRoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NYv/Ibp1+k0qZHS4zY5pLDgvBifuFRvE8NgcnjShjxpTnLUxhquGdbzefqOmmJKSB Qt9LF4QsLy+oz0s0oEntbe41jkBy9ZRKdYcAB+6Js5aC8+soxgWAB9qlPeDp44Oiga mscuxWXxpHELDsdSV32fw+9YBFapEVtQ+1b5UQF8= 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 4.19 135/234] ia64: define get_cycles macro for arch-override Date: Thu, 23 Jun 2022 18:43:22 +0200 Message-Id: <20220623164346.877616794@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 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);