From patchwork Thu Aug 10 14:49:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 134041 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp492660vqi; Thu, 10 Aug 2023 08:17:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGBpOr4vkM+WCTKFuiLzFY9cdstGBQIM4MdvzXk21Z1bBGFLoxKgCYAL3CNcPPfvP7NTuSx X-Received: by 2002:ac2:58e7:0:b0:4fe:ecd:494f with SMTP id v7-20020ac258e7000000b004fe0ecd494fmr1865812lfo.33.1691680669532; Thu, 10 Aug 2023 08:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691680669; cv=none; d=google.com; s=arc-20160816; b=YiDZ/WRxbeq9ktWHPyNtmiiax9LeQ+u/JK/3rggP/2S+BMNDp2gM5PWOgJhVa+d4Cc ThjKmixv7C19HInpLnl/2X03QWKybN1JkmQjDAXTDPCpNuvMo3z74IsB5DPryct99d7d /rXq9Qgs2D2BLGfgY+Gh9GrF+Sn+6j8MQGGiXbIzUnRsUioNe/xW9A1bH1jMmO/RED2+ CdOdw6nvR/dhMnHeQSEbI1gIkbHk9Wlzzc1LQRUdISoJO+N2jMz8jDR974uPepZARF14 2/xG6n+Bb2moCCss0sWvce6RtbJDPwO2WrdvNWiVhpmc/vt1ac7O1GyS9ZmpsEWiGV8T 8Mhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=dmlOv/OYPPTd9NyeM+92o+VNmv4BeUWbWodmt2y8sxE=; fh=q1fBnwaijAwAV9P/LMVF0cG8NBJDyj32QpQm29RN1Lo=; b=ehwtwVO8MNcDGkKos/W2TgFWqfme07VDnC4YrOGL1SCnwT2sE1719Vu9QkgQxKnd79 hYJ1epIfHneFAPlg+SS4ofo1CHtJGwLy4FA164Cd+c7/f9zIvwDFdYIIpwecajLUShnF nEmvm4K6xAaGLvJkmw7ECU6oqFNOHF7iSNyJ1Q/49h/ne2ahz1zefi4HQ+dgoQzAmfig vr+rjnq2x399LluhuqAqFQ9sPbuMV527DDRBg59aa1BF06jsp0LnxPxqD8Hqh6sVgabF H4c1XcFjpaCCUWwv+bHjL1EzAVrR6N5bLUN6yuapYCDGgAYM+iB7rs9JWFpBQ9PLSPKX 99yw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020aa7ca4a000000b0052221fb7d74si1633365edt.77.2023.08.10.08.17.19; Thu, 10 Aug 2023 08:17:49 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235230AbjHJOtx (ORCPT + 99 others); Thu, 10 Aug 2023 10:49:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231807AbjHJOtw (ORCPT ); Thu, 10 Aug 2023 10:49:52 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DBBF211C for ; Thu, 10 Aug 2023 07:49:51 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RM8rC2gm3zCrWk; Thu, 10 Aug 2023 22:46:19 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 10 Aug 2023 22:49:48 +0800 From: Yue Haibing To: , , , CC: , Subject: [PATCH -next] tee: Remove unused declarations Date: Thu, 10 Aug 2023 22:49:43 +0800 Message-ID: <20230810144943.34976-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773855749570166452 X-GMAIL-MSGID: 1773855749570166452 Commit 4fb0a5eb364d ("tee: add OP-TEE driver") declared but never implemented optee_supp_read()/optee_supp_write(). Commit 967c9cca2cc5 ("tee: generic TEE subsystem") never implemented tee_shm_init(). Signed-off-by: Yue Haibing --- drivers/tee/optee/optee_private.h | 2 -- drivers/tee/tee_private.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/tee/optee/optee_private.h b/drivers/tee/optee/optee_private.h index 72685ee0d53f..6bb5cae09688 100644 --- a/drivers/tee/optee/optee_private.h +++ b/drivers/tee/optee/optee_private.h @@ -238,8 +238,6 @@ int optee_notif_send(struct optee *optee, u_int key); u32 optee_supp_thrd_req(struct tee_context *ctx, u32 func, size_t num_params, struct tee_param *param); -int optee_supp_read(struct tee_context *ctx, void __user *buf, size_t len); -int optee_supp_write(struct tee_context *ctx, void __user *buf, size_t len); void optee_supp_init(struct optee_supp *supp); void optee_supp_uninit(struct optee_supp *supp); void optee_supp_release(struct optee_supp *supp); diff --git a/drivers/tee/tee_private.h b/drivers/tee/tee_private.h index 409cadcc1cff..754e11dcb240 100644 --- a/drivers/tee/tee_private.h +++ b/drivers/tee/tee_private.h @@ -47,8 +47,6 @@ struct tee_device { struct tee_shm_pool *pool; }; -int tee_shm_init(void); - int tee_shm_get_fd(struct tee_shm *shm); bool tee_device_get(struct tee_device *teedev);