Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp831823imu; Thu, 22 Nov 2018 06:05:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/UwKSG+nT9uPiGUwCfSPtZgy/COTXqHAE6RG1Epu/PNPS5PjrJav6KhxXKG2MKHafEo4T3V X-Received: by 2002:a17:902:7402:: with SMTP id g2mr11207454pll.198.1542895546789; Thu, 22 Nov 2018 06:05:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542895546; cv=none; d=google.com; s=arc-20160816; b=EMvnErfpae10LGs0syA9uJ3273fHMMdObaiw0rbjQl3bEoocNMfjKAgzjgFi5/pHvu yqWEAKNcF2lWLUnv5jTPwT7ZZ6UX/dnvgAI+bpDR9hqMf55THTfty8800DbJhe/1Hpb2 avDGf5AHljNc6cb7I+koihDm32HfdVvVFUbh0HJ97QtlX0uyigytYj7/TB0VEs3TP2kp f0SqD32kRqbAh9tob1tuUE3blerthVMyb4++E/OG+k5h86HH62rixnYy/6InA4zUiOAN Zu7p8wYSUPHpGhp9/2PntGyfxFF9ShwTKBPgLyLkcDDhEIOE4KntZIBi/AlrGBEqai7f HlOw== 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; bh=gBfCtRnT7hMirUIQBIrazSIaq2eE8Jtpfcfo5Pc8x1U=; b=ndNz+/7vLFwWA5C0kq5lbWqeXLIkcnrsvXaI7HNH/k43UItsXzSUDh7fKid9/bss1A fmDZ9EAeK+vcVnseg7ErBmsPDXSDHPC0mY1tKEpWyDBDShgMaNyEJmU++S8W5bwcyfP9 vuv95V7S+6LBgPUTc6+cow+/XzyWWh45ctsnBm9d5085T0M7wPJQJ8iivMxL3JyOyPNf DqcE2ac/aRWjT72VCQtkvTQpGhoLl6som/JvGP0cSyzCcf4OkVB9YXMXJ7+cWCBLMb9y c+T4q8XMy9PcUXsIe1hM/Qm/i8fqA77DceF7a6dU/MUjrZUphyzXPi3o/YomirVon/Tv j7UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=zFiRSBjK; 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 f34-v6si53564579ple.218.2018.11.22.06.05.32; Thu, 22 Nov 2018 06:05:46 -0800 (PST) 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=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=zFiRSBjK; 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 S2391641AbeKVNMS (ORCPT + 99 others); Thu, 22 Nov 2018 08:12:18 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:47030 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729785AbeKVNMS (ORCPT ); Thu, 22 Nov 2018 08:12:18 -0500 Received: by mail-qk1-f194.google.com with SMTP id q1so6029814qkf.13 for ; Wed, 21 Nov 2018 18:35:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=gBfCtRnT7hMirUIQBIrazSIaq2eE8Jtpfcfo5Pc8x1U=; b=zFiRSBjKJ1TiABG4/5qdgNI2zdOqeaaMCyQYesCI9k0zKf/rJJXKJmfeO+rVimF7rK E9OekAxHa/NEOTGm9iLK9uhfddS1UsT+v4rbLy5a39B3o2V5no9269dszYi1psPNCE8m IJKQaWSL0xzzR9kDVgJJnez75V5nRzPOVZjMPTew4EZEfMn8wmXVmxsaE+OCyD88QM0c f+xG3CErbkJhI8LRheYKJp131WGllUE9KILEq3T4bXExQ4stJ0Ys57Mp75ORcZ9G4XwC RzaE99QG5GiRTtSn+lkX+rlmzsId8TGHgkhIODBlahPqo/YVGJxvOF0u3uudc5kgIWlc gFpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gBfCtRnT7hMirUIQBIrazSIaq2eE8Jtpfcfo5Pc8x1U=; b=ojthxb/LJXPOkMdIG6/Cpxegrz2qlEwERWYBcQoLLb9y0nk2yHryqROdYvvAO43nIr PxpovRXU1JcA+rUACDwqP8OezFjEy/fwTSAriSMIAWzOmN1/j6VvSAq/2JC5OcelLEx8 2C/eFnmnWmS2VerNEeCM3rgXGLkfxAXi4Jh2AECoQug7iC6bOQ9EEXZX07s0j4F51LI7 4RhmsDAMAoDiz97IFhSTWfo3NXK9MXSVCIeaPK5GCXoIBGjJeawmd7WQm+T4jS4UT7pl cwMZr7KTxpvn9fJ1QGhw7gKqgGpWWmtfWB6Bao2s8NlOzCYOObcrRgZNimelfMLqokNK JSlA== X-Gm-Message-State: AA+aEWZLGZ07/9UsyZt2gOabx1b4sGVm883VVPlPJzVqL+c3Q45N9lCz ugzwF2uQztG8p17cqEdBiWJ1rg== X-Received: by 2002:a37:6b42:: with SMTP id g63mr7811638qkc.297.1542854105710; Wed, 21 Nov 2018 18:35:05 -0800 (PST) Received: from localhost.localdomain (modemcable014.247-57-74.mc.videotron.ca. [74.57.247.14]) by smtp.gmail.com with ESMTPSA id b17sm25240234qkj.69.2018.11.21.18.35.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 18:35:05 -0800 (PST) From: Jonathan Marek To: bjorn.andersson@linaro.org Cc: Andy Gross , Niklas Cassel , Kalle Valo , Brian Norris , Jordan Crouse , Govind Singh , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] firmware: qcom: scm: fix compilation error when disabled Date: Wed, 21 Nov 2018 21:32:25 -0500 Message-Id: <20181122023226.1074-1-jonathan@marek.ca> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes the case when CONFIG_QCOM_SCM is not enabled, and linux/errno.h has not been included previously. Signed-off-by: Jonathan Marek --- drm/msm includes qcom_scm.h, but can be used with non-qcom hw (IMX5) include/linux/qcom_scm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/qcom_scm.h b/include/linux/qcom_scm.h index 06996ad4f2bc..1637385bcc17 100644 --- a/include/linux/qcom_scm.h +++ b/include/linux/qcom_scm.h @@ -67,6 +67,9 @@ extern int qcom_scm_iommu_secure_ptbl_init(u64 addr, u32 size, u32 spare); extern int qcom_scm_io_readl(phys_addr_t addr, unsigned int *val); extern int qcom_scm_io_writel(phys_addr_t addr, unsigned int val); #else + +#include + static inline int qcom_scm_set_cold_boot_addr(void *entry, const cpumask_t *cpus) { -- 2.17.1