From patchwork Sat Feb 6 13:36:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 377868 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B16CC433DB for ; Sat, 6 Feb 2021 13:37:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1BA8D64E5A for ; Sat, 6 Feb 2021 13:37:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbhBFNhI (ORCPT ); Sat, 6 Feb 2021 08:37:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:37064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbhBFNhG (ORCPT ); Sat, 6 Feb 2021 08:37:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 992EF64D9D; Sat, 6 Feb 2021 13:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612618585; bh=OCutRLaQDUvL3uLcorCbLXFfU+phdrBOkd6W0QNIyHU=; h=From:To:Cc:Subject:Date:From; b=Gjy7LkMwkG2XjFdp4fJH1gwZ7U6oWqDAMR7x7fSTXwIR81QloVBam/e76tvJeOdij t6XKWFE6fRcH1m1kgVAqK9AfTycrmk6NFRVRgyJUSpp6aBBlFEQfJyv4pDEyGbqj/G zmCj8ir/h3UJKxCGAViokpx4Jlj8HsFpscLfEnrTYrJy+W9rTCTwRcW0c6wYDR1Sff /LS5aQJkjuGCowUmRyD//uF5Ro/78c31q1Lm7ARsPH9ab9QYjaxc5sWPntM54kngcX 3zfR/71fUrRYRNqNQx35HM4VEboHt5AFOQkBHmov7uPfqzQ0mXyTcCeDm7KPzSib3R MSEfF4+FonUaQ== From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Russell King , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel test robot , Arnd Bergmann Subject: [PATCH 1/2] ARM: s3c: irq-s3c24xx: include headers for missing declarations Date: Sat, 6 Feb 2021 14:36:14 +0100 Message-Id: <20210206133615.119804-1-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Include headers to fix W=1 build warnings: arch/arm/mach-s3c/irq-s3c24xx.c:389:5: warning: no previous prototype for ‘s3c24xx_set_fiq’ [-Wmissing-prototypes] arch/arm/mach-s3c/irq-s3c24xx.c:683:13: warning: no previous prototype for ‘s3c2410_init_irq’ [-Wmissing-prototypes] Reported-by: kernel test robot Signed-off-by: Krzysztof Kozlowski --- arch/arm/mach-s3c/irq-s3c24xx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-s3c/irq-s3c24xx.c b/arch/arm/mach-s3c/irq-s3c24xx.c index 79b5f19af7a5..3368159d3f3e 100644 --- a/arch/arm/mach-s3c/irq-s3c24xx.c +++ b/arch/arm/mach-s3c/irq-s3c24xx.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -32,6 +33,7 @@ #include "cpu.h" #include "regs-irqtype.h" #include "pm.h" +#include "s3c24xx.h" #define S3C_IRQTYPE_NONE 0 #define S3C_IRQTYPE_EINT 1 From patchwork Sat Feb 6 13:36:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 378257 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97A9AC433E0 for ; Sat, 6 Feb 2021 13:37:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4FB5D64EBC for ; Sat, 6 Feb 2021 13:37:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbhBFNhK (ORCPT ); Sat, 6 Feb 2021 08:37:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:37082 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbhBFNhI (ORCPT ); Sat, 6 Feb 2021 08:37:08 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 168E664E5A; Sat, 6 Feb 2021 13:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612618587; bh=QmVWEQOUXt2bamsSz0cwns6rsPRXjXQ96AsKqzzL0wQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=urc64lztlr/us+84S4/hx9RT3/9nkkDTVWaIUCNijunHpiWGuqHNfJqWXo1Aa03K2 4slFJajVMMXuvdCDbMCPwFOBbTgX+Cg2s/nFQyRU2eQwxGEw3vjj4RV6Luv+v4NiaK yoG+OZEKiPglWLwFwCgcysP7/0lMSEiHYjV+azuUD9ZPolV3/nKy6Uc9kljzqWLdEw aa/6Zv2fCMNb3uH0E5uvnCtwJzTdZPAmB8ozCEEA3M+/gbfnMfpBVxphft2RxWmNwg hlhHHQ+LoxG2jxG2H4sQJjWyYNZN39pFaqUn5ePrQmLMXa4BvG4klPjiTH7gCVtRHy 7icHk5/hn0dAA== From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Russell King , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel test robot , Arnd Bergmann Subject: [PATCH 2/2] ARM: s3c: irq-s3c24xx: staticize local functions Date: Sat, 6 Feb 2021 14:36:15 +0100 Message-Id: <20210206133615.119804-2-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210206133615.119804-1-krzk@kernel.org> References: <20210206133615.119804-1-krzk@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Make functions used only in this module static to fix W=1 build warnings: arch/arm/mach-s3c/irq-s3c24xx.c:360:39: warning: no previous prototype for ‘s3c24xx_handle_irq’ [-Wmissing-prototypes] arch/arm/mach-s3c/irq-s3c24xx.c:1308:12: warning: no previous prototype for ‘s3c2410_init_intc_of’ [-Wmissing-prototypes] arch/arm/mach-s3c/irq-s3c24xx.c:1330:12: warning: no previous prototype for ‘s3c2416_init_intc_of’ [-Wmissing-prototypes] Reported-by: kernel test robot Signed-off-by: Krzysztof Kozlowski --- arch/arm/mach-s3c/irq-s3c24xx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-s3c/irq-s3c24xx.c b/arch/arm/mach-s3c/irq-s3c24xx.c index 3368159d3f3e..0c631c14a817 100644 --- a/arch/arm/mach-s3c/irq-s3c24xx.c +++ b/arch/arm/mach-s3c/irq-s3c24xx.c @@ -359,7 +359,7 @@ static inline int s3c24xx_handle_intc(struct s3c_irq_intc *intc, return true; } -asmlinkage void __exception_irq_entry s3c24xx_handle_irq(struct pt_regs *regs) +static asmlinkage void __exception_irq_entry s3c24xx_handle_irq(struct pt_regs *regs) { do { if (likely(s3c_intc[0])) @@ -1307,7 +1307,7 @@ static struct s3c24xx_irq_of_ctrl s3c2410_ctrl[] = { } }; -int __init s3c2410_init_intc_of(struct device_node *np, +static int __init s3c2410_init_intc_of(struct device_node *np, struct device_node *interrupt_parent) { return s3c_init_intc_of(np, interrupt_parent, @@ -1329,7 +1329,7 @@ static struct s3c24xx_irq_of_ctrl s3c2416_ctrl[] = { } }; -int __init s3c2416_init_intc_of(struct device_node *np, +static int __init s3c2416_init_intc_of(struct device_node *np, struct device_node *interrupt_parent) { return s3c_init_intc_of(np, interrupt_parent,