Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp304422imm; Fri, 10 Aug 2018 11:32:59 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxJ7VjYbOwBg0QIIWhS5P7noIJ/NUB26MCDlV/I1emQ48aiWQEYSYQUlOs5POfJ1lyi62Mr X-Received: by 2002:a63:1f4d:: with SMTP id q13-v6mr7532597pgm.241.1533925979712; Fri, 10 Aug 2018 11:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533925979; cv=none; d=google.com; s=arc-20160816; b=G0AhdslytrMKLFWE2QD0Cct198nVkyIIEp3/1PVPXV/1xWhaG808jio8awSQAm/gP8 DF9AH24WoA0vehTZbvlhThijLV7Uoa0jgRNWobf0SQZaZpR9LHgw63CuQ8z5SvbINJTO tqP87wlTm/Qi94dQuRNgg9ce1I9DR6WFE7CL+VpinLCzKXFIDpE1leUQeeziARdDzwst KhbwrNGWJLnpvyo/hGWGGc/c1a/qNUZJSLAVaGXhTEpYxSx1ea1hxurtMTPWfSaGsBPE eYOYEiALl1FXO6fLlw1F/0z5oyYqknW5WrBBBkZR7WSi9uFiZ36jSPdtC+e1vmZ1AXgV yYsw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=pK2kfhvhJDYYnGRFLpwe9ZQLBYPdWZUg7g7tkj1YyAc=; b=M91MjSJzeHsxTkiuOt9W5yUkpEM3ZBy0V4ospyOY2K1NkQqqWv7AI6De5a9NudeJPl ga0E7HCfj0E9Re0gIISyxA7b6MO0+y072kldwxK35oCXWJvFieaW91iX0sJQznM0F7mf 5aSS1EOUTnAy/Oh1qnclZ1bwvzU8n93WsFMsLC3Nhsudr5eTR8VwfM08x8IYdmuS/+fs LZNJr+x8rFg4i1M5YwlmGBuVCk8diK0TCSKmGK7FdhN4xdGctRTgJWgHMVBzv72p3P3g 82UMwkRDaeabZaGI43Gl+QgdXzc4jmGWNTczQU/kfbn5QRsg7Z/nJD5TfKgB/2x7jZIe nttw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=WWdjiQYk; 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 j24-v6si9680284pfn.363.2018.08.10.11.32.45; Fri, 10 Aug 2018 11:32:59 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=WWdjiQYk; 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 S1727151AbeHJVCK (ORCPT + 99 others); Fri, 10 Aug 2018 17:02:10 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:22919 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbeHJVCK (ORCPT ); Fri, 10 Aug 2018 17:02:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1533925869; x=1565461869; h=subject:from:to:cc:references:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=ldhzcVml41Adc2TCwYXwL6c7zw4O5g/A1W338IHl3tw=; b=WWdjiQYk47G0R4wdIA+FjKFHQJ7DHIgV0g9sEXBDzfcuagTQwL3OFotA pfhBvWKZ9L2VJfm1dBsFpt4ZWD3d169nI0rWMG2dCU3odq/yVDyqdQLGR VQVCQYNKeyKU1B2wQAAzxqf3vmg7ULuIjd5wFZcng33HrWAfMzrYXowYD bO1OaYCnb6Gr3eWYyzTQlT7hw7VwqDmD1T27tIcdKLPKOT2g9WO39LhiD LJQ2xu9KyHIdSAsjasXvwxkGcnpJc08s87TVBznPa0tey3JsF80IHC/uz YsDAbjYQoKRJ4Umjep/LOh9Aj+GdEjtNaoTYrg03tjJ0OAmVq2XxJYgY3 A==; X-IronPort-AV: E=Sophos;i="5.53,220,1531756800"; d="scan'208";a="87319221" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 11 Aug 2018 02:31:09 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 10 Aug 2018 11:18:43 -0700 Received: from c02v91rdhtd5.sdcorp.global.sandisk.com (HELO [10.196.159.148]) ([10.196.159.148]) by uls-op-cesaip02.wdc.com with ESMTP; 10 Aug 2018 11:31:08 -0700 Subject: Re: [RFC] RISC-V: Fix !CONFIG_SMP compilation error From: Atish Patra To: "linux-riscv@lists.infradead.org" , "palmer@sifive.com" , "alankao@andestech.com" , "sols@sifive.com" Cc: "peterz@infradead.org" , "nickhu@andestech.com" , "acme@kernel.org" , "jolsa@redhat.com" , "namhyung@kernel.org" , "linux-kernel@vger.kernel.org" References: <1533597456-245169-1-git-send-email-atish.patra@wdc.com> Message-ID: Date: Fri, 10 Aug 2018 11:31:08 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1533597456-245169-1-git-send-email-atish.patra@wdc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/6/18 4:17 PM, Atish Patra wrote: > Enabling both CONFIG_PERF_EVENTS without !CONFIG_SMP > generates following compilation error. > > arch/riscv/include/asm/perf_event.h:80:2: error: expected > specifier-qualifier-list before 'irqreturn_t' > > irqreturn_t (*handle_irq)(int irq_num, void *dev); > ^~~~~~~~~~~ > > Include interrupt.h in proper place to avoid compilation > error. > > Signed-off-by: Atish Patra > --- > arch/riscv/include/asm/perf_event.h | 1 + > arch/riscv/kernel/perf_event.c | 1 - > 2 files changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/riscv/include/asm/perf_event.h b/arch/riscv/include/asm/perf_event.h > index 0e638a0c..aefbfaa6 100644 > --- a/arch/riscv/include/asm/perf_event.h > +++ b/arch/riscv/include/asm/perf_event.h > @@ -10,6 +10,7 @@ > > #include > #include > +#include > > #define RISCV_BASE_COUNTERS 2 > > diff --git a/arch/riscv/kernel/perf_event.c b/arch/riscv/kernel/perf_event.c > index b0e10c4e..a243fae1 100644 > --- a/arch/riscv/kernel/perf_event.c > +++ b/arch/riscv/kernel/perf_event.c > @@ -27,7 +27,6 @@ > #include > #include > #include > -#include > #include > #include > #include > ping ? Regards, Atish