Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp168849imd; Fri, 26 Oct 2018 06:51:21 -0700 (PDT) X-Google-Smtp-Source: AJdET5fI79J2iA2CH8kWOOLETzaMwtbI5QB4c3fCa2sx4nx3bn4dB6zxowCX54Kt6eS9tjSYS6ll X-Received: by 2002:a17:902:7202:: with SMTP id ba2-v6mr3595115plb.44.1540561881058; Fri, 26 Oct 2018 06:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540561881; cv=none; d=google.com; s=arc-20160816; b=MlQbxGTyGAMoyKPDbdQw5PWO2hTCXsoBZ0PnMVxJMOnpHCmY0duqoM/NfOkT+U3LGQ o7NC+0Tn10BHZP8C68Whzr8Wd/ECHo3DnDS6l9HD0PyvMcSWi80XBxB4pmLQl1sI5c3M uf00q3ko2eK5mJTeaswQzYqixBxetZGS2ywGByiht1SaRpgHe8l8Cexa2Eh5f9dXWK54 pEY4srpGAQpamFE6ryvOQOOowiOxhKf7AB5DgmQu4WOGGabU9jYBtwyxS4sdbaeJaIeS JeFtH8jvDZ2Q4TioJ4CAZRMz/39JNCSj4BRiyxfhZNIM+BEJebmX6E89ehKg2OHH0R2+ PdQA== 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=O8H2NDNfPMTeI3gShx+7tIW9cU3XH1OdHMXuoKuKkeTbSgeULfXs5TqnrorGJf8cfF RUCAdjCLQKbVrzu2hA76ljgdqffm/s3SaLHJ91YqutZiwJeMHcmhceB9PzWSGK2sboN8 MzKvSjEG2IsAB1jpGX5YHp5s2sZ3r0vnYmb25UoIfkamcQXmDDgfOk7aVJAAl2hNL3Ts bCq/CbJKriOEVUteyxtxAaF60aOlNcSxDd0MCfg/iLyr0e4wTz/QxPVP0Ilpdja9YMw2 nkq8f7oTF3dYSwBD42/RAQMFuFCkV/t+VrntUuktiQB+13EqdBIGkk5vBLaSjjMVjZvh dLEg== 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 31-v6si11530830plc.423.2018.10.26.06.51.05; Fri, 26 Oct 2018 06:51:21 -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; 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 S1727808AbeJZW1S (ORCPT + 99 others); Fri, 26 Oct 2018 18:27:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:44790 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726570AbeJZWZk (ORCPT ); Fri, 26 Oct 2018 18:25:40 -0400 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 63759AFBE; Fri, 26 Oct 2018 13:48:31 +0000 (UTC) From: Nicolas Saenz Julienne To: stefan.wahren@i2se.com, eric@anholt.net, dave.stevenson@raspberrypi.org Cc: nsaenzjulienne@suse.de, linux-rpi-kernel@lists.infradead.org, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH RFC 03/18] staging: vchiq_shim: delete vchi_service_create Date: Fri, 26 Oct 2018 15:47:58 +0200 Message-Id: <20181026134813.7775-4-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181026134813.7775-1-nsaenzjulienne@suse.de> References: <20181026134813.7775-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