Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3141252imm; Sun, 29 Jul 2018 11:12:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpen157Tz0bVqkBIgtWvHdsjcxUKvvo9QZfctoE1OzOJqpSqbCsGzoIHjpXmow3hCZ5qIITh X-Received: by 2002:a65:4107:: with SMTP id w7-v6mr13052778pgp.302.1532887930532; Sun, 29 Jul 2018 11:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532887930; cv=none; d=google.com; s=arc-20160816; b=ZEwPumG1YXTphOQvDKXl/HOE0epIkuqe30eW7dHYh7BjKH5GBfIXneyQp+agO7gQAI qBE8jYbXowPWIR5PCyY6dO4dgLGEaX7TyPmhbEntQa5ErT766mRChGCiz2EvsxVOu/qx NdXIJuhcYhwr372BvQ3A8Stm8eo+NAuF2yobHu/A+ikAcbdW1CU1UNw4kYzHc4Be2ZqG nWyKo73pGAF/53CrlKCRpI+mZQZ5SNkA10tPOfkupuIFD9UJIDvUbFJJCJUc6/F/ijAn NeeBOmTnWgwUha3szhQH/5bn3uZ10CoSWbAKKZtyJwpZ5Z6sLhluY2cAKNyF3n+g0/0S S/kw== 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=1tl4XA68eXFzsFLtrvUWLm/Yw4DNX8yn4KJCEqgFA3k=; b=BIMf4CqjbEalaH8+cUfAAzHYgl4vH3MAvp16IdohoKpTSLq4iHXdjdIgnNDm8gPIDR Wg2CKnFBeFX8nbWtkpSfec1r2uU5c9sw9fl+qPEov+brhVcNnE+HvZ65bcTwLIHo0Yqu rLti3fwu8HS/Z58PUKEXMky4bu37PQTcxKoOVMozv34fD4/gp7FrKKy76QyR/fXiw77u 795qzgxLJcE9FitnyAJYBQx1qjD6numx5N9ySpv5fufe4HmUx6rxoD6MEsWlo0RiRbCT WuPAMIfWy3gkCYad4+0F6+JmUnm1joAN5nc4Kp1/21CgpJDQ+mNBeS56L6R0Cu4Zb3qC 9wFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=merlin.20170209 header.b=cHkok3Po; 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 t79-v6si9626494pfa.170.2018.07.29.11.11.56; Sun, 29 Jul 2018 11:12:10 -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=neutral (body hash did not verify) header.i=@infradead.org header.s=merlin.20170209 header.b=cHkok3Po; 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 S1728510AbeG2TmT (ORCPT + 99 others); Sun, 29 Jul 2018 15:42:19 -0400 Received: from merlin.infradead.org ([205.233.59.134]:36248 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726493AbeG2TmT (ORCPT ); Sun, 29 Jul 2018 15:42:19 -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=cv9ApKFZB7x8AjO0M+6fdGovfTTsA7hhfAY1KhBtOeM=; b=cHkok3Po7dWKIC86Lh0FhZfFIO 1Zy26YpxE8+gXgCC9bcnHqrMcOB13Cx7TyssReO8F99icUvfSqZLh0Q018cj0qduZlchAR00v1sYp x5s/FeYjitqblyuOt8PugyA3zp7DNQXfooryq7AKc2BC/eGQX90ek0fsc2pl2k/Daemej++Iv/JdX 1TFJGQO26mYH8y3eI/KIRYx9zDvnP14/zfPf/y4kOfAIEhriKnLmFEgdm/QBvq90hL6rTJX1p6JUy VxPRZUYlrTP5iBD7bPYO9WuN72jYov5i+bwci+kP4zxw6D6GKJ5gOHnSVDM2fU/VPMkVqbS9iVzE7 LoY+rgPQ==; 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 1fjq9g-0002k2-Dm; Sun, 29 Jul 2018 18:10:56 +0000 Subject: [PATCH 3/4 v3] arc: fix data type errors in platform headers To: Leon Romanovsky , rd_dunlab Cc: lkml , Vineet Gupta , linux-snps-arc@lists.infradead.org, Elad Kanfi , Ofer Levi References: <15326613951079@infradead.org> <1532661395712@infradead.org> <20180729070113.GC7157@mtr-leonro.mtl.com> From: Randy Dunlap Message-ID: <0d2870ef-ae4c-d9a8-c894-c4f252fae7da@infradead.org> Date: Sun, 29 Jul 2018 11:10:51 -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: <20180729070113.GC7157@mtr-leonro.mtl.com> 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/29/2018 12:01 AM, Leon Romanovsky wrote: > On Thu, Jul 26, 2018 at 08:16:35PM -0700, rd_dunlab wrote: >> From: Randy Dunlap >> >> Add to fix build errors. >> Both ctop.h and use u32 types and cause many >> errors. >> >> Examples: >> ../include/soc/nps/common.h:71:4: error: unknown type name 'u32' >> u32 __reserved:20, cluster:4, core:4, thread:4; >> ../include/soc/nps/common.h:76:3: error: unknown type name 'u32' >> u32 value; >> ../include/soc/nps/common.h:124:4: error: unknown type name 'u32' >> u32 base:8, cl_x:4, cl_y:4, >> ../include/soc/nps/common.h:127:3: error: unknown type name 'u32' >> u32 value; >> >> ../arch/arc/plat-eznps/include/plat/ctop.h:83:4: error: unknown type name 'u32' >> u32 gen:1, gdis:1, clk_gate_dis:1, asb:1, >> ../arch/arc/plat-eznps/include/plat/ctop.h:86:3: error: unknown type name 'u32' >> u32 value; >> ../arch/arc/plat-eznps/include/plat/ctop.h:93:4: error: unknown type name 'u32' >> u32 csa:22, dmsid:6, __reserved:3, cs:1; >> ../arch/arc/plat-eznps/include/plat/ctop.h:95:3: error: unknown type name 'u32' >> u32 value; >> >> Signed-off-by: Randy Dunlap >> Cc: Vineet Gupta >> Cc: linux-snps-arc@lists.infradead.org >> Cc: Elad Kanfi >> Cc: Leon Romanovsky >> Cc: Ofer Levi >> --- >> v2: no change >> >> arch/arc/plat-eznps/include/plat/ctop.h | 1 + >> 1 file changed, 1 insertion(+) >> >> --- linux-next-20180723.orig/arch/arc/plat-eznps/include/plat/ctop.h >> +++ linux-next-20180723/arch/arc/plat-eznps/include/plat/ctop.h >> @@ -21,6 +21,7 @@ >> #error "Incorrect ctop.h include" >> #endif >> >> +#include > > I'm not familiar with arch/* code, so maybe my question will sound > naive., but why "asm-generic/types.h" and not "linux/types.h"? Nope, good question. That works and should be preferred. Please use the new patch below. -- From: Randy Dunlap Add to fix build errors. Both ctop.h and use u32 types and cause many errors. Examples: ../include/soc/nps/common.h:71:4: error: unknown type name 'u32' u32 __reserved:20, cluster:4, core:4, thread:4; ../include/soc/nps/common.h:76:3: error: unknown type name 'u32' u32 value; ../include/soc/nps/common.h:124:4: error: unknown type name 'u32' u32 base:8, cl_x:4, cl_y:4, ../include/soc/nps/common.h:127:3: error: unknown type name 'u32' u32 value; ../arch/arc/plat-eznps/include/plat/ctop.h:83:4: error: unknown type name 'u32' u32 gen:1, gdis:1, clk_gate_dis:1, asb:1, ../arch/arc/plat-eznps/include/plat/ctop.h:86:3: error: unknown type name 'u32' u32 value; ../arch/arc/plat-eznps/include/plat/ctop.h:93:4: error: unknown type name 'u32' u32 csa:22, dmsid:6, __reserved:3, cs:1; ../arch/arc/plat-eznps/include/plat/ctop.h:95:3: error: unknown type name 'u32' u32 value; Signed-off-by: Randy Dunlap Cc: Vineet Gupta Cc: linux-snps-arc@lists.infradead.org Cc: Elad Kanfi Cc: Leon Romanovsky Cc: Ofer Levi --- v2: no change v3: use instead of arch/arc/plat-eznps/include/plat/ctop.h | 1 + 1 file changed, 1 insertion(+) --- linux-next-20180723.orig/arch/arc/plat-eznps/include/plat/ctop.h +++ linux-next-20180723/arch/arc/plat-eznps/include/plat/ctop.h @@ -21,6 +21,7 @@ #error "Incorrect ctop.h include" #endif +#include #include /* core auxiliary registers */