From patchwork Wed Jun 27 21:53:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 140380 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1410036ljj; Wed, 27 Jun 2018 14:53:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJQMHMyay5OFOJWyNlnO/Me4rfja/TjdW3Dzx8A6QU7MMibNfuw6E64csD5h6DyVRkFosGi X-Received: by 2002:a17:902:8c84:: with SMTP id t4-v6mr7971008plo.100.1530136407972; Wed, 27 Jun 2018 14:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530136407; cv=none; d=google.com; s=arc-20160816; b=HMirXaCkyiB3mvvdpy1DMkeEai6Rt4PPo7qVoO86B/VOIEqPKmRpZsI5u358qm3Vp+ DMN/SpxsvHMnQQsehLCMF6zW4Pd2QjM6cUG8945svhnjWo6dbVz8XDDjwYP0MEBQ1wKJ vGhApjVg61D0gcBTsnVMcoMFCkJbCOHQxrRs89giOreL92NSjFBQoAgLm1bAySo/p+Dr depr+GotbQjvFU4/zR3xHdDS+NpE4YmgUpLpee+x/5bWeepS6+juVw8Kgihhr73f8nBI 4TOZKthdRQkk2kp6JVfYRgyEgHYx59L57+LJa+mfbP9iXKz2uf1D4iUdL1+Th0oZW6Yx WxPg== 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=06QtmzGVSmKQGTJ8jMGHYnWBnYqopWkaYi73cz1FOdY=; b=vviIdaeo6sq7G+VJLL1HTThqonRQP7dvVt0LRWVDCOTC3JM+nUzivTY6i2FwH0RgtV 2X1/mWc6vj6Zz8x27k5jXiTakSfEH2KJM+D5T3g6X4+//m2QoP/1Bp0VkdLmJT0zCQYs avtZyBAfK/E7AWoBh7EsQ55wvaO72uGefcjtCRyge2CTFWIHpu/uv1lAEwvc5gNqWzTY /ToIMzseNuFV+E5FIdXoBlRRoTTqrkX5/MLZ4eLDNVyq6bWidCPsJoRBdco6PfPDDMWE HanQvwKxiiNEkPL2bJ+0LGNZuH6OfEYab3nNhk7nwwqBwpDRmPyq9b2BzE7D6WJnNWNd p0Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OqbE11P9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16-v6si4426890pgd.12.2018.06.27.14.53.27; Wed, 27 Jun 2018 14:53:27 -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=pass header.i=@linaro.org header.s=google header.b=OqbE11P9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966081AbeF0VxZ (ORCPT + 31 others); Wed, 27 Jun 2018 17:53:25 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:42828 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965789AbeF0VxX (ORCPT ); Wed, 27 Jun 2018 17:53:23 -0400 Received: by mail-lf0-f67.google.com with SMTP id u202-v6so2643202lff.9 for ; Wed, 27 Jun 2018 14:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=06QtmzGVSmKQGTJ8jMGHYnWBnYqopWkaYi73cz1FOdY=; b=OqbE11P9Fzi9Zhet8d/3XWywvuobFm0NJAWAuefLjWpVDBXS/QGCNyO7oWguqS3hS2 a4DxBUWeDGTJ1037gVeWmEiboM1Z1ORdj0XuFhR9tJsgDv9j5VYNXlnPOPvAJ7U0oF1m f6Yg+hDR9S/gpg4EqiADrYvjoknuRfLLVJpu8= 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=06QtmzGVSmKQGTJ8jMGHYnWBnYqopWkaYi73cz1FOdY=; b=AIq4uMTizrM8NNX6RrtyIQl1eW4aZbyt1YQDkMigj42ZGxS6FWaq28sJut6R7tE/AF 5ZnRq/rSntoD/6d+lNhZYRZrpyNevyJbtgseq7dcLxkkm2NFbT1wLPPtZqqTEj0aycJ7 yG+IC68yrQj09g9qEUjTUNyCyM0BOCzjBIDzIcNeC4leWiOSARguYjHeEjGV9zh4MPsv 92nFUjZnKOo3tV9j3+TIt7Ux0Xx/gBNPI7H7a702YE8cQZxc8kqGebtyj5wWT2mimZiA LO8evjun34YFTG3NwFmBUmKzrqB+jLqVslb4cqyZ12fnO/z0MPzqG/OITHuV37Se6ZwH FruA== X-Gm-Message-State: APt69E0uTYh0wvSM4OyhpCHfO0wMOQ65BGa13pko9WD5hMzCKYZaib5C Uul+mj/w8AkNrYel+It9zedWAQ== X-Received: by 2002:a19:a685:: with SMTP id p127-v6mr5005637lfe.4.1530136402370; Wed, 27 Jun 2018 14:53:22 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id p5-v6sm635353lfc.19.2018.06.27.14.53.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Jun 2018 14:53:21 -0700 (PDT) From: Niklas Cassel To: Bjorn Andersson , Andy Gross , Avaneesh Kumar Dwivedi , Niklas Cassel , Jordan Crouse Cc: linux-kernel@vger.kernel.org Subject: [PATCH RESEND] firmware: qcom: scm: add a dummy qcom_scm_assign_mem() Date: Wed, 27 Jun 2018 23:53:17 +0200 Message-Id: <20180627215319.1417-1-niklas.cassel@linaro.org> 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 Add a dummy qcom_scm_assign_mem() to enable building drivers when CONFIG_COMPILE_TEST=y && CONFIG_QCOM_SCM=n. All other qcom_scm_* functions already have a dummy version. Signed-off-by: Niklas Cassel Reviewed-by: Bjorn Andersson --- include/linux/qcom_scm.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 diff --git a/include/linux/qcom_scm.h b/include/linux/qcom_scm.h index da63d84e1e91..06996ad4f2bc 100644 --- a/include/linux/qcom_scm.h +++ b/include/linux/qcom_scm.h @@ -89,6 +89,10 @@ static inline int qcom_scm_pas_mem_setup(u32 peripheral, phys_addr_t addr, static inline int qcom_scm_pas_auth_and_reset(u32 peripheral) { return -ENODEV; } static inline int qcom_scm_pas_shutdown(u32 peripheral) { return -ENODEV; } +static inline int qcom_scm_assign_mem(phys_addr_t mem_addr, size_t mem_sz, + unsigned int *src, + struct qcom_scm_vmperm *newvm, + int dest_cnt) { return -ENODEV; } static inline void qcom_scm_cpu_power_down(u32 flags) {} static inline u32 qcom_scm_get_version(void) { return 0; } static inline u32