Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1823947imm; Mon, 3 Sep 2018 10:22:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZHKu2owBEfPGT4js3FahNqMMuyHRTiqmqYeZJdQgVw825bzivFunfE3wmbBhF4pVJb/CVp X-Received: by 2002:a63:1413:: with SMTP id u19-v6mr27519521pgl.247.1535995345876; Mon, 03 Sep 2018 10:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995345; cv=none; d=google.com; s=arc-20160816; b=PNRk75w/1Usp7TeJ6pWQ6qk5xaYTtaf9Fp5MBkiQRkhiITbp831mhr1T+TAVYmDx/X bzvmNvBymskYUmlZKkuPeKcMaiBhbpmOI8NXgUL2BhQTCnz9H8HWNlgcwXay4NeJIpjb gEIxRLezGPzHL0StAVCoEP6pzXaqwQwaAGeHbDtLcfSxcRSMAE5FG0jjVHI/b+jRh2Nr 06oAY7NS5mm21yHI1ty9NnW7Po57RE79PGk09PcdgUZQwDLCCggAvaYU0Xp/1RVJBkag R5W5POof5iue/Kw5kjE3Tx3NtpvzaUVmhn5smenIFoZ1biACXeWAhmWO6i+A5WZ26N52 A81g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=71a1+Ws3+xTvuje8RMHVTokkw0C80M9W7DyPwr1tyfY=; b=oUXpOMME4z3ilC9g76R6GyPbYdk4s7olzr3DHd9DD0QVm3siKNFXf3oOPcL7FtSP/x oCY2Rb3ssuXalKfee9IQNz+s8Er/NIG1pg3OVvDUYsVRpEGARZ4GQWDCdOJRWx72df/N ETLuNxRL8CFcgCTSTH73NM5p+KY7q4E2dBUjpyTt9CyxW3rcf/Vl4YckAI2Ogl/vBljO rqR+kBfhmEDpBur57glWEHphfbM4cQ/dP1nx6oA0OQvsOLttn4Agm1XoISzwofmjIOTo DWmIOCfXCgTufzoHC9dPlA8CauM3yUiamyjQeJ4Muzsr5dWPHgqjcWTk4VNNK7VngcLU VVoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10-v6si17740386plt.468.2018.09.03.10.22.11; Mon, 03 Sep 2018 10:22:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730397AbeICVjr (ORCPT + 99 others); Mon, 3 Sep 2018 17:39:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43104 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730088AbeICVjr (ORCPT ); Mon, 3 Sep 2018 17:39:47 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8C41DD09; Mon, 3 Sep 2018 17:18:41 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Vineet Gupta , linux-snps-arc@lists.infradead.org, Elad Kanfi , Leon Romanovsky , Ofer Levi , Sasha Levin Subject: [PATCH 4.14 067/165] arc: fix build errors in arc/include/asm/delay.h Date: Mon, 3 Sep 2018 18:55:53 +0200 Message-Id: <20180903165658.470926435@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Randy Dunlap [ Upstream commit 2423665ec53f2a29191b35382075e9834288a975 ] Fix build errors in arch/arc/'s delay.h: - add "extern unsigned long loops_per_jiffy;" - add for "u64" In file included from ../drivers/infiniband/hw/cxgb3/cxio_hal.c:32: ../arch/arc/include/asm/delay.h: In function '__udelay': ../arch/arc/include/asm/delay.h:61:12: error: 'u64' undeclared (first use in this function) loops = ((u64) usecs * 4295 * HZ * loops_per_jiffy) >> 32; ^~~ In file included from ../drivers/infiniband/hw/cxgb3/cxio_hal.c:32: ../arch/arc/include/asm/delay.h: In function '__udelay': ../arch/arc/include/asm/delay.h:63:37: error: 'loops_per_jiffy' undeclared (first use in this function) loops = ((u64) usecs * 4295 * HZ * loops_per_jiffy) >> 32; ^~~~~~~~~~~~~~~ Signed-off-by: Randy Dunlap Cc: Vineet Gupta Cc: linux-snps-arc@lists.infradead.org Cc: Elad Kanfi Cc: Leon Romanovsky Cc: Ofer Levi Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/arc/include/asm/delay.h | 3 +++ 1 file changed, 3 insertions(+) --- a/arch/arc/include/asm/delay.h +++ b/arch/arc/include/asm/delay.h @@ -17,8 +17,11 @@ #ifndef __ASM_ARC_UDELAY_H #define __ASM_ARC_UDELAY_H +#include #include /* HZ */ +extern unsigned long loops_per_jiffy; + static inline void __delay(unsigned long loops) { __asm__ __volatile__(