Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4072794imm; Mon, 6 Aug 2018 16:22:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd9Q1qDgyp1uaQpqQVDCOYpZIp335DTg4x/E+pYxrC7/AAYvJjETlZJNNNrCmNiCvNirbML X-Received: by 2002:a63:5350:: with SMTP id t16-v6mr16005500pgl.196.1533597730782; Mon, 06 Aug 2018 16:22:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533597730; cv=none; d=google.com; s=arc-20160816; b=MU6p7QusqeuuvHqPhol58lXYNueEEXIPkciRaUj6OpL71Ald25wNk7C69wnKmJ6XKm VrDIusihFVx1bi1hhRddMwsoxz4FuZEvapQiqk5/8L+NPIq/2RpP76aNTjYZ9ZbtIuPj Kkk+2hyMAwjCol2PyYTN6dRltMFkEGNyRCIEZ57rScPqEecKA47wz4X+UMT40+9JtsHJ dR85Cf97XvxxcqbakfWeKPwTdUvWYAYOnwtEzF/Vh67t8gn5yW89d5irNWaQhsMi0iQY hl5I7rtb32N38Ql33PvH1F4yiC2C8IpD8qrUo3MUlSLbbgaTgpzr0E6zQQQQJLFQBUds V/qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=1vZZFZSKT6g7mA70XmzVe4giBpxpPlKmV2ggVspk6JI=; b=B68RnSyTgEuA0ymZN3SCeYU9RbrGG/MmRCRSdjXAIRy69cga4Q8xvCVTEA8Xcd5fKh PEFRhwKukfDmprZeC7lbPA4u5DiiDM8LWVufpABcsQ/owmRE+GRJfCT6mXqYE3tXqSSQ QBUgSoODDK4q1IFFxrm1gYoF4ciTo0bfRxBh0G28jIeTm5lUxJN+dTahVbFUgUKwKZWq +qUdJquDJCPgXJa2buvdylZmYsEzhKWBThkEnajPCzrYPdsLODPWTVwg8B1lc7SDDaDi CpykHgmYlk6NXsBToaRpwzPsf/f0QqS+WfOGIiv6bjh6rmLEHpQTkQCnZK3n2WKgkoAe 1JFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=oWYC13MA; 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 m9-v6si11470907pgq.172.2018.08.06.16.21.56; Mon, 06 Aug 2018 16:22:10 -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=oWYC13MA; 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 S2387530AbeHGB27 (ORCPT + 99 others); Mon, 6 Aug 2018 21:28:59 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:51936 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733047AbeHGB26 (ORCPT ); Mon, 6 Aug 2018 21:28:58 -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=1533597457; x=1565133457; h=from:to:cc:subject:date:message-id; bh=ipv6tWgq6qAfG/G5bk1aSzdm0trGXlzAS8On7sGDFEQ=; b=oWYC13MAOmKRgs/Xc2iWmJIWEw1+GqNl/Y5FN3ifLS6dzFfXB8Ul2gZP TY3/XFf9lie+paR0fTq5sDs4dt97VcKLuBfPL4Z9V0BhLw2juYV389otD BBn9QbivIj2tGaTxUV9libwGBeJ24NWMgloXNKmG3IyWx5aeFHd+Afo26 +f12guABJW1SLTxQoFfNIvjc0ocF1Du7WLYiFq/nw53+H5mKBhNnVMvOG 2niYl76ghH6C1pKlAH/TwvrXJ5WRXFvEEDxGVG3D5R5cE3WJwWmocRsF0 NTO4TOBOJsb9d2roL7ZN4JZyTMgZJ9hE2HHVEoP4/n9XEz0bJznQ54gme A==; X-IronPort-AV: E=Sophos;i="5.51,452,1526313600"; d="scan'208";a="90476811" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 07 Aug 2018 07:17:37 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP; 06 Aug 2018 16:05:53 -0700 Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip01.wdc.com with ESMTP; 06 Aug 2018 16:17:37 -0700 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, atish.patra@wdc.com Subject: [RFC] RISC-V: Fix !CONFIG_SMP compilation error Date: Mon, 6 Aug 2018 16:17:36 -0700 Message-Id: <1533597456-245169-1-git-send-email-atish.patra@wdc.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.7.4