From patchwork Fri Jul 27 03:16:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 949976 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XdQXaGLD"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ee4GiivE"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41cDjY2kN2z9s21 for ; Fri, 27 Jul 2018 13:20:01 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Owner; bh=2JIaK8sgikRFb8Qvs3Fgnu0zLQ+siiXegV4eBkUGAD4=; b=XdQ XaGLDWnx0d/mKkkt08nSGZt8R/OjPKVUXwxY4AtiS9cAp42Dn/0KZO76gW3cmSbt4kecwWaCrlspF uALVTzGKfBoVODsOHIyRHO6QrAQJl46rGt0z0H4uKuMUtaC7ihgZmpencoKxQyyrjmZYXs9HEisiN vzcxFc3f/DC+SJq+25lMb/WYMdjrjLnwVN97gXkevweIMKZdtr7t365mzygfF8ehi+A2pJGicftwG PaCc1WATFou5w0xkrNPzuuWgg8k7mN8J5PbJMGdBCd9M0KZ0sJQu33No+r2aKjYGkuXHZzCb9kjlm zXNAOFwQNUkhxmYDRhi7p3m12Oyu7CQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fitIN-00075u-5S; Fri, 27 Jul 2018 03:19:59 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fitIK-00073e-9r for linux-snps-arc@lists.infradead.org; Fri, 27 Jul 2018 03:19:57 +0000 Received: by mail-pg1-x542.google.com with SMTP id n7-v6so2372904pgq.4 for ; Thu, 26 Jul 2018 20:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to; bh=DKwR8wB/JGhKvrpw3kbdhFA7TgsmPyhd4BLxSc2XIRA=; b=Ee4GiivEaO5ua/Dgjw1ZUUwTYXwBK46lnwzuPPvyzz7ar7BH2hCW6ItOZWd7l7lEat ZVR6uxT4pX5UvtWWFFjyJ3z3MVODsrEHyzOWgh1YRIUOl3kGB8Ig4yViiD/Wh0ZlAsmI mktV4hhyEhjX8NnkkiQ1bbkDp7Zx6OsCmEruJC/5OM4FD8DwLsNzlkDcc4Tqmj85xad6 DxxB9qi9ans0505+aObVcXkwZySDjuSG5SheOje4xgvPdT/fj/Ggcs7XUFXPqnZ82FgY pxhWuTMbFH8BfGJ68rTM+qWvi1nHdIY91AO5SfzW2m/ze8BuUqJFvzoFAnc/1yFsQaCC 58dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to; bh=DKwR8wB/JGhKvrpw3kbdhFA7TgsmPyhd4BLxSc2XIRA=; b=nUMl3s/8Hurjqh3HST5hhe5SzT2fPQEBk4GPMVaWG/e/Wt+ErDvqHV6L8fisqS5kLv /8T18TzrmVrOvrg4cH51UR8F2U/tYkcI3WNoydIIQZ5v3AHIpK5B7R72RSjFes+TKOm4 XZLQCqIXHV/0MW5sdPp4uXM3ZfDqxbbmXnQA+58Br+jhetLJamntxBv1uLDLBZlLcRMY WZEgEuAbSFZkzXhs9L6HrG0rigbFadHF0dFnJZWgRtL8YRj18a09/51v/wG8XtwqfWbl dgzX3GggV9oIYMMdR3uKuPUTDG3KqcRFY0xvhvnv1r1rrFsQQ8sJyUnPCeY/oU7QlbVH MSqw== X-Gm-Message-State: AOUpUlFBrqXRWEkcJXHnC8lwP0eQlQ8ijNDqhNQor8pgeaoqR2KJmCL+ 0F0d0bwqZE07M/k1kDN2dbs= X-Google-Smtp-Source: AAOMgpcxKpfUBZe/9d5vwApiURC8DnV7QRl+YGL+HYM4UyfF/8/M3jYHH5MzfC0pJnimrG2mSLycTg== X-Received: by 2002:a63:c60:: with SMTP id 32-v6mr4354613pgm.155.1532661585919; Thu, 26 Jul 2018 20:19:45 -0700 (PDT) Received: from localhost (static-50-53-52-16.bvtn.or.frontiernet.net. [50.53.52.16]) by smtp.gmail.com with ESMTPSA id 1-v6sm5371156pfk.134.2018.07.26.20.19.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jul 2018 20:19:44 -0700 (PDT) Date: Thu, 26 Jul 2018 20:16:35 -0700 From: rd_dunlab To: Randy Dunlap , lkml Subject: [PATCH 1/4 v2] arc: fix build errors in arc/include/asm/delay.h Message-ID: <15326613952848@infradead.org> In-Reply-To: <15326613951079@infradead.org> X-Mailer: gregkh_patchbomb X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180726_201956_346167_C744B9AE X-CRM114-Status: UNSURE ( 6.16 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:542 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rd.dunlab[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vineet Gupta , linux-snps-arc@lists.infradead.org, Elad Kanfi , Ofer Levi , Leon Romanovsky MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Randy Dunlap 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 --- v2: add extern for loops_per_jiffy instead of including for it arch/arc/include/asm/delay.h | 3 +++ 1 file changed, 3 insertions(+) --- linux-next-20180723.orig/arch/arc/include/asm/delay.h +++ linux-next-20180723/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__( From patchwork Fri Jul 27 03:16:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 949977 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="L2cgHpe/"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="rHFVNTpd"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41cDjg341Hz9ryl for ; Fri, 27 Jul 2018 13:20:07 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Owner; bh=XLPXjeQQnV0YEsetDF3wjND/z3HgmHN3zH5jv0qcwCU=; b=L2c gHpe/YQl3vI3dqf88Kw3IOJk2ziPawP43XXsWDM9Djt4o9HD9NOUGHVkJm/iTT1i6ExyEfA8fuwq0 4eFWyQ/V3wDDAWYQPCcrOpcbsT1C1OQlwbeVeKxKR6cIzqt/4SOUKWBLRKl45248dQwXpbMOGKhks pWC8T9DOYcT62vhI9myfeEeOfkfoOihg/5GWlUYsluDExWoIyqFdZNiZ4z0BY1I7RuRgMWQFqEln7 eCyGWs0KdkpDz9CJBWgOAcFU1WdSNzoQQNIcxCY8htGPLDZgxpJ/326eywQqaX8kmvYK+aB5ZlI4R OpL3t+LuEGqpXHzDgsefiGgZMUIkf0w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fitIT-0007JY-AY; Fri, 27 Jul 2018 03:20:05 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fitIP-00074J-Sg for linux-snps-arc@lists.infradead.org; Fri, 27 Jul 2018 03:20:03 +0000 Received: by mail-pf1-x441.google.com with SMTP id e13-v6so1241238pff.7 for ; Thu, 26 Jul 2018 20:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to; bh=9Sr57swLBSLvmhuQRBpwtqfvQu7eG02RvZr11pmtwus=; b=rHFVNTpdl8xmUKCVIk9IrVW3SU42DCZ/BFYvnxHuRHTSleja2mvRgbha5H5FJRSwrU 0dOaXiDwTES+5n4rLnUcbr1FkODtSqynLQASfSvpzNOMBRPCnfOWH7KNTEP/RxVO0X0P Of5oZZvvZmoaQVnrPkDnAZL04awwt0NmC1RoZovCVSD/wRI1NlL3swxUBQ9Qv0FFvmEK KDq2kRGFXIbbb8tiu2VTD9sdYygBm6w6x+hqueOeEBl9KPKAzTCHtAjcCgK9Ey80kGTx GWJ7ZR1soPVnBDrqEipYEEcYBaoaQS4I9JRZrwJ5shvYGCzwJ9yXzv8z+sBzbAEBJdOY SKAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to; bh=9Sr57swLBSLvmhuQRBpwtqfvQu7eG02RvZr11pmtwus=; b=I5eU0dZ+0C2Pe3jxEG7Ie/Jrqb0Hfbf+Vjz+6JGHximuverb4rOPQm3P0RpNL1n7f+ 98Fnz7wHMjtfcL5QgQ983YI0czK7WzvUHIug448fbj0pDnhPb3hSUDFyPlHSxTRiXnXJ XvLsy87a/h7Ajq8miAC9FA0gXHZWX6Yng4sLbi5JupDcGL/M+NT1DjkUzqg2O3wzCdZb vXlFtmoN4hG67rFg9820Mkv/QzE6wJIXROU1HJEslqPDT/toQ5up/R7HYy6lFsOI2amb l27PsFFvkf4mcoEkp5EOOylU+4bSrmEUDrZKglcYCY92WTXsk0fAtv4INTO8IH8AQOpO oW6w== X-Gm-Message-State: AOUpUlFEYkCRxdkiwuPrawRC/IA15xCA5PHBSI33MQ0ciIr39Sjdhw1l +Xnk08e6Jr82XN3LcEKb4vo= X-Google-Smtp-Source: AAOMgpcZFvvSgeJuabGY+vm/EwVqNIBhV4n+NdZgbe9VOy8gC/Sesi4Pvie8wTLzFRRSoY0qjRa6qw== X-Received: by 2002:a62:3b03:: with SMTP id i3-v6mr4753180pfa.197.1532661591544; Thu, 26 Jul 2018 20:19:51 -0700 (PDT) Received: from localhost (static-50-53-52-16.bvtn.or.frontiernet.net. [50.53.52.16]) by smtp.gmail.com with ESMTPSA id 64-v6sm4912973pfi.89.2018.07.26.20.19.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jul 2018 20:19:50 -0700 (PDT) Date: Thu, 26 Jul 2018 20:16:35 -0700 From: rd_dunlab To: Randy Dunlap , lkml Subject: [PATCH 2/4 v2] arc: fix type warnings in arc/mm/cache.c Message-ID: <1532661395238@infradead.org> In-Reply-To: <15326613951079@infradead.org> X-Mailer: gregkh_patchbomb X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180726_202002_038272_03BE9F6A X-CRM114-Status: UNSURE ( 7.02 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:441 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rd.dunlab[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vineet Gupta , linux-snps-arc@lists.infradead.org, Elad Kanfi , Ofer Levi , Leon Romanovsky MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Randy Dunlap Fix type warnings in arch/arc/mm/cache.c. ../arch/arc/mm/cache.c: In function 'flush_anon_page': ../arch/arc/mm/cache.c:1062:55: warning: passing argument 2 of '__flush_dcache_page' makes integer from pointer without a cast [-Wint-conversion] __flush_dcache_page((phys_addr_t)page_address(page), page_address(page)); ^~~~~~~~~~~~~~~~~~ ../arch/arc/mm/cache.c:1013:59: note: expected 'long unsigned int' but argument is of type 'void *' void __flush_dcache_page(phys_addr_t paddr, unsigned long vaddr) ~~~~~~~~~~~~~~^~~~~ 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: drop some spurious (accidental) patch lines arch/arc/mm/cache.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- linux-next-20180723.orig/arch/arc/mm/cache.c +++ linux-next-20180723/arch/arc/mm/cache.c @@ -1038,7 +1038,7 @@ void flush_cache_mm(struct mm_struct *mm void flush_cache_page(struct vm_area_struct *vma, unsigned long u_vaddr, unsigned long pfn) { - unsigned int paddr = pfn << PAGE_SHIFT; + phys_addr_t paddr = pfn << PAGE_SHIFT; u_vaddr &= PAGE_MASK; @@ -1058,8 +1058,9 @@ void flush_anon_page(struct vm_area_stru unsigned long u_vaddr) { /* TBD: do we really need to clear the kernel mapping */ - __flush_dcache_page(page_address(page), u_vaddr); - __flush_dcache_page(page_address(page), page_address(page)); + __flush_dcache_page((phys_addr_t)page_address(page), u_vaddr); + __flush_dcache_page((phys_addr_t)page_address(page), + (phys_addr_t)page_address(page)); } From patchwork Fri Jul 27 03:16:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 949978 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="eEPAaTDB"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lkOO0uk3"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41cDjn2vG7z9ryl for ; Fri, 27 Jul 2018 13:20:13 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Owner; bh=nOQvSLZgKgCQXzK6SuDADFMjT/RPHMJ+vbHZA4jgEBw=; b=eEP AaTDBbJT4wpBWD+LBStvPUJKNUoMDJUInZ9O9z7UMAF04zTrcnnonKLkmKVsS9blNe1XtY9AUO/+9 1NSyqsVqZQXkXqIgSqQEGMduROAyX/piIWxlHjyakq3E+EROtr/BqCER6z8MbiNWzmOU73tDOCRPk 1vYL6MLXib+5t5dnuez2zdEP2TMdkvSVgxRS38VEkn4x8ja7T3GBnkdtKlUYocRFNnwgocrBcbeCj MCCL/yPxOcSLw+2mtAbJHi33HbDijYpLE+SxuJtK5cQ2iSHFBca31aJ+S74BqO3tTprZcuR6ERgDe 5aq9bH0dTraB26uNNXqnOqjwgdDMg7w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fitIZ-0008K6-FE; Fri, 27 Jul 2018 03:20:11 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fitIV-00075h-SX for linux-snps-arc@lists.infradead.org; Fri, 27 Jul 2018 03:20:09 +0000 Received: by mail-pf1-x444.google.com with SMTP id e13-v6so1241300pff.7 for ; Thu, 26 Jul 2018 20:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to; bh=oLNGfYlCdSOb8+n/ssJzynpxf6Wyu3GDmLETsKKWvYk=; b=lkOO0uk3L9RpNLnUGckI2az6nFwqyCfr2BGp+oM47uryJhDrcEMUo8bo5m9SAAzig1 omyyTauXCtft+9s41Fyb7OXn/FEjL7Eo4bTZFIOpaRUncVWnwckZTiFIUzvHkVtghmOZ bspDNOItfIrt3bcmndT6DgNmT1bjAJItg52sVIDFPx2HU0ozOXfuyIlG6luUhCBbd4ZR g5vz24mKb6Numl3wzXSxcCiGVxVVCKk9uArOkk0iHhaDk16mOALX7adpUozr7Pxb8LEA Vy29x4nHD2W1l7XYD5zrTzDczVaKFHrpJ1Vp3iLrlzcj7IopiawxogM2rx9SGCtIlPvG 9h8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to; bh=oLNGfYlCdSOb8+n/ssJzynpxf6Wyu3GDmLETsKKWvYk=; b=gc3jwAXCjX2hAvs8MYdIBNHGPg+WqflWzOdgtDWVgBpZDE8MxixAEmQvAKfhDj8KwB vXGsd6dY8fLzaiDtkNXxeBU649sb9LBSf9dj9GL5F5lBtDbslCkZNfVQEtgDgBhgjInM woMdNvggBbSXNs8BZtLrPCTDYq+YqMtiQEWwgsEkVnBFtMmJkMEBOFidpW4+zToz9BXw AV+VRG+EgO/+8zjiPLmoCrnVUUQ5BCVpurPYanqwbw307vi77EGgzDVYi3AJ9s+CaU5U roiK01cgDAAGZFTCWrYcMz3VZn9vI+/RyusjPy949MlVerizDfBYBgAxPGMGp9TUQbwK S6Ow== X-Gm-Message-State: AOUpUlFx+IQETRU0uSwfK727oWtI/ebGnYGxHbFVKHyaEvqGK+c/vhf5 S0JBhuU1WAWhFoAub+frkGE= X-Google-Smtp-Source: AAOMgpdqBOrMxXbaztZ5gNSzZ7VyWbuax7xMmYnfRzW0r/bWkoWAuyemM09EWQSplqFwjS5knjEQRg== X-Received: by 2002:a62:3d86:: with SMTP id x6-v6mr4783318pfj.192.1532661597206; Thu, 26 Jul 2018 20:19:57 -0700 (PDT) Received: from localhost (static-50-53-52-16.bvtn.or.frontiernet.net. [50.53.52.16]) by smtp.gmail.com with ESMTPSA id e21-v6sm7811731pfl.187.2018.07.26.20.19.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jul 2018 20:19:56 -0700 (PDT) Date: Thu, 26 Jul 2018 20:16:35 -0700 From: rd_dunlab To: Randy Dunlap , lkml Subject: [PATCH 3/4 v2] arc: fix data type errors in platform headers Message-ID: <1532661395712@infradead.org> In-Reply-To: <15326613951079@infradead.org> X-Mailer: gregkh_patchbomb X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180726_202007_947894_8349CD2B X-CRM114-Status: UNSURE ( 6.36 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:444 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rd.dunlab[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vineet Gupta , linux-snps-arc@lists.infradead.org, Elad Kanfi , Ofer Levi , Leon Romanovsky MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 #include /* core auxiliary registers */ From patchwork Fri Jul 27 03:16:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 949979 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FWsYmSKF"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tW6SgVkd"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41cDjs4jc9z9ryl for ; Fri, 27 Jul 2018 13:20:17 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Owner; bh=ZnLFVS4VBxok1wlatAIJxF6MRPnB4+ny7gD6Am/lFGU=; b=FWs YmSKFDvZ6h7LTUR0fzz5/RsKY0+HAldm+LDn6DA+RxFdWgLNr0R/QdK4pyS/Wdw93XIXKsyhjiryp OSRyJnE8ABqEy9NXxmfXgJa8ZiI+qv1hEIacaV+e3FVyONx2qog1h3EXMbkEPNtYcPXsoE0+eM2PB bC3YC3DTcOz4kXlmIOb3sP69TJjD6l1/6SDlI60v92FQC0AraIJ2mEJRfgLQBmU0oPcJb/x9N0eF7 0VjDgp720d0MruuB+7LEj7/+WeJXNtnssLtKz3+aMX1CH++TntpQE2AO5pA/k8x/ks/M7dMDHC/SG WYHwXl1gyvR8Lr+Aqvd6sMp085cyprg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fitId-0008Mq-JX; Fri, 27 Jul 2018 03:20:15 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fitIa-00078x-RX for linux-snps-arc@lists.infradead.org; Fri, 27 Jul 2018 03:20:14 +0000 Received: by mail-pg1-x544.google.com with SMTP id n7-v6so2373257pgq.4 for ; Thu, 26 Jul 2018 20:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to; bh=ExX/0UskqZFk3iQZvd/sNSWWHFk6XFzds/iQ/J3r5Mk=; b=tW6SgVkddcAtrN8SndB7dsZuIoe2IHdm9MS5y3u3YcOoG8Hc6qTeZ+LO5/H8Qs9rG6 UAm0M07Ebs/rpovN26smwecKpefKYTc7WBUrvoJt2E2/s7j6J6qQc8TQGoaVJsj1O47v /7UgZV6Z5JxlgD+F5PdFkUqhysRC9im6wjjL1XSkoupnoV8f6tVQ+d/ZWik2gCK5S2Tw lrq6SeK+jtMs86aDzvt0YWg2ANRMLnU3erJGv/sLwZpufgZlmNvi7N879O1nhRQKy6US msUaWQ34www9JaMaNcTlL0HUxbpV1CRfg9b0X72mT49rJTICLBrsPwUwMj2XQ0Nyc1o7 MShQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to; bh=ExX/0UskqZFk3iQZvd/sNSWWHFk6XFzds/iQ/J3r5Mk=; b=g2+hJAYikR56M2HB8s6IPyG/Aq/W70ICjsvsHTq8J3YCyP0u5ImnFAsRL1GVrBn8HG JmTjhrt3ZVaLxC8QujCQOychSfXp+3M1unpSLjVrNpix0HKebBXkPlzA8048PL0W1TYD YepXHhoVbrWivrlsXENrCZb2iP0F3C2yM6S98wnFgyvs+Ka5YYd4eSWdp8oJ3t9XPqX0 62bHiW5KY954qao9+XjPBDhp61aAaQGE99vvLAM7V0ZZ8emra3mlrgXeXdtwKBm0ArVw dbr+yX5b4o6CrvksoYs15AcaJThsjn6PtKb1MfeZ1cRqjA1s38Bqu+onEw25XOejHaEz Xivg== X-Gm-Message-State: AOUpUlG7ZIpWTGcd2A3IU5u9aAIaE+S+fVd+4YHighCwFKLJsXBntR4j MTbbejV9VqUJ7+tmohmbxm0= X-Google-Smtp-Source: AAOMgpfO4u+o8y2wyF9hJoKvq/Bplj5efmEZPte9zr49RyH9970FFSf9C0/kigZtnqIULieZi3wW6A== X-Received: by 2002:a62:bd4:: with SMTP id 81-v6mr4797311pfl.67.1532661602421; Thu, 26 Jul 2018 20:20:02 -0700 (PDT) Received: from localhost (static-50-53-52-16.bvtn.or.frontiernet.net. [50.53.52.16]) by smtp.gmail.com with ESMTPSA id z90-v6sm5743882pfk.85.2018.07.26.20.20.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jul 2018 20:20:01 -0700 (PDT) Date: Thu, 26 Jul 2018 20:16:35 -0700 From: rd_dunlab To: Randy Dunlap , lkml Subject: [PATCH 4/4 v2] arc: fix printk warning in arc/plat-eznps/mtm.c Message-ID: <1532661395133@infradead.org> In-Reply-To: <15326613951079@infradead.org> X-Mailer: gregkh_patchbomb X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180726_202012_892791_3A4FC782 X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:544 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rd.dunlab[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vineet Gupta , linux-snps-arc@lists.infradead.org, Elad Kanfi , Ofer Levi , Leon Romanovsky MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Randy Dunlap Fix printk format warning in arch/arc/plat-eznps/mtm.c: In file included from ../include/linux/printk.h:7, from ../include/linux/kernel.h:14, from ../include/linux/list.h:9, from ../include/linux/smp.h:12, from ../arch/arc/plat-eznps/mtm.c:17: ../arch/arc/plat-eznps/mtm.c: In function 'set_mtm_hs_ctr': ../include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^~~~~~ ../include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ ../include/linux/printk.h:308:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ ../arch/arc/plat-eznps/mtm.c:166:3: note: in expansion of macro 'pr_err' pr_err("** Invalid @nps_mtm_hs_ctr [%d] needs to be [%d:%d] (incl)\n", ^~~~~~ ../arch/arc/plat-eznps/mtm.c:166:40: note: format string is defined here pr_err("** Invalid @nps_mtm_hs_ctr [%d] needs to be [%d:%d] (incl)\n", ~^ %ld The hs_ctr variable can just be int instead of long, so also change kstrtol() to kstrtoint() and leave the format string as %d. Also add 2 header files since they are used in mtm.c and we prefer not to depend on accidental/indirect #includes. Signed-off-by: Randy Dunlap Cc: Vineet Gupta Cc: linux-snps-arc@lists.infradead.org Cc: Elad Kanfi Cc: Leon Romanovsky Cc: Ofer Levi Reviewed-by: Leon Romanovsky --- v2: no change arch/arc/plat-eznps/mtm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- linux-next-20180723.orig/arch/arc/plat-eznps/mtm.c +++ linux-next-20180723/arch/arc/plat-eznps/mtm.c @@ -15,6 +15,8 @@ */ #include +#include +#include #include #include #include @@ -157,10 +159,10 @@ void mtm_enable_core(unsigned int cpu) /* Verify and set the value of the mtm hs counter */ static int __init set_mtm_hs_ctr(char *ctr_str) { - long hs_ctr; + int hs_ctr; int ret; - ret = kstrtol(ctr_str, 0, &hs_ctr); + ret = kstrtoint(ctr_str, 0, &hs_ctr); if (ret || hs_ctr > MT_HS_CNT_MAX || hs_ctr < MT_HS_CNT_MIN) { pr_err("** Invalid @nps_mtm_hs_ctr [%d] needs to be [%d:%d] (incl)\n",