Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6141059iog; Thu, 23 Jun 2022 12:11:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sRRoYpHdgj+xNCjsPdVhHgC1t55ft+K7PbpvtSkKP+JeXfkg7/uTfLR3XLruQkgx6YQGlc X-Received: by 2002:a05:6402:370c:b0:435:cb14:9aa8 with SMTP id ek12-20020a056402370c00b00435cb149aa8mr6326058edb.35.1656011514829; Thu, 23 Jun 2022 12:11:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011514; cv=none; d=google.com; s=arc-20160816; b=NJe/Rr53KX01uuxhTxnyrn+e+g57PaXGiDzE5RfgwGZhreTfLSS3J+6wHyVTZzGuoz EyZMumhitm+DL9kZsUtGPlA+7NXZ6ewTBI1Ac7xAOpwFvmn2KCQ2Re8rcLFBytAnQCM+ 0pHr2uDw86gxyjg06o1W06z8schUcuSfQgVlrkeT3JBDJ1l6eB/mP+hQgvSYs4K3rSfT S87hd0enEH3VtNNTKXSd64F+0WI26rofKeSuEYm0y2me5lZtvAfUtfzg4XKRpiqtJ2CV iQ6o4DxiRNfRCFIZMrMwPJPJ/soyAIc3FMVIb87XFyM6jaOwtBvGzi9P0fFAl2+K7vNi b3Mw== 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=kVisgRxy43EqaMm7iPlQjIXCMM5JnvJFjS9R2QVcb9M=; b=H98o8d5VbRBf/uXvGRz8W1CcaXR8in4pdQ47igbfhwOjIkFhGGAbpd/bt8b2ijaY0C Lnv3anjY0fM2hJXNFKJjzCpvTb/hX6WNde9Xv1eOdIJubwXMqJsneU6vL32B5E3wU4QP a3qyjFOviHrAOlvtbffZZSdCM+pbBPT5g7k6+jgragAC60ZWpiqp1WVOsR4vnLAPECf0 jgcVtzoEuy/RfqYQou+Fr1FYj5F5R9mHUgsnjCQmlCE3gmF0eGLO9N3XaeWTjE3qo/Id KPJZzNxZDk22s7TavsQjAhGcUyJOCKvAQDHboxjtSeDS6oJLpx83XAAbdACbuGDa3rC1 G3nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=awLgqiad; 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 oz31-20020a1709077d9f00b006fe4c66b711si2435579ejc.46.2022.06.23.12.11.28; Thu, 23 Jun 2022 12:11:54 -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=awLgqiad; 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 S236393AbiFWSKi (ORCPT + 99 others); Thu, 23 Jun 2022 14:10:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236200AbiFWSH1 (ORCPT ); Thu, 23 Jun 2022 14:07:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAFE5973C0; Thu, 23 Jun 2022 10:19:12 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C34E961E70; Thu, 23 Jun 2022 17:19:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94B48C3411B; Thu, 23 Jun 2022 17:19:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004751; bh=V/GLoJn4uxM7rrTxwX4DAwerNlIpdJ3z30k4+2LXTz8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=awLgqiadG/3Dk/AMfBROnwJ9QQyRlFX/4DjvhW0WEPNj+zUuLMk1M/QrEPpQxD9Ow TFnyiftCio89wi6E5cVn4zqpOROMjOoNzO3aXeBDGhFXYpn5pFoKlgDSKlZFD0nhH3 rFE9p431hqqCshKOwOebAeRxZi9bQqBGMhoNTDTw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Arnd Bergmann , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , "Jason A. Donenfeld" Subject: [PATCH 4.19 139/234] powerpc: define get_cycles macro for arch-override Date: Thu, 23 Jun 2022 18:43:26 +0200 Message-Id: <20220623164346.990185596@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 408835832158df0357e18e96da7f2d1ed6b80e7f upstream. PowerPC 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: Benjamin Herrenschmidt Cc: Paul Mackerras Acked-by: Michael Ellerman Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/include/asm/timex.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/powerpc/include/asm/timex.h +++ b/arch/powerpc/include/asm/timex.h @@ -50,6 +50,7 @@ static inline cycles_t get_cycles(void) return ret; #endif } +#define get_cycles get_cycles #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_TIMEX_H */