Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1716420ybg; Sat, 19 Oct 2019 00:59:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGgWw9GtkjGqTZaMeZYjpNg2mcNZL8CqexHdR/tZN95TA8XTmLD9PS5jkR1TEBjrcfSRrf X-Received: by 2002:a17:906:364f:: with SMTP id r15mr12579219ejb.194.1571471953647; Sat, 19 Oct 2019 00:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571471953; cv=none; d=google.com; s=arc-20160816; b=lW9tO+ioclJ61oPfJV5z4K0c/uamcN950KyoJwWVlokPqvL6B4CkLE37SPtagwWsyZ eZDkQ70K1saAirG2kuDRF0PdajE4wSJR/S9sQ/1rf/8+anXIZLGfm3MPzVWvBiag+Y5W LdS3I4FZ7ZeJqHAPB4c9gYCjwqVJYqV+m36V0lAa2UUteB9ZNyj/o4zqrd1K6gSWHUF3 CcAYDPHDKs/UP6TwjCXVGmkQyg7fvMPnQJUahYNR4Pm7NwL007UjVANsc8IHEKAdVybj 4C2wAfWqSIo7d4Av9rdyfv1JbmOiYvAT+0kpjLmWwAYwxXB0jVfYQ1BbOR+959QyVLWv K95w== 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=dSBcDIKx5nYgnvY0E6Lcwtwu4qqsxuq/VRdIo5y+2Cg=; b=dKz8wBU6/uGtFqqSklv5WTih2j2UGz4BT6nvZKz6NaQDD2OKF0cVIUPeNeief0MKS6 bY5CEl185dt2S6f8b/9NdDFlhj2HV07/+FcQpDy+7QwGcJ2QjqMZdrq4NJiQrrn8vCst ix0lImym8X8VgX+cRtUQmp02jIGQIQxM9ohcwQdO9+OQUShNj3Vik35ydlMPxnSxJLiN 5sW2niiHfkknZeznaBVIeO3KRA+Tzp4hgJAV98fe+jwrq3TrBwl8WZ1acJett1S3U/DS 1Bxe7BrlyjAL0KyBxHUn6le++qzwBmfEAUW2T92VWUbDtTs7sLkm6EA6uDvaKNmKyhqX LuZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=UYH865nc; 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 b25si4889575eja.198.2019.10.19.00.58.50; Sat, 19 Oct 2019 00:59:13 -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=UYH865nc; 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 S2504994AbfJRII6 (ORCPT + 99 others); Fri, 18 Oct 2019 04:08:58 -0400 Received: from mail-il1-f195.google.com ([209.85.166.195]:33161 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504981AbfJRII4 (ORCPT ); Fri, 18 Oct 2019 04:08:56 -0400 Received: by mail-il1-f195.google.com with SMTP id v2so4742795ilm.0 for ; Fri, 18 Oct 2019 01:08:56 -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=dSBcDIKx5nYgnvY0E6Lcwtwu4qqsxuq/VRdIo5y+2Cg=; b=UYH865ncXlKhaR/ruHoaa2j5syS/lseyRuqhuEhLj5/69PK7JaW0oh8UpKzb/YJo53 MteWuPrAiD6AhSp7Aax50FcMDGjpjzl/NDMbni9cBk6cdG7vronHFfvQcI8SWhGHCtt4 4N8UDH6QdyWc0ciGW1+12iM+2BvwEeHXHXvhzSmCiXQY0mJMOIF4gNQEMf8XjgVQgxrH D5aK+hOzRVfDTbusI617sI+EeQZG4m2KuCcjeuG8uayegjuDC3phM47GxQGhZuVL3bZX w8Z6vZ9+VIRBn9Erp572wwfEkS3C5ikie31Ll8tw1iFbAmJJbDLb5hm7Fre/Wdd1oVqG erYQ== 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=dSBcDIKx5nYgnvY0E6Lcwtwu4qqsxuq/VRdIo5y+2Cg=; b=jG4ACDNMcAlOwipbnqRzaN8iqn0jRpn4zLQZWRAN2y59jWHR8AMVFb4o/aeGuzDDsP aRZDLUGQrSxa5u5xza0EfRN4DXSSn6M7lBaCKhOpVt3w30goo9jNmBUvIvcwBfKc393n s8GXkv9vRKAcI58WkQm/ylEIC9YVo7zKOIRu6Q1SlM0CW6zDd06XyaUEAxVlZ4shz21d bl+CKvc+RAWuAtFK5cKLmLbEbLBKK8hs7a3Rpu0HnvaVAPA7XnOktTFog1OAv/1hNm8Y Q/J4ok1jTjL6Syb7CS/pIYLFwhfseIProQ/VvYFGHcE5RCLsfJokCxv6gTFk4NqwTEwb YT6Q== X-Gm-Message-State: APjAAAXt1njTuo8NYndBnyemG3Fpl5+G7TznidlnzRGgJINpWm3nCdbb L8lLIkTGqOl9RhGY7JeWZPv6yw== X-Received: by 2002:a92:5a9b:: with SMTP id b27mr8731380ilg.180.1571386135351; Fri, 18 Oct 2019 01:08:55 -0700 (PDT) Received: from viisi.Home ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id z86sm2121026ilf.73.2019.10.18.01.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 01:08:54 -0700 (PDT) From: Paul Walmsley To: linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH v3 4/8] riscv: add missing prototypes Date: Fri, 18 Oct 2019 01:08:37 -0700 Message-Id: <20191018080841.26712-5-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 these missing prototypes when building arch/riscv: arch/riscv/kernel/cpu.c:149:29: warning: symbol 'cpuinfo_op' was not declared. Should it be static? arch/riscv/kernel/irq.c:27:29: warning: symbol 'do_IRQ' was not declared. Should it be static? arch/riscv/kernel/irq.c:57:13: warning: symbol 'init_IRQ' 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:15:13: warning: symbol 'time_init' was not declared. Should it be static? arch/riscv/kernel/smpboot.c:135:24: warning: symbol 'smp_callin' was not declared. Should it be static? arch/riscv/kernel/smp.c:72:5: warning: symbol 'setup_profiling_timer' was not declared. Should it be static? arch/riscv/mm/init.c:151:7: warning: symbol 'trampoline_pg_dir' was not declared. Should it be static? arch/riscv/mm/init.c:157:7: warning: symbol 'early_pg_dir' was not declared. Should it be static? arch/riscv/kernel/process.c:32:6: warning: symbol 'show_regs' was not declared. Should it be static? Fix by adding the missing prototypes to the appropriate header files. This change should have no functional impact. Signed-off-by: Paul Walmsley --- arch/riscv/include/asm/irq.h | 3 +++ arch/riscv/include/asm/pgtable.h | 2 ++ arch/riscv/include/asm/processor.h | 4 ++++ arch/riscv/include/asm/ptrace.h | 2 ++ arch/riscv/include/asm/smp.h | 2 ++ 5 files changed, 13 insertions(+) diff --git a/arch/riscv/include/asm/irq.h b/arch/riscv/include/asm/irq.h index 75576424c0f7..589e2d9fb2a6 100644 --- a/arch/riscv/include/asm/irq.h +++ b/arch/riscv/include/asm/irq.h @@ -12,6 +12,9 @@ void riscv_timer_interrupt(void); void riscv_software_interrupt(void); +asmlinkage void do_IRQ(struct pt_regs *regs); +void __init init_IRQ(void); + #include #endif /* _ASM_RISCV_IRQ_H */ diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h index 42292d99cc74..7fc5e4a56715 100644 --- a/arch/riscv/include/asm/pgtable.h +++ b/arch/riscv/include/asm/pgtable.h @@ -61,6 +61,8 @@ #define PAGE_TABLE __pgprot(_PAGE_TABLE) +extern pgd_t trampoline_pg_dir[]; +extern pgd_t early_pg_dir[]; extern pgd_t swapper_pg_dir[]; /* MAP_PRIVATE permissions: xwr (copy-on-write) */ diff --git a/arch/riscv/include/asm/processor.h b/arch/riscv/include/asm/processor.h index f539149d04c2..ab56435de629 100644 --- a/arch/riscv/include/asm/processor.h +++ b/arch/riscv/include/asm/processor.h @@ -78,6 +78,10 @@ int riscv_of_processor_hartid(struct device_node *node); extern void riscv_fill_hwcap(void); +extern const struct seq_operations cpuinfo_op; + +void time_init(void); + #endif /* __ASSEMBLY__ */ #endif /* _ASM_RISCV_PROCESSOR_H */ diff --git a/arch/riscv/include/asm/ptrace.h b/arch/riscv/include/asm/ptrace.h index d48d1e13973c..c851c095b674 100644 --- a/arch/riscv/include/asm/ptrace.h +++ b/arch/riscv/include/asm/ptrace.h @@ -101,6 +101,8 @@ static inline unsigned long regs_return_value(struct pt_regs *regs) return regs->a0; } +void show_regs(struct pt_regs *regs); + #endif /* __ASSEMBLY__ */ #endif /* _ASM_RISCV_PTRACE_H */ diff --git a/arch/riscv/include/asm/smp.h b/arch/riscv/include/asm/smp.h index a83451d73a4e..d19dd2e2e1da 100644 --- a/arch/riscv/include/asm/smp.h +++ b/arch/riscv/include/asm/smp.h @@ -15,6 +15,8 @@ struct seq_file; extern unsigned long boot_cpu_hartid; +asmlinkage void __init smp_callin(void); + #ifdef CONFIG_SMP /* * Mapping between linux logical cpu index and hartid. -- 2.23.0