Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6651133imu; Wed, 14 Nov 2018 05:04:06 -0800 (PST) X-Google-Smtp-Source: AJdET5ejXb7sTgcgL1cPWFqIWi2qRBRNXi2mq1gwm+5h2YGV1cpEfNtEmDzMRCNowj9M7hhnls4M X-Received: by 2002:a17:902:4624:: with SMTP id o33-v6mr1839144pld.285.1542200646567; Wed, 14 Nov 2018 05:04:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542200646; cv=none; d=google.com; s=arc-20160816; b=yRcJhPS5U7tNmNPbCr5YBVlM8AafG6nqS+TTYl+mRvaj1xCIamB81qy7aXrqLV6jRL XJhoQY+98mjlE6gHPvoZuim2yoMT0Y9+A6m3j8NJm2YgMQlvfUY+kuJyddpSQH9/P9vn Y1GlJfb2FkErjEqAaj6q4801/aKSqEWRdW0FJsVH1zdFPqxYQWv3C3ZeaZNMf0iBZ4c/ cRF9rih+3JOZVoh3G15928NAkT1WZNa42XoRuAbHm4irHS4af8/pyRyLwUcI5809qJ18 x3fM4DeWAm9mVthuzj1dTEIvdAwdCRgvHrrJkXyHz5bueoSVRpHNP8T4wV11ENhVZr8x hC7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WpArVDbguCqjgpAiVrlG4tRgiYP9QvMDOQx3vtAwweg=; b=ZJrFMu+mDAs3Y9pHxtZF2U60hwS486hir3VxKFkj9EmbuCp+8QNea0EH3PgIDWi6DK yLMOQ0OXMjqTKTdTG7ZjW+0pNsoFNCkeM0Nb09RIJWpnbyYnIXKEecEexMmODYjLGfxn mzz6btJJMt+WGxEEdDi3FG0e3WwcyD+wR7kTIhc6FWafDakcFAkmgEFp97Raqw+cF1sI RxkQeE1sUmHmcnsme8qMe6+IaW/nfAPnvgzWyKhwQwQWeDOtbvFJygt7+hBJJYiWAPfB w4RkWbKhbgWN/ELDBBJxZfDf1IDOpWkYKJnB3rdZY/+ED1lVIFJxXzv1FctSFNkP5k8n wu2Q== ARC-Authentication-Results: i=1; mx.google.com; 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 x36-v6si23260520pgl.520.2018.11.14.05.03.50; Wed, 14 Nov 2018 05:04:06 -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; 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 S1732684AbeKNXD2 (ORCPT + 99 others); Wed, 14 Nov 2018 18:03:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:44534 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728203AbeKNXD1 (ORCPT ); Wed, 14 Nov 2018 18:03:27 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2F248B0D9; Wed, 14 Nov 2018 13:00:17 +0000 (UTC) From: Nicolas Saenz Julienne To: stefan.wahren@i2se.com, eric@anholt.net, dave.stevenson@raspberrypi.org Cc: linux-rpi-kernel@lists.infradead.org, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Nicolas Saenz Julienne Subject: [PATCH 03/16] staging: vchiq_shim: delete vchi_service_create Date: Wed, 14 Nov 2018 13:59:29 +0100 Message-Id: <20181114125942.25163-4-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181114125942.25163-1-nsaenzjulienne@suse.de> References: <20181114125942.25163-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No one is using the API neither in the actual staging tree nor in the downstream tree (https://github.com/raspberrypi/linux). Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchi/vchi.h | 5 --- .../interface/vchiq_arm/vchiq_shim.c | 32 ------------------- 2 files changed, 37 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchi/vchi.h b/drivers/staging/vc04_services/interface/vchi/vchi.h index 01381904775d..379a16ebfd5b 100644 --- a/drivers/staging/vc04_services/interface/vchi/vchi.h +++ b/drivers/staging/vc04_services/interface/vchi/vchi.h @@ -113,11 +113,6 @@ extern uint32_t vchi_current_time(VCHI_INSTANCE_T instance_handle); /****************************************************************************** Global service API *****************************************************************************/ -// Routine to create a named service -extern int32_t vchi_service_create(VCHI_INSTANCE_T instance_handle, - SERVICE_CREATION_T *setup, - VCHI_SERVICE_HANDLE_T *handle); - // Routine to destroy a service extern int32_t vchi_service_destroy(const VCHI_SERVICE_HANDLE_T handle); diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c index c3223fcdaf87..81cac68f4b78 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c @@ -660,38 +660,6 @@ int32_t vchi_service_open(VCHI_INSTANCE_T instance_handle, } EXPORT_SYMBOL(vchi_service_open); -int32_t vchi_service_create(VCHI_INSTANCE_T instance_handle, - SERVICE_CREATION_T *setup, - VCHI_SERVICE_HANDLE_T *handle) -{ - VCHIQ_INSTANCE_T instance = (VCHIQ_INSTANCE_T)instance_handle; - struct shim_service *service = service_alloc(instance, setup); - - *handle = (VCHI_SERVICE_HANDLE_T)service; - - if (service) { - VCHIQ_SERVICE_PARAMS_T params; - VCHIQ_STATUS_T status; - - memset(¶ms, 0, sizeof(params)); - params.fourcc = setup->service_id; - params.callback = shim_callback; - params.userdata = service; - params.version = setup->version.version; - params.version_min = setup->version.version_min; - status = vchiq_add_service(instance, ¶ms, &service->handle); - - if (status != VCHIQ_SUCCESS) { - service_free(service); - service = NULL; - *handle = NULL; - } - } - - return (service != NULL) ? 0 : -1; -} -EXPORT_SYMBOL(vchi_service_create); - int32_t vchi_service_close(const VCHI_SERVICE_HANDLE_T handle) { int32_t ret = -1; -- 2.19.1