Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp115176imm; Tue, 24 Jul 2018 15:08:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdKbAmudyEidpTIDRvxlsuTRG4HiB6dxfzPhupP/wWXpssIw2ILFeiUrFNel6k/r3+cxUVu X-Received: by 2002:a62:cc4d:: with SMTP id a74-v6mr19533034pfg.200.1532470126043; Tue, 24 Jul 2018 15:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532470126; cv=none; d=google.com; s=arc-20160816; b=XIcGR8P9EMrvKv/RnJArC6fF7zCzhitEPkxYRvyhC/8CthcROyQoPFNSPBRJi3mNDZ POuw4WCFqKcoLe/9O6FvpMN5RhmT1mlStDV5GJToMfd4CZbjtEMWmfFLHYWQ5hK0iF1N wNziqOJxoBd9lKpDqOkl97WZGRXORP91IsbmBNfL75k40ns06Bw6AlciwsHgR+xaE7aw QMfY70k6y8Tj+UP9F0aCvlWWOAcFJNOQTftimnG3m1Z1IjiJtv4SsmfLH3dmGYjDv6ic KZEyG9ejKfvrrwBSHO3Da0+nL9x51yWrzx/Pbj0NwIiHSmwiUOK6hr1BVMWb5Z8nweEq YObw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=2ZC1VRzLwKgVWmRtaJUcpGn7LZWAgp4Y0LJjh/8TWec=; b=Ej0wusLnT0x1mVZ7oe6et/pbwB4WVWqvPPpfgA6ol5ph1M15iUDR72ysdSDMiOgwFZ BIa5TrYPjpJSTeQoCOdrGx0ZiMzvfdqWxHfnYcDxprnUgcZGTPs5/FxnIv/f3rsZVv/1 GRWlzXfsFougjkCOtPC7QynzE6Tcutjj8dCp/V2ZPT0UiHbBCLIsAFI9lxlUKMXDka6S mH9ai3XvgUSKF1dVE82IKjvQTFnzrtlBYrp9ZGDYRSbC1of/hWYRDDO0sxxCPUKNLLo3 tiD/Zdt+GfOyQLJg/NwYM8VanxZsn18Az8iHbH8OgZ2rVu4Re6YT9Iw9oPFb5s4RlYMH pH4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=dKE6tR3q; 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 y5-v6si11757044pgc.493.2018.07.24.15.08.31; Tue, 24 Jul 2018 15:08:46 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=dKE6tR3q; 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 S2388838AbeGXXP5 (ORCPT + 99 others); Tue, 24 Jul 2018 19:15:57 -0400 Received: from merlin.infradead.org ([205.233.59.134]:37728 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388488AbeGXXP5 (ORCPT ); Tue, 24 Jul 2018 19:15:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2ZC1VRzLwKgVWmRtaJUcpGn7LZWAgp4Y0LJjh/8TWec=; b=dKE6tR3qzkjOc5+8eP2joKu+VD xj4InYB3g6gFZYkUoUAbcZU9kgIvYiCLZt8Voc1uboj2tkcOYZg04t/ELhxrcYfsCmOKkr9B9z0n0 kev1Ta64jbfomhlT0lVGpo+xy72UqnB2OkbpIHBi2tsKxo4YG4UxT50VqnMPWxP1QmaQb6No2CD3P 4kR4gXdPaq2oHk5k1tmZdpvxiVo5zGxNtt7JVNKrI/9XhZaYNKJVO6thURUPEZs32h+amIEnYwHVK 7HjInC0CVQmpALX3fNxvB0AH8tuhwLI6oxVIo7W7BfNdjGDTo0CMsLNn4gwYC9SYfAbr3oUIkmyga J7Plse1A==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fi5Si-0004ew-MQ; Tue, 24 Jul 2018 22:07:22 +0000 Subject: Re: [PATCH 1/4] arc: fix some build issues in delay.h To: Vineet Gupta , Randy Dunlap , "linux-kernel@vger.kernel.org" Cc: "linux-snps-arc@lists.infradead.org" References: <20180724204622.2366-1-rd.dunlab@gmail.com> <20180724204622.2366-2-rd.dunlab@gmail.com> From: Randy Dunlap Message-ID: Date: Tue, 24 Jul 2018 15:07:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/24/2018 03:04 PM, Vineet Gupta wrote: > On 07/24/2018 01:46 PM, Randy Dunlap wrote: >> From: Randy Dunlap >> >> Fix build errors in arch/arc/'s delay.h: >> - add for 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: Ofer Levi >> Cc: linux-snps-arc@lists.infradead.org >> --- >> arch/arc/include/asm/delay.h | 2 ++ >> 1 file changed, 2 insertions(+) >> >> --- linux-next-20180723.orig/arch/arc/include/asm/delay.h >> +++ linux-next-20180723/arch/arc/include/asm/delay.h >> @@ -17,6 +17,8 @@ >> #ifndef __ASM_ARC_UDELAY_H >> #define __ASM_ARC_UDELAY_H >> >> +#include > > this file in turn includes asm/delay.h - the header guards will catch nested > inclusion still seems ugly. Should we just reference loops_per_jiffy here like > other arches do in theur delay.h Yes, that's a good idea. I'll do that. >> +#include >> #include /* HZ */ >> >> static inline void __delay(unsigned long loops) >> > -- ~Randy