Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3638194rwb; Sun, 30 Jul 2023 12:17:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlElb5nXr1pMxqTRGOWRndGpMu3hHHkHwPlBey45wyhkJYxkPxHbROzV+kVf3n4P8ZOrVjiy X-Received: by 2002:a17:906:de:b0:993:f996:52cf with SMTP id 30-20020a17090600de00b00993f99652cfmr5207972eji.28.1690744622861; Sun, 30 Jul 2023 12:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690744622; cv=none; d=google.com; s=arc-20160816; b=eDiJlb4seBZpFq3HhPYYrPputBTrcq9A7BYbR2aDHsrN9SeyY1J9z2p6DOV/jSCuKT 8tTYg5+KN4v8wTG6qQqJ0SEIQN3J55zSKnvJKJclkZr/sime9/SRWpKHGhvR8bd9pbuL 5S8YaAMZGd7pkkne4KicgIRSMFoSUbWPyupA4XclDKOHHDovtNHjMSiVAqJ96rDzXrh2 mR/XsPi/+wOXPi4NhNMgXkVrMeJxYiH9do1cQD+5ISXmA5Jk0EfhbSlxmu8cwoAqxajP UaHYztTLQZM9T0t104ooj4Z/WcR+DzQbAcmAzXRC0TV0e38Ma8ZfdqNMhKTP80idrOFl KgzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=J4VnC9JBLnkd1aV4ux2bXmINUF6Lk2/WGzIZSYRircM=; fh=btZCZGtDGUPxwQks+Qxm7MzVZj2vuM7IW5aIpzl9v7M=; b=K1B0W/leFlLRmBti37cuLf5FDCOjH0/0MgNbgo1On/nIwq1q+BWP5EaAT2H1iONadn 5Ow+43I5+iJb4+Fz8EaSc15XMPc8BVfRNf5pFj0tDHPc7tnnNbx+E3GRrMQBVclBjkiJ chYA1iAD2NH+92+joRrIan464fbYHr6bwxg+GuWpj20EYGOmYDNHlKl5OLKhlJklfXy2 3kcZvNpBXpkbssfS2nzRrZLv4/FALtt/55GpqrcEp2RKtgF+1g/i+TtNSb21vq8/2Ivj 2yfFNLdB4yqQ7FH9bhkNSWteXx8gds8yjiG44AM4HBVy8RdlvfKVGSzVuI6+mxZLZAL5 NAeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UXfxA8kJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ci13-20020a170906c34d00b00988da29a08fsi5614158ejb.841.2023.07.30.12.16.27; Sun, 30 Jul 2023 12:17:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UXfxA8kJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229743AbjG3SEJ (ORCPT + 99 others); Sun, 30 Jul 2023 14:04:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjG3SEI (ORCPT ); Sun, 30 Jul 2023 14:04:08 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15888E6; Sun, 30 Jul 2023 11:04:07 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-31783d02093so3432053f8f.0; Sun, 30 Jul 2023 11:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690740245; x=1691345045; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=J4VnC9JBLnkd1aV4ux2bXmINUF6Lk2/WGzIZSYRircM=; b=UXfxA8kJ8VCVYBN7w9R8NPc5VSpcaJp+PSQwHUAlYH/q8GjjSuZ9e8OYJcUcvehVub iDXY4w9OqfOYGwgs0hpPPvxNlluYKDmVZbvExXngRtDjtrIsxjyr/GXNL+kTx9l7b82a oYutzf/O+hCsQy6+mj4hSNI8WR09iDMrGx/GrmlyNguVZUgpj3/S7bC5EtWhauf0DMvu 64d52Qp6WnF/M0KD2FZ996O0NXd/6fiuV+pS26QuzOh6FokvgJqaGQjN5E+yaH73xlvU EF3N4SMFJIvjQeWGI8sFwrM5IKk0njGEjX1ao319V4qPTjTCqP/Mu6dODMBqNc1i24H8 LIEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690740245; x=1691345045; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=J4VnC9JBLnkd1aV4ux2bXmINUF6Lk2/WGzIZSYRircM=; b=YVlrGrdL0cZNRLsYKiQEhsQkbW80UvjzNDxsrnmfVIFltasXzxuDFE8hYcwcMmc8K5 GLpEaplsa3r8eMyzmg0CQZV7QsfpEsZEdjpkDfLN2QxqWUbOSWBO68G3wbn9QoxLJCN9 RcAReaF+eXVfjWt8RzzyEyeEETzJpulM2HCjZCuoIaOAIXeQ7Kb+1Du1RFbqPA+flgLi 15qZ1fzomN1R/yYXOY1tzb33Y3BJCLWSwmQ3Os8yEXlPGxTgu/wUL5SdAViHOi8xwCD4 fBi7Y5vwKxX8+ynUq0c32bKOVkpvvBZ91ot83kypPbMndDEFKtB2h5upkZE3LC3PfMCC pWzw== X-Gm-Message-State: ABy/qLaMahtr1ESO/TMvm5xDLBbkS1vMZyoGwhlYklBQK8gq9iVnivMM kniTjlZdNTCxbdUSZW8cqJM= X-Received: by 2002:a5d:6611:0:b0:317:734e:3614 with SMTP id n17-20020a5d6611000000b00317734e3614mr6519540wru.39.1690740245327; Sun, 30 Jul 2023 11:04:05 -0700 (PDT) Received: from ?IPV6:2a02:8071:b783:140:927c:82ba:d32d:99c1? ([2a02:8071:b783:140:927c:82ba:d32d:99c1]) by smtp.gmail.com with ESMTPSA id s11-20020adfeb0b000000b003176a4394d7sm10667477wrn.24.2023.07.30.11.04.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 Jul 2023 11:04:04 -0700 (PDT) Message-ID: Date: Sun, 30 Jul 2023 20:04:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 2/3] firmware: qcom_scm: Add support for Qualcomm Secure Execution Environment SCM interface To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Ard Biesheuvel , Ilias Apalodimas , Srinivas Kandagatla , Sudeep Holla , Johan Hovold , Steev Klimaszewski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230730161906.606163-1-luzmaximilian@gmail.com> <20230730161906.606163-3-luzmaximilian@gmail.com> Content-Language: en-US From: Maximilian Luz In-Reply-To: <20230730161906.606163-3-luzmaximilian@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/30/23 18:19, Maximilian Luz wrote: [...] > diff --git a/include/linux/firmware/qcom/qcom_scm.h b/include/linux/firmware/qcom/qcom_scm.h > index 250ea4efb7cb..dd4236cffbec 100644 > --- a/include/linux/firmware/qcom/qcom_scm.h > +++ b/include/linux/firmware/qcom/qcom_scm.h > @@ -122,4 +122,25 @@ extern int qcom_scm_lmh_dcvsh(u32 payload_fn, u32 payload_reg, u32 payload_val, > extern int qcom_scm_lmh_profile_change(u32 profile_id); > extern bool qcom_scm_lmh_dcvsh_available(void); > > +#ifdef CONFIG_QCOM_QSEECOM > + > +int qcom_scm_qseecom_app_get_id(const char *app_name, u32 *app_id); > +int qcom_scm_qseecom_app_send(u32 app_id, void *req, size_t req_size, void *rsp, > + size_t rsp_size); > + > +#else /* CONFIG_QCOM_QSEECOM */ > + > +int qcom_scm_qseecom_app_get_id(const char *app_name, u32 *app_id) > +{ > + return -EINVAL; > +} > + > +int qcom_scm_qseecom_app_send(u32 app_id, void *req, size_t req_size, void *rsp, > + size_t rsp_size) > +{ > + return -EINVAL; > +} As the kernel test robot rightfully complained: I forgot to static inline both functions above. Already fixed for v6. Regards Max