Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2433435ioo; Sat, 28 May 2022 13:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyqJrw76DHIolD5/h5MgKfjY/81qHF7OGKgl52iAUo7QR3kPbrIClQS1IMFZhecloUu5QG X-Received: by 2002:a05:6a02:19b:b0:39d:cfa:5cda with SMTP id bj27-20020a056a02019b00b0039d0cfa5cdamr41908922pgb.175.1653769901528; Sat, 28 May 2022 13:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653769901; cv=none; d=google.com; s=arc-20160816; b=y2z95nza8uW/Gzj0eqg+PGbYzfnx262voXSX0zfGAQSRl1RGtjAv23+vJds1kxIfC8 uyAxHUjC9okGqrSSSQTaQZpa/uEFGEgzdB8imvCnQbqsgCl5oo3c69MvyTCJjs0SJ9mF 3tjYM/NSG7tNmNJYNnRPa4fjvw8YxiQOJSbl+rHCI/ppxtQjz8G9KbBQcV48Wr4Bn+EU dtts4ctBEn11ipAIOFVGogUG3wh8ATNHBUr5HY7XP8JDBRyZxtFqVP/OPkoASe8y0IiG 6X9OMqp2TVMcKDHTVMzsaHV77sJV4YC7o6RGiMBGOK1CKYW3yoZTzOKiVCbQ/1IDAImI ypnA== 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=O5pJFo03+xUwtjqmmPusr9uBr+dy0pjPDi+rZwvjU8E=; b=iflxm7ITSiCW1vL7JrgGc9JlYrYs82vElu0JqHvDxYOMPaMnaI2UeLl4XPRJWTAvug TWqOGWQ8/2zuzVPVt7NZnaz7UaEh+51X5pJlYW+uarq3a68Cl5MQxIkDUwuIN/W8w7RZ magKlITGSOOn8h0zve6hY7MHOqGPQ87sarVRk1gRacQYl5SnSrMEe9R9FFD1ETzHWbSR 5d+VKRAzgs3ahxBfx+p4yE3nYpWNEnLrwZeUzrArbGlf2bd89B8h/ngw6663+A0UQw43 GSKiEXGr2KXApW2wlqbPCe9MOE7WLbWx3BLp+1eRAawxQVstJWs+vZvaw2gYt52RSL2Q Ckbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=A+yR5te0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id u15-20020a17090341cf00b0015f2b4a29ccsi10869212ple.253.2022.05.28.13.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:31:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=A+yR5te0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 732E01A44B2; Sat, 28 May 2022 12:37:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235417AbiE0IxD (ORCPT + 99 others); Fri, 27 May 2022 04:53:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350021AbiE0IwX (ORCPT ); Fri, 27 May 2022 04:52:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A5844DF7E; Fri, 27 May 2022 01:52:09 -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 C8B63B823DD; Fri, 27 May 2022 08:52:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C16FC385A9; Fri, 27 May 2022 08:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653641526; bh=YM5e5E3UfpgVRuGeo+5TnFnMco/yylOKgoCvWKD7eK0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A+yR5te0WsdtCUH7EUne9+yCIuUzdMVEoiFnWxfBCrGNZyw3QB+XZKSpgwp1+EHUh 51K+N6d+wl/ta4HAJ71qpfiMmXBgAk17ygtUZGx/s2EnPXhkHM1aggo2dS4KaTLu9/ kGjTvNXZqcvH/fggwvMg95vJkkN+XjZ12V75rIaI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Arnd Bergmann , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Heiko Carstens , "Jason A. Donenfeld" Subject: [PATCH 5.18 06/47] s390: define get_cycles macro for arch-override Date: Fri, 27 May 2022 10:49:46 +0200 Message-Id: <20220527084802.113027639@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220527084801.223648383@linuxfoundation.org> References: <20220527084801.223648383@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=-2.8 required=5.0 tests=BAYES_00,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=unavailable 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 2e3df523256cb9836de8441e9c791a796759bb3c upstream. S390x 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: Vasily Gorbik Cc: Alexander Gordeev Cc: Christian Borntraeger Cc: Sven Schnelle Acked-by: Heiko Carstens Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- arch/s390/include/asm/timex.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/s390/include/asm/timex.h +++ b/arch/s390/include/asm/timex.h @@ -197,6 +197,7 @@ static inline cycles_t get_cycles(void) { return (cycles_t) get_tod_clock() >> 2; } +#define get_cycles get_cycles int get_phys_clock(unsigned long *clock); void init_cpu_timer(void);