Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6146200iog; Thu, 23 Jun 2022 12:17:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vgYBy0gSnZA+4DqQluuQCP8QkF0op0fGGoM2GGWpO0hBdhB3mX9gSzNL1GNkqEx8minaIz X-Received: by 2002:a63:e952:0:b0:40d:133a:4716 with SMTP id q18-20020a63e952000000b0040d133a4716mr8869632pgj.320.1656011872554; Thu, 23 Jun 2022 12:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011872; cv=none; d=google.com; s=arc-20160816; b=PdHDFNgb9l2YpDAKA/ZF8yKFTe/XYQ0zktJZGtSA5Z3hhlLoeXkuTAcTMmvCvxiEwt acbgN2E+UsvXo9mpXiKVZwBiC9Qp4cqNQV8n5I+kRWtcwlV7qLr7jo2rnbP2irTBtf/v VFWcGlCbXzT2rwA1KqZ8tVK3IfbBNkQcOLncuSopAgbVpwDfjAtLGx+bBDFy66y1IZnh AA/NsZmwYS7k+roH8GO8PgdptIlt2y/zwNHUYfYeHWSbmakNwJWzrQfRs+JchScYYuoe 0XvMfZMzGaxB5diBl5tAphbKwL3S4kZiARaa0r8oVQ4uK77udi9046V7Ujw+qltpeMj+ u2tA== 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=0K4vpdA1xORgHnlpaUkI4OJWxfXs7rAEvgfEcI1y4g4=; b=qAdTPoAEXO5kX9mpaBXtlW7RNKIBF0tWkRt1I/NAhjdF7sl7h4uwCruaJ1urrpsUW7 8VwTyWAaI4ZhNEcH0OX+t+GHq4ZHLHgM4s5CW0zQFf0bkEchFN1k1tPiAhiiOIQKeqke RfgYP5HMlyjhaNTfrqf8LcmNMuVbzzuNUW5Q5oEzYha1qNM3ihzLZ0YP+7zkWkFMdwdv X58jxYLGEI2BInbVCRSlodE8ZrwbPEwNWE/Eadc7q12/hTSR0By36xfZh4+CEa/sffKf UIU1/6+EP+NXVjuPdDqySIDPFfQ4+H/mVUQv7JZhzeHKSJN5IIka5Imf5ojyE+ZcjGWo oyrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JTT71Tgf; 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 191-20020a6302c8000000b00401b6ab1e4dsi23497631pgc.471.2022.06.23.12.17.39; Thu, 23 Jun 2022 12:17:52 -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=JTT71Tgf; 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 S230525AbiFWRJq (ORCPT + 99 others); Thu, 23 Jun 2022 13:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233231AbiFWRHi (ORCPT ); Thu, 23 Jun 2022 13:07:38 -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 BBCDE527E0; Thu, 23 Jun 2022 09:56:21 -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 7D3B1B82493; Thu, 23 Jun 2022 16:56:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB68AC3411B; Thu, 23 Jun 2022 16:56:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656003378; bh=BP50mTPN8PZOSwCr7WdPHkRzQc6R5hZIXO6nU4tdK4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JTT71TgfpFIuJ+KO+o6E7o6BWzzc3K5BsmHcktLu7YnX6vm/kzRWw9fnt+ZsMXSrz PSEqanaEHgpo7WNCOGuuRsac140z8/PhMKxmje07O+u4+QmzP10TJvba0XUIiPTYrA IT3RtY4nuygR2483MSLGJpx3+DflfObBlqBAp1kY= 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.9 178/264] ia64: define get_cycles macro for arch-override Date: Thu, 23 Jun 2022 18:42:51 +0200 Message-Id: <20220623164349.102783984@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164344.053938039@linuxfoundation.org> References: <20220623164344.053938039@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 @@ -38,6 +38,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);