linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Palmer Dabbelt <palmer@sifive.com>
To: Olof Johansson <olof@lixom.net>
Cc: albert@sifive.com, patches@groups.riscv.org,
	linux-kernel@vger.kernel.org, Olof Johansson <olof@lixom.net>
Subject: Re: [patches] [PATCH 06/10] RISC-V: Provide stub of setup_profiling_timer()
Date: Thu, 30 Nov 2017 10:26:36 -0800 (PST)	[thread overview]
Message-ID: <mhng-4776ddc9-3d51-4c96-ba41-11c8ebbc0b2f@palmer-si-x1c4> (raw)
In-Reply-To: <20171130015521.1289-7-olof@lixom.net>

On Wed, 29 Nov 2017 17:55:17 PST (-0800), Olof Johansson wrote:
> Fixes the following on allmodconfig build:
>
> profile.c:(.text+0x3e4): undefined reference to `setup_profiling_timer'
>
> Signed-off-by: Olof Johansson <olof@lixom.net>
> ---
>  arch/riscv/kernel/smp.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/arch/riscv/kernel/smp.c b/arch/riscv/kernel/smp.c
> index b4a71ec..4498f0c 100644
> --- a/arch/riscv/kernel/smp.c
> +++ b/arch/riscv/kernel/smp.c
> @@ -38,6 +38,13 @@ enum ipi_message_type {
>  	IPI_MAX
>  };
>
> +
> +/* Unsupported */
> +int setup_profiling_timer(unsigned int multiplier)
> +{
> +	return -EINVAL;
> +}
> +
>  irqreturn_t handle_ipi(void)
>  {
>  	unsigned long *pending_ipis = &ipi_data[smp_processor_id()].bits;
> @@ -108,3 +115,4 @@ void smp_send_reschedule(int cpu)
>  {
>  	send_ipi_message(cpumask_of(cpu), IPI_RESCHEDULE);
>  }
> +

This adds a trailing newline, I'm going to drop it in my tree

commit 5c0a7217f172899ddacc32bac16549a274a5ae05
Author: Olof Johansson <olof@lixom.net>
Date:   Wed Nov 29 17:55:20 2017 -0800

    RISC-V: Add missing include

    Fixes:

    include/asm-generic/mm_hooks.h:20:11: warning: 'struct vm_area_struct' declared inside parameter list will not be visible outside of this definition or declaration
    include/asm-generic/mm_hooks.h:19:38: warning: 'struct mm_struct' declared inside parameter list will not be visible outside of this definition or declaration

    Signed-off-by: Olof Johansson <olof@lixom.net>
    Signed-off-by: Palmer Dabbelt <palmer@sifive.com>

diff --git a/arch/riscv/include/asm/mmu_context.h b/arch/riscv/include/asm/mmu_context.h
index de1fc1631fc4..1cd5172882c2 100644
--- a/arch/riscv/include/asm/mmu_context.h
+++ b/arch/riscv/include/asm/mmu_context.h
@@ -14,6 +14,7 @@
 #ifndef _ASM_RISCV_MMU_CONTEXT_H
 #define _ASM_RISCV_MMU_CONTEXT_H

+#include <linux/mm_types.h>
 #include <asm-generic/mm_hooks.h>

 #include <linux/mm.h>

  reply	other threads:[~2017-11-30 18:26 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-30  1:55 [PATCH 00/10] RISC-V: Fixes for clean allmodconfig build Olof Johansson
2017-11-30  1:55 ` [PATCH 01/10] RISC-V: use generic serial.h Olof Johansson
2017-11-30  1:55 ` [PATCH 02/10] RISC-V: use RISCV_{INT,SHORT} instead of {INT,SHORT} for asm macros Olof Johansson
2017-11-30  1:55 ` [PATCH 03/10] RISC-V: io.h: type fixes for warnings Olof Johansson
2017-11-30  1:55 ` [PATCH 04/10] RISC-V: move empty_zero_page definition to C and export it Olof Johansson
2017-11-30  1:55 ` [PATCH 05/10] RISC-V: Export some expected symbols for modules Olof Johansson
2017-11-30  1:55 ` [PATCH 06/10] RISC-V: Provide stub of setup_profiling_timer() Olof Johansson
2017-11-30 18:26   ` Palmer Dabbelt [this message]
2017-11-30  1:55 ` [PATCH 07/10] RISC-V: Use define for get_cycles like other architectures Olof Johansson
2017-11-30  1:55 ` [PATCH 08/10] RISC-V: Set __ARCH_WANT_RENAMEAT to pick up generic version Olof Johansson
2017-11-30 18:30   ` Christoph Hellwig
2017-11-30 18:38     ` [patches] " Palmer Dabbelt
2017-11-30 20:21       ` Olof Johansson
2017-12-01 18:27       ` Christoph Hellwig
2017-11-30  1:55 ` [PATCH 09/10] RISC-V: Add missing include Olof Johansson
2017-11-30  1:55 ` [PATCH 10/10] input: joystick: riscv has get_cycles Olof Johansson
2017-11-30  6:48   ` Dmitry Torokhov
2017-11-30 18:26 ` [patches] [PATCH 00/10] RISC-V: Fixes for clean allmodconfig build Palmer Dabbelt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mhng-4776ddc9-3d51-4c96-ba41-11c8ebbc0b2f@palmer-si-x1c4 \
    --to=palmer@sifive.com \
    --cc=albert@sifive.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olof@lixom.net \
    --cc=patches@groups.riscv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).