Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1806832imm; Mon, 3 Sep 2018 09:57:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZJCNJe7yMVOvOEnWdQQJplYO8XB5CM50Ckso5MzR37xHuputvBfyTTa5zXEAqTv04trQd8 X-Received: by 2002:a17:902:1745:: with SMTP id i63-v6mr29249531pli.3.1535993822185; Mon, 03 Sep 2018 09:57:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535993822; cv=none; d=google.com; s=arc-20160816; b=ARndlRsi8M8WSwYqmK3Yh9GZbnJmvzHyz/0+YYwIu1L/9xFnh/WIatMZDDJqnAYl6l xNI8d4AL8QIonbh2petCRrBh+1X+gpq/qwCFOeaLailFdrjIMOa6Uc6+B91nQ0E8Pc7w cXgdq1M6097rYQDFqamBtXe2LzrALprL3a1yszmqsUAAT7sFnvWnL/EtrlJDwGwslONp LfcIhEe6NJo4oR2n2stznp21b4+goMY04TjKJ1LOFdAyrQxVLf8zKGbEUe7uC+JCGbh7 tFMbtRSNjHYEQ/E+4zlUVzqfIrJQsr+yKcum9khINGWgK/xhfXaYrZbnAwkTiEyQHNC/ 1znA== 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=0ev08xeWWQ4igvV+8G5+KSli8S3IOoYlYnW3leHvoRA=; b=nBb1D+TnD0vSCxIaDBsoxqaxN4cXV2oYQ4WauFSNZnsomZ7USxqfVSEGBcdVA1ukDb aEKv/sxhPLoJ1Cn5M2xBiUvh5bNPka0/UdL2skDE++fKj81QXewcPz0Hji7x15mNSpd0 V0wl3XfhHoIa7OtO6TnZjmfsAqkIykuAFa55azPPjLkb7OD/MkLFUAtrOgWnJL76A7Bk eHLtgBU8Db6L80oCWJZz8p+YWFz1Z0RHYXRTm3He7cSFE6aAfirkrDQbMiIoZ3ynwpzI UrhlXjJXsC1U3cnL40k1MIYjko37SeU3RDV+uraj1Nxpx+zo/URu2sbJCDTAi1e81uGU cXeA== 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 f15-v6si925429pgb.666.2018.09.03.09.56.47; Mon, 03 Sep 2018 09:57:02 -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 S1729079AbeICVPj (ORCPT + 99 others); Mon, 3 Sep 2018 17:15:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38386 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727848AbeICVPi (ORCPT ); Mon, 3 Sep 2018 17:15:38 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D2D9ECFC; Mon, 3 Sep 2018 16:54:40 +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.4 35/80] arc: fix build errors in arc/include/asm/delay.h Date: Mon, 3 Sep 2018 18:49:13 +0200 Message-Id: <20180903164935.552656113@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903164934.171677301@linuxfoundation.org> References: <20180903164934.171677301@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.4-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__(