From patchwork Mon Oct 5 14:22:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 7327821 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 435B59F731 for ; Mon, 5 Oct 2015 14:22:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6BAD1206B7 for ; Mon, 5 Oct 2015 14:22:29 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 91FDB20660 for ; Mon, 5 Oct 2015 14:22:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ACB936E853; Mon, 5 Oct 2015 07:22:22 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by gabe.freedesktop.org (Postfix) with ESMTPS id C69AC6E853 for ; Mon, 5 Oct 2015 07:22:20 -0700 (PDT) Received: by qkap81 with SMTP id p81so69373278qka.2 for ; Mon, 05 Oct 2015 07:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=00FR+p+Mv9NzEsigsNPhoTHljCPn4jHkBcNka3qDkcA=; b=j19/iUbBayMKfeKaLLHJnFm2CTVgMwdtVjp8oypTqLC5EijukLMM91WQOwxBKhoBjw q/LizAUGsOEmztHn0lflo58+jTvtpfViXFKSZcqUAV46W5ckXFGN42L5m0dHGlXXxzUQ WW+koOBPWjIB7nnSpgt+mig3NFx1QHRtbJCzHHPZ6kVfcLM1OJG1phsoLuzZZ+Tf/pC/ d10OatXDxeXBGwPP0m0RJcx/+oDHBiv+sA4ncUQ6xe0ASzZBFg/9CD3hftFDQi21TVhr KSHTZhVaXn1fKjAdhoVFNTIx9m7q44ZsDcde8zWwPjEUkKpZ8EEn0Go0oHjbUNibfxXl pXMw== X-Received: by 10.55.15.3 with SMTP id z3mr38905174qkg.29.1444054939857; Mon, 05 Oct 2015 07:22:19 -0700 (PDT) Received: from localhost (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id v3sm11443722qkv.36.2015.10.05.07.22.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Oct 2015 07:22:19 -0700 (PDT) From: Rob Clark To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 2/5] qcom-scm: fix header compile errors Date: Mon, 5 Oct 2015 10:22:08 -0400 Message-Id: <1444054931-2147-3-git-send-email-robdclark@gmail.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1444054931-2147-1-git-send-email-robdclark@gmail.com> References: <1444054931-2147-1-git-send-email-robdclark@gmail.com> Cc: Stephen Boyd , Bjorn Andersson X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add missing #include for types.h to have u32, etc. And fwd declare 'struct cpumask'. Signed-off-by: Rob Clark --- drivers/firmware/qcom_scm.c | 4 ++-- include/linux/qcom_scm.h | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index 118df0a..39082c1 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -76,7 +76,7 @@ static void qcom_scm_clk_disable(void) * Set the cold boot address of the cpus. Any cpu outside the supported * range would be removed from the cpu present mask. */ -int qcom_scm_set_cold_boot_addr(void *entry, const cpumask_t *cpus) +int qcom_scm_set_cold_boot_addr(void *entry, const struct cpumask *cpus) { return __qcom_scm_set_cold_boot_addr(entry, cpus); } @@ -90,7 +90,7 @@ EXPORT_SYMBOL(qcom_scm_set_cold_boot_addr); * Set the Linux entry point for the SCM to transfer control to when coming * out of a power down. CPU power down may be executed on cpuidle or hotplug. */ -int qcom_scm_set_warm_boot_addr(void *entry, const cpumask_t *cpus) +int qcom_scm_set_warm_boot_addr(void *entry, const struct cpumask *cpus) { return __qcom_scm_set_warm_boot_addr(entry, cpus); } diff --git a/include/linux/qcom_scm.h b/include/linux/qcom_scm.h index 46d41e4..c536b70 100644 --- a/include/linux/qcom_scm.h +++ b/include/linux/qcom_scm.h @@ -13,8 +13,11 @@ #ifndef __QCOM_SCM_H #define __QCOM_SCM_H -extern int qcom_scm_set_cold_boot_addr(void *entry, const cpumask_t *cpus); -extern int qcom_scm_set_warm_boot_addr(void *entry, const cpumask_t *cpus); +#include + +struct cpumask; +extern int qcom_scm_set_cold_boot_addr(void *entry, const struct cpumask *cpus); +extern int qcom_scm_set_warm_boot_addr(void *entry, const struct cpumask *cpus); #define QCOM_SCM_HDCP_MAX_REQ_CNT 5