Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp990074imu; Tue, 20 Nov 2018 09:53:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/VBBRoFGdRouzAHlOm5XmcUY1avMLfhPQhA5bLvzRi3uqaYYzCYVJE0MgYSFof96mE6GuFG X-Received: by 2002:a17:902:9897:: with SMTP id s23mr3092123plp.69.1542736381474; Tue, 20 Nov 2018 09:53:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542736381; cv=none; d=google.com; s=arc-20160816; b=beuAkeZBC5TkBa2RoHBa7i9cUq02PKlAP5qirRi8YgS8dbm3JvFilN0RGsjWad/xWr JQMFo+4Psb8XB0z8bFcHdJu/Es8zxuAEiwxU3AvxZd+nXWQR3Umw4/rv0cnIDnMQTMVp 0gtp3AvvrTtKA5UHL9y0ABwCcJPP1QnGA1UrL1mEu5XfSsfg98h8iiDNzibRI+dt7E3Z 9g7nzn5TL/6u1yBGCDiU/xuluiSjZDrIcqKfONqmalIxfl7b9Uq1fXEAcvyDrrwXVJay AG7Ejn8GZuSBUjZ6HcjORZmKgXh95wfXKYD2gfn9wY6WjrJTbA3xuAT0qzcYAp4mIv5t dX0g== 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=tvEq8mdw42pxw58RKRCiKHn5Ax1Ti3sUsHS5INVzxzVGBwzs1Lu7ast5dfzu7BMrez 4ddeWU+/DVmH6Jcp1GBF+3zWnm5DUcMB11mJzQn9EZ5RZAAjk1lpkW38t+7UgCN2b0KL 6nAHoLfiG/pWLzE8uC7q5/ZGxFXbfMLFM3kZ9Uyq3cKpQbO7tevLv9cI7xWp5PE/UVTR 3JBxUnQB9OPNr4moEl2chqenzK0DNRjWfjP7mt3q0SmL8i3T7FjbPyWEMeI1x3mqjaqx NHtls5o+3ZQ3rgLQq1IjQRYfsqeuvjAGfF7A/8MqYM6+yW+LsYv+/Yg/1n9VlRJ5aZl4 xvew== 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 i69si21988793pgd.71.2018.11.20.09.52.41; Tue, 20 Nov 2018 09:53:01 -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 S1729262AbeKUBXj (ORCPT + 99 others); Tue, 20 Nov 2018 20:23:39 -0500 Received: from mx2.suse.de ([195.135.220.15]:39166 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727466AbeKUBXj (ORCPT ); Tue, 20 Nov 2018 20:23:39 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CA94AAD12; Tue, 20 Nov 2018 14:54:06 +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: Tue, 20 Nov 2018 15:53:38 +0100 Message-Id: <20181120145351.30390-4-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181120145351.30390-1-nsaenzjulienne@suse.de> References: <20181120145351.30390-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