From patchwork Thu Jul 21 21:17:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 12925789 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B8F5DC433EF for ; Thu, 21 Jul 2022 21:19:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fkDFeb9r3GJVU8iOMf8rAly4XMCSSo+OI2D5uYS6/kI=; b=Ph7/yYxw8W33Dn Xd2N3ILnAzmQwUzXsqcA9vPqgfOaKLz1h0XSjzc1D4vE9SsnzHSC16c+AhQJ1kXrGM33D5v7P40Af WRyazoAW4WVg5SgZhfnKtLBgjpq/2oIpHzrdGvDVuUOOGennOBGUPNprqaC1IzUbRbemsFK4WmQ4M LMDmjXnKRlObn3RiQPIRHsIwZiX6IoxpgI0Glki5Me974iY5PVhNAA+Wp7QlIIYfMKe+pF/W9qoc/ T/ryXwztF6KnSyNrd2XteGFQKv/L9+S2q9Uwx4dizvBJ2U+hbEKIaMKQi8AobW+W5tJ+/bAfdYTH7 +nsTmyypP29On4VM3swg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEdYc-00CONF-W7; Thu, 21 Jul 2022 21:18:07 +0000 Received: from cpc152649-stkp13-2-0-cust121.10-2.cable.virginm.net ([86.15.83.122] helo=luna) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEdY9-00COFU-UA for linux-arm-kernel@lists.infradead.org; Thu, 21 Jul 2022 21:17:40 +0000 Received: from ben by luna with local (Exim 4.96) (envelope-from ) id 1oEdY2-001tWO-2j; Thu, 21 Jul 2022 22:17:30 +0100 From: Ben Dooks To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux@armlinux.org.uk, Ben Dooks Subject: [PATCH 1/3] arm: add definition of arch_irq_work_raise() Date: Thu, 21 Jul 2022 22:17:27 +0100 Message-Id: <20220721211729.451731-2-ben-linux@fluff.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220721211729.451731-1-ben-linux@fluff.org> References: <20220721211729.451731-1-ben-linux@fluff.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220721_141737_996413_C26F078D X-CRM114-Status: GOOD ( 10.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The arm does not define arch_irq_work_raise() so is triggering the following sparse warning. Add a definiton to fix this: kernel/irq_work.c:70:13: warning: symbol 'arch_irq_work_raise' was not declared. Should it be static? arch/arm/kernel/smp.c:582:6: warning: symbol 'arch_irq_work_raise' was not declared. Should it be static? Signed-off-by: Ben Dooks --- arch/arm/include/asm/irq_work.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/irq_work.h b/arch/arm/include/asm/irq_work.h index 8895999834cc..3149e4dc1b54 100644 --- a/arch/arm/include/asm/irq_work.h +++ b/arch/arm/include/asm/irq_work.h @@ -9,4 +9,6 @@ static inline bool arch_irq_work_has_interrupt(void) return is_smp(); } +extern void arch_irq_work_raise(void); + #endif /* _ASM_ARM_IRQ_WORK_H */ From patchwork Thu Jul 21 21:17:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 12925788 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63E4FC43334 for ; Thu, 21 Jul 2022 21:18:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=n2i1dXalmSwjW5xpdeMKAucfrkyT7SB77PPCcLOEesg=; b=H4orIJA9QfEzPx Kf0XWwivZz7Xq8qYUaTz8zb1QbAD5kV46Gc6zY+2MMHd8fBiZ6xVLU/evQhJaHjjnEvz979Cvc7kW Sy64Z/jmO10+HhEqJ9JU4CY6x4xUej4xRxsxxFTUdCDz45zaHu13XqOskfq03BLMhjRBrcghwlYh9 WpLAxGzPI7bKRXlWBFt6tK1OxPWbcBzhPnWFQNvVD49iKsqIW+Jg31nNrcrV91eqCWWeOdnIANAcC WZVD7lN5Wcn11xd89HVu06fFrBdhmcXf6p/RkXEZQ2yHq7fSSd7CDsLMnwFtPNAyiFTkrIoiMFQHe E3ZDKTBGrABW1cksISDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEdYU-00COLt-Iv; Thu, 21 Jul 2022 21:17:58 +0000 Received: from cpc152649-stkp13-2-0-cust121.10-2.cable.virginm.net ([86.15.83.122] helo=luna) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEdY9-00COFR-U9 for linux-arm-kernel@lists.infradead.org; Thu, 21 Jul 2022 21:17:40 +0000 Received: from ben by luna with local (Exim 4.96) (envelope-from ) id 1oEdY2-001tWR-2q; Thu, 21 Jul 2022 22:17:30 +0100 From: Ben Dooks To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux@armlinux.org.uk, Ben Dooks Subject: [PATCH 2/3] arm: dma-mapping: fix pointer/integer warning Date: Thu, 21 Jul 2022 22:17:28 +0100 Message-Id: <20220721211729.451731-3-ben-linux@fluff.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220721211729.451731-1-ben-linux@fluff.org> References: <20220721211729.451731-1-ben-linux@fluff.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220721_141737_995858_15A9977B X-CRM114-Status: GOOD ( 12.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix the use of a pointer assignment from integer where false is being used instead of NULL. Fix the following warning by usign NULL: arch/arm/mm/dma-mapping.c:712:52: warning: Using plain integer as NULL pointer Signed-off-by: Ben Dooks --- arch/arm/mm/dma-mapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 059cce018570..1483b6a4319d 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -709,7 +709,7 @@ static void *__dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, *handle = DMA_MAPPING_ERROR; allowblock = gfpflags_allow_blocking(gfp); - cma = allowblock ? dev_get_cma_area(dev) : false; + cma = allowblock ? dev_get_cma_area(dev) : NULL; if (cma) buf->allocator = &cma_allocator; From patchwork Thu Jul 21 21:17:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 12925787 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E6C0DC43334 for ; Thu, 21 Jul 2022 21:18:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zILXN86pzNxW5iM6uGwpU70MIKU/EiD7q7hyi+1M+FA=; b=slYD/VIPAN5ZHQ /i4pDzTZvaBTha0nhac/ObGd+iJZkKZzrvL0kmBk/1BRtqz8yHzCXGVgR3OrUlXMUeHL1ONs+UxCI +zF1FQOFndjFyv1Wzi575bwo9s3hAaaif8dsE78ywEgy6JcHZlkV4y3TYCDuf2uERBxdj2lPkLOYL FWzTnmEaLhtOk3dFiivUN0HQ90Y/L1S0Lg1RFkwYFPTApbj54JAEJGo2ZrFVfZspJRXQE+Fuy2Rqt X7GBsH3TFZk8cQGgDNohdvh1Y0Ly9VAewe2nkGR8mcD27zQf0w+5g1S7r3IAPEuv7g948S86oWjY9 9xJF9HdRjCkGNq8oPJMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEdYL-00COKq-Vo; Thu, 21 Jul 2022 21:17:50 +0000 Received: from cpc152649-stkp13-2-0-cust121.10-2.cable.virginm.net ([86.15.83.122] helo=luna) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEdY9-00COFT-U9 for linux-arm-kernel@lists.infradead.org; Thu, 21 Jul 2022 21:17:39 +0000 Received: from ben by luna with local (Exim 4.96) (envelope-from ) id 1oEdY2-001tWU-2x; Thu, 21 Jul 2022 22:17:30 +0100 From: Ben Dooks To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux@armlinux.org.uk, Ben Dooks Subject: [PATCH 3/3] arm: fix undeclared soft_restart Date: Thu, 21 Jul 2022 22:17:29 +0100 Message-Id: <20220721211729.451731-4-ben-linux@fluff.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220721211729.451731-1-ben-linux@fluff.org> References: <20220721211729.451731-1-ben-linux@fluff.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220721_141737_994107_F773E8A9 X-CRM114-Status: GOOD ( 10.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The soft_restart() is declared in so include that to fix the following sparse warning: arch/arm/kernel/reboot.c:78:6: warning: symbol 'soft_restart' was not declared. Should it be static? Signed-off-by: Ben Dooks --- arch/arm/kernel/reboot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/kernel/reboot.c b/arch/arm/kernel/reboot.c index 2cb943422554..3f0d5c3dae11 100644 --- a/arch/arm/kernel/reboot.c +++ b/arch/arm/kernel/reboot.c @@ -10,6 +10,7 @@ #include #include #include +#include #include "reboot.h"