From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751032AbdK3S0j (ORCPT ); Thu, 30 Nov 2017 13:26:39 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:39508 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750723AbdK3S0h (ORCPT ); Thu, 30 Nov 2017 13:26:37 -0500 X-Google-Smtp-Source: AGs4zMZVY0AH3EQBsuw+e/SMfAudvkII4QB9QKIQJRIBYIgOT1iHrgG4UBrSKua+gIAOVJelc9BDyQ== Date: Thu, 30 Nov 2017 10:26:36 -0800 (PST) X-Google-Original-Date: Thu, 30 Nov 2017 10:16:01 PST (-0800) Subject: Re: [patches] [PATCH 06/10] RISC-V: Provide stub of setup_profiling_timer() In-Reply-To: <20171130015521.1289-7-olof@lixom.net> CC: albert@sifive.com, patches@groups.riscv.org, linux-kernel@vger.kernel.org, Olof Johansson From: Palmer Dabbelt To: Olof Johansson Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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 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 Signed-off-by: Palmer Dabbelt 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 #include #include