Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1716594ybg; Sat, 19 Oct 2019 00:59:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYpZ+EPtCiY0J8+EJJdyTTCOidbYJFqIS4DCpOMscC7HQAzgcbtGYjoK6De30s8JwlAIIT X-Received: by 2002:a17:906:19cf:: with SMTP id h15mr12940152ejd.184.1571471967341; Sat, 19 Oct 2019 00:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571471967; cv=none; d=google.com; s=arc-20160816; b=Pt+LzY4+KlNXG+Uy/G7IrxUCxM+aYXIO5siTZjpsJOdVaLNA6hUM1Uno/Zu+ffXDD3 qSqPNZmklVmZ4ElWnAZ4sbNNH4s0eQ35M2B3IgXBnKi9o/QYXEWOnChQ2JgzbUVsFNmN CrjD6jbBUpYBKTqYGx06/9h+4CuuZt3UK57Z7sgyJyPq/FXiQWM9Lrj0om7Q4yej/ThZ RjEQicc1v/eS+jLYMXJ3K/+62EMjcohcI7IhBJQIbebPkl9hyD7QBmh3UVfMAkcNT38c KMUB7cMMZznDTvzSDORjeuY11KmI0RhbhydRV2eCDsv8zg67P5H4gi6QsxX9Ofw7MPn2 XcpQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=D3NziRvdn2+kK8Uw4QbU0HMH6O8cLDFVZEbh6XeL1sY=; b=MhU1+VnOuG5ufoyX9+29KUoMifSoKLUF2011eq8SnFIJ2gv7y1jIp458P5UEZ58TYW gjAyuMpWrd9TWBmXKlaVPUyxXwIWUeMJaLLYjdCmJkpHPg+rMNlFMni9Mq/0gi/pLFz9 3eAzmIvAqg4v+UhXD7m7loSMfveEcOeCjviBf5Q6SQ21Ckq4QwRJCJWks++duvzH9gJh aDjPZ1E5y8CeTnzhBwo9MX9+mGBa4huqv1lWOjocNFb+3MM+9/Q0F3mlc1O7X48tUUAW p2u+T7ocUCl5GhSv2wVBLRwXxM/xI9coCfRAPv6FrYrsvGlGIlbLa77tjicwtfB5rYCD KUsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=lqJfzdKN; 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 rh27si4861690ejb.52.2019.10.19.00.59.04; Sat, 19 Oct 2019 00:59:27 -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=pass header.i=@sifive.com header.s=google header.b=lqJfzdKN; 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 S2505040AbfJRIJK (ORCPT + 99 others); Fri, 18 Oct 2019 04:09:10 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:38277 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504981AbfJRII7 (ORCPT ); Fri, 18 Oct 2019 04:08:59 -0400 Received: by mail-io1-f65.google.com with SMTP id u8so6381748iom.5 for ; Fri, 18 Oct 2019 01:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=D3NziRvdn2+kK8Uw4QbU0HMH6O8cLDFVZEbh6XeL1sY=; b=lqJfzdKNaEFx0hT2tODMNbgiwNHA6Kmcm4Um5j3ElqOCn5j6rHDzIcmXOKjkGD2lC+ 4fYlfzTL5uhT/541KfGDdAjiiXge9m4vvFi4gHNrLINVBIyBmNC4ZoqNhVsXc4rLhUTo 9O385Y2HDSywuXsV0C/QQOltOcVMuNrpQJ6pDU9fXw/ZfjxBpJaLKgSOwkqMem0ZNAqi +YaL1CmmnrGqMMBQiIhA3Rwks4efl3Qn7ppCumtUZpjNdoNH23b3oWCQiSf2jjeaqPX6 pUQThL8NTDmjqeQtijTtoBk/1yyoVl4v0sT1Qk3XxjUHnutkh75MtGv48oz6wtuy9zvU e+QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=D3NziRvdn2+kK8Uw4QbU0HMH6O8cLDFVZEbh6XeL1sY=; b=eH15j4uAYk+Ti9bFXHsfMsHYKEs/60axW2TUHkaH8Y+oYupuKFCA/KHIGj+VlssWoN 2ag7Gx+cKCMwTrvVkGI4WnulbWXxEMEW5FJ0RvUe8dD9AlmDMqdiops7nGxlh5+Pp6BJ CPr1kNlyzLGCJR9XjKuiDCYdeFlreEBpNB7+FLGm7UIrfltIZLkzV05vkpoMgFmcvDPX L4iBxzxkKOC2Tvl8qDd2TQ/KfCMo/E0bcr2RWop/7R9AG815pYMtGtbV08wHQRvDGUHu QDMQLEa6GTUEqiwFKoqUaMkLqNSPkzXZTzatb1ta6QfviZ3rArRVzfO50ik+uDovMBfW YAgw== X-Gm-Message-State: APjAAAWrBh+WlYjGTZIcHemTdnujTU0KlTg1uM2qsVkIGH6mi8AFu/Ba tURaw04xtfx4OWxFqe7KjIdNFHpKxJQ= X-Received: by 2002:a6b:7307:: with SMTP id e7mr7757122ioh.138.1571386138008; Fri, 18 Oct 2019 01:08:58 -0700 (PDT) Received: from viisi.Home ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id z86sm2121026ilf.73.2019.10.18.01.08.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 01:08:57 -0700 (PDT) From: Paul Walmsley To: linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH v3 6/8] riscv: add missing header file includes Date: Fri, 18 Oct 2019 01:08:39 -0700 Message-Id: <20191018080841.26712-7-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191018080841.26712-1-paul.walmsley@sifive.com> References: <20191018080841.26712-1-paul.walmsley@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org sparse identifies several missing prototypes caused by missing preprocessor include directives: arch/riscv/kernel/cpufeature.c:16:6: warning: symbol 'has_fpu' was not declared. Should it be static? arch/riscv/kernel/process.c:26:6: warning: symbol 'arch_cpu_idle' was not declared. Should it be static? arch/riscv/kernel/process.c:93:5: warning: symbol 'arch_dup_task_struct' was not declared. Should it be static? arch/riscv/kernel/reset.c:15:6: warning: symbol 'pm_power_off' was not declared. Should it be static? arch/riscv/kernel/syscall_table.c:15:6: warning: symbol 'sys_call_table' was not declared. Should it be static? arch/riscv/kernel/time.c:14:13: warning: symbol 'time_init' was not declared. Should it be static? arch/riscv/kernel/vdso.c:54:5: warning: symbol 'arch_setup_additional_pages' was not declared. Should it be static? arch/riscv/kernel/smpboot.c:134:24: warning: symbol 'smp_callin' was not declared. Should it be static? arch/riscv/kernel/smp.c:64:6: warning: symbol 'arch_match_cpu_phys_id' was not declared. Should it be static? arch/riscv/kernel/smp.c:70:5: warning: symbol 'setup_profiling_timer' was not declared. Should it be static? arch/riscv/kernel/module-sections.c:89:5: warning: symbol 'module_frob_arch_sections' was not declared. Should it be static? arch/riscv/mm/context.c:42:6: warning: symbol 'switch_mm' was not declared. Should it be static? Fix by including the appropriate header files in the appropriate source files. This patch should have no functional impact. Signed-off-by: Paul Walmsley --- arch/riscv/include/asm/irq.h | 3 +++ arch/riscv/include/asm/switch_to.h | 1 + arch/riscv/kernel/cpufeature.c | 1 + arch/riscv/kernel/module-sections.c | 1 + arch/riscv/kernel/process.c | 2 ++ arch/riscv/kernel/reset.c | 1 + arch/riscv/kernel/smp.c | 2 ++ arch/riscv/kernel/smpboot.c | 1 + arch/riscv/kernel/syscall_table.c | 1 + arch/riscv/kernel/time.c | 1 + arch/riscv/kernel/vdso.c | 1 + arch/riscv/mm/context.c | 1 + 12 files changed, 16 insertions(+) diff --git a/arch/riscv/include/asm/irq.h b/arch/riscv/include/asm/irq.h index 589e2d9fb2a6..f0e9df6e6049 100644 --- a/arch/riscv/include/asm/irq.h +++ b/arch/riscv/include/asm/irq.h @@ -7,6 +7,9 @@ #ifndef _ASM_RISCV_IRQ_H #define _ASM_RISCV_IRQ_H +#include +#include + #define NR_IRQS 0 void riscv_timer_interrupt(void); diff --git a/arch/riscv/include/asm/switch_to.h b/arch/riscv/include/asm/switch_to.h index f0227bdce0f0..ee4f0ac62c9d 100644 --- a/arch/riscv/include/asm/switch_to.h +++ b/arch/riscv/include/asm/switch_to.h @@ -6,6 +6,7 @@ #ifndef _ASM_RISCV_SWITCH_TO_H #define _ASM_RISCV_SWITCH_TO_H +#include #include #include #include diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index b1ade9a49347..a5ad00043104 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -10,6 +10,7 @@ #include #include #include +#include unsigned long elf_hwcap __read_mostly; #ifdef CONFIG_FPU diff --git a/arch/riscv/kernel/module-sections.c b/arch/riscv/kernel/module-sections.c index c9ae48333114..e264e59e596e 100644 --- a/arch/riscv/kernel/module-sections.c +++ b/arch/riscv/kernel/module-sections.c @@ -8,6 +8,7 @@ #include #include #include +#include unsigned long module_emit_got_entry(struct module *mod, unsigned long val) { diff --git a/arch/riscv/kernel/process.c b/arch/riscv/kernel/process.c index fb3a082362eb..85e3c39bb60b 100644 --- a/arch/riscv/kernel/process.c +++ b/arch/riscv/kernel/process.c @@ -7,6 +7,7 @@ * Copyright (C) 2017 SiFive */ +#include #include #include #include @@ -19,6 +20,7 @@ #include #include #include +#include extern asmlinkage void ret_from_fork(void); extern asmlinkage void ret_from_kernel_thread(void); diff --git a/arch/riscv/kernel/reset.c b/arch/riscv/kernel/reset.c index d0fe623bfb8f..aa56bb135ec4 100644 --- a/arch/riscv/kernel/reset.c +++ b/arch/riscv/kernel/reset.c @@ -4,6 +4,7 @@ */ #include +#include #include static void default_power_off(void) diff --git a/arch/riscv/kernel/smp.c b/arch/riscv/kernel/smp.c index b18cd6c8e8fb..5c9ec78422c2 100644 --- a/arch/riscv/kernel/smp.c +++ b/arch/riscv/kernel/smp.c @@ -8,7 +8,9 @@ * Copyright (C) 2017 SiFive */ +#include #include +#include #include #include #include diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c index 59fa59e013d4..ec0be2f6a2e8 100644 --- a/arch/riscv/kernel/smpboot.c +++ b/arch/riscv/kernel/smpboot.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "head.h" diff --git a/arch/riscv/kernel/syscall_table.c b/arch/riscv/kernel/syscall_table.c index e5dd52d8f633..f1ead9df96ca 100644 --- a/arch/riscv/kernel/syscall_table.c +++ b/arch/riscv/kernel/syscall_table.c @@ -8,6 +8,7 @@ #include #include #include +#include #undef __SYSCALL #define __SYSCALL(nr, call) [nr] = (call), diff --git a/arch/riscv/kernel/time.c b/arch/riscv/kernel/time.c index 9dd1f2e64db1..6a53c02e9c73 100644 --- a/arch/riscv/kernel/time.c +++ b/arch/riscv/kernel/time.c @@ -7,6 +7,7 @@ #include #include #include +#include unsigned long riscv_timebase; EXPORT_SYMBOL_GPL(riscv_timebase); diff --git a/arch/riscv/kernel/vdso.c b/arch/riscv/kernel/vdso.c index e24fccab8185..484d95a70907 100644 --- a/arch/riscv/kernel/vdso.c +++ b/arch/riscv/kernel/vdso.c @@ -6,6 +6,7 @@ * Copyright (C) 2015 Regents of the University of California */ +#include #include #include #include diff --git a/arch/riscv/mm/context.c b/arch/riscv/mm/context.c index beeb5d7f92ea..ca66d44156b6 100644 --- a/arch/riscv/mm/context.c +++ b/arch/riscv/mm/context.c @@ -7,6 +7,7 @@ #include #include #include +#include /* * When necessary, performs a deferred icache flush for the given MM context, -- 2.23.0