Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1305255ybg; Fri, 18 Oct 2019 15:33:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDMQef5YgfeYyI+DoKq0Vj7Vcd9YPjRrrEmD0hwlw7goE2I8UYGlkCRYMWOmyZSjYaBcDL X-Received: by 2002:a17:907:3301:: with SMTP id ym1mr11255358ejb.106.1571438034857; Fri, 18 Oct 2019 15:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571438034; cv=none; d=google.com; s=arc-20160816; b=GaSxjUs/98qJtW8dU2OS2cJrcm4x8jlhVsuFAM7SCqJsvJ6fqq3KYxR+NCdzyoQHeT Wm3sPyJhzGK1CVzV3drmkq+snx0vwQ4RKkv2S2duQWETmw1WjHksmgJQr6pgdT4HNhy8 5EE7t2VKJh8pgtGSBOlSV2dy4gTLXR/CixL6DHSlD36N5oxnW2EW1ApzxsHrLP4QuCi+ 5E79sCt1w9TdzXWJ5botj4C7hbbPbdadzl3Nl1MsQitMmkzOWYhdmT5eTpkllZS/XNSI SD1XgYFBnP2x1dGd1iIAj7wzoA7Wdq/BUH0qWzT47msTp3Avv/6BmFjPlbMcS4p2GcMW vXcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GXpwiWbrAU/653GmrWZ4CKDfopVqbQJlCnoRGMU0IXo=; b=IL2CAQr9M9+YJElVTHFWT+uXDV0sWOxDQBg8OQ9U3bOyN7d/ksMTi+WqxeuuFB3Wp6 4NVdygqk9jJvK6pcGiNacHEdAxnnHfKTbPpW8eJSxGNPPl2wFb2x15+2BmV8r6RJzad5 ByN12RBxvzyWX7xLUwwD2VrPx1osNOdAn93Z4L2h8jKaCywbzubmdcC9m6LJgsK0kag9 BS5zT5eO/+aHUhNGKlgX7CdA2JFbRuJXvg/7b3G/+W7D2+KtXBgBUx4CVBwnZIG1iv/6 ayOdF1hSRKGZPcGvYFMlT/0cADbLwa48YYwoXl7/aCgSv0VI637FXHZzFuxzRorqecck TaEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HCkne4s8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gz26si4133950ejb.65.2019.10.18.15.33.32; Fri, 18 Oct 2019 15:33:54 -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=@gmail.com header.s=20161025 header.b=HCkne4s8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405577AbfJRFR1 (ORCPT + 99 others); Fri, 18 Oct 2019 01:17:27 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40223 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728020AbfJRFR1 (ORCPT ); Fri, 18 Oct 2019 01:17:27 -0400 Received: by mail-wm1-f65.google.com with SMTP id b24so4717986wmj.5 for ; Thu, 17 Oct 2019 22:17:24 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GXpwiWbrAU/653GmrWZ4CKDfopVqbQJlCnoRGMU0IXo=; b=HCkne4s8lruvHSjpE5jf0OgLyMhPwrvNwZ3XZUMDJxIAmbTJ7U0e0j5lACmvchXOqb 2wIXjnp6mVboS7gpgge2/f0WIp8FzhCfT1YzwjZn2XMChTk+3gX4w/G3wm1ASj5evE2v 9KiN6Bd+zRI7o53M1ioDgisIswMb4TuhvO4CAV+HMlcpRWwIq6DGiBu+HsFpiLvXgdyx yyAuvxqH9F6W51uc00HyFnNZGHyf5BfLq8tgaAZ5qX1mMOJQD3r3KIrfjNUUGuKn5IDz wwRkRZtW4RWjuR6lMcdS7SsHtCR7KkOHVEIl/XHnXpbtnpPonSGPxfNxqxg7BH4lcH/l Ympw== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GXpwiWbrAU/653GmrWZ4CKDfopVqbQJlCnoRGMU0IXo=; b=G0/jnQmEb05EHvsLil5J+W6LvmN/D4zMM4ySd91IGO6mT/732tQQXP53TO7qupNI6z 3tmtjgF9ZLSlvjYT5f85p++6StTg0Udd4EL7Tjk6+v2jHtC7+kjwD+DezDLPKpWne8I4 +A0hX/p0Ua8raMte4EMQYbFJ6V5jztdBLlp9AQiYdN48e306aURaAx3Sx6kgD/6qMDGx 9UsoJSzJLrPhw8lYQW85qaE3+2wcz1NRLql29dPGEbbx3G/IF4ytTKg0zZBxIR3Xn4F6 MFZ+c2Xkcp4N6Az4xmgHCNMY42A6kksOB3Dpi9SSp62sBO/YgWuGzKBVEcLzx6uQrQmY 6SFg== X-Gm-Message-State: APjAAAWEjEEs3L4jHqE21EcbaO+YBfO6fCSSuaYp6nJzinr4D5u3Aumo l+hm856TkBzolpYQFIex04FKdbtx X-Received: by 2002:a1c:9e07:: with SMTP id h7mr5807160wme.96.1571372104081; Thu, 17 Oct 2019 21:15:04 -0700 (PDT) Received: from ltop.local ([2a02:a03f:40ac:ce00:18e1:7d90:ccf5:4489]) by smtp.gmail.com with ESMTPSA id x9sm4453820wrq.63.2019.10.17.21.15.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Oct 2019 21:15:03 -0700 (PDT) Date: Fri, 18 Oct 2019 06:15:02 +0200 From: Luc Van Oostenryck To: Paul Walmsley Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/8] riscv: add missing prototypes Message-ID: <20191018041501.cuyyhcm23dsihcif@ltop.local> References: <20191018004929.3445-1-paul.walmsley@sifive.com> <20191018004929.3445-6-paul.walmsley@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191018004929.3445-6-paul.walmsley@sifive.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 17, 2019 at 05:49:26PM -0700, Paul Walmsley wrote: > 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? > arch/riscv/kernel/ptrace.c:151:6: warning: symbol 'do_syscall_trace_enter' was not declared. Should it be static? > arch/riscv/kernel/ptrace.c:165:6: warning: symbol 'do_syscall_trace_exit' was not declared. Should it be static? > > Fix by adding the missing prototypes to the appropriate header files. For functions defined in C but used ony in assembly, you can also simply mark them as '__visible' (aka __attribute__((exrernally_visible)) ). Best regards, -- Luc