Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2396251rwj; Mon, 19 Dec 2022 04:08:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXtSfUEaxIedBsC4psXzB7AAfxsLbqWGypU1rXooTBV/Atve71WXn+aS/tEFgJoNXLRoj0Bq X-Received: by 2002:a05:6a20:d385:b0:af:8ff3:fc7b with SMTP id iq5-20020a056a20d38500b000af8ff3fc7bmr24499478pzb.25.1671451721973; Mon, 19 Dec 2022 04:08:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671451721; cv=none; d=google.com; s=arc-20160816; b=yP0jqX8trJStQ5sEzMFPb6L1kpLf8nHHvCarJVN+7aZXv83N1e3rHQkK8AjOLnuHHP xt/CmPqmg4gL4BdCUwAi9YK06JSW1FE/I7UPhJshcza/a1zlcjNQwysQcs/c5wtc158q gLx4VUA6GDylPdFBCalQMCFItsMWSOlP/arXlYq21Xwj69aKJvaf3FYoSHEfH9EqXHak 5EOT1O9miyCLHFNHsF+Jai8ftxwknQrlNc+E0BzGcO2UPOizvpgaCFJjBoeB/QZ+hHE1 7WIuE5JxG1TudV9NKMXJABMyhBcQkV+j/SfPYDyoZxFmvt3waKeAcCstwKWNRtnIp+nt VjxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3iBEFaVAsXM9tVouekeEuLcSHVVsjpOojKSEopDArEw=; b=gm2Tu2XuZLIaY7pcHoc4Pz40G4q5n5LREkBV089hd8g31Fjj1PbR60kLfI/Scs8Wbh JsWJL2fjGM7O0+OOVpRC7VRrBhRGF02ouMu61mubJAbemSFGeeBunp6V8P16WcyPZ0pR EElo1mJixnlneDLJ/L9q16yujc2JfWKBO2+NvEKnERQJYnNJ7kBV0zH/jBGzYLNUVj1i 9xdW84yWcRuv2KLnzACAwbADjGLaMImFokHpa4hjYkJ0SGUBi/oWr1qXSTE/yFqSprYw 70ooS4sG1qk1DsG3+GxPc/67k/2OWLTEn4GxJqMMGfPhJqCMEgqXsFiqTvUN1NYSdAkz NHqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=cWp8jw57; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a630f06000000b00477ffa1aaf7si10368036pgl.50.2022.12.19.04.08.32; Mon, 19 Dec 2022 04:08:41 -0800 (PST) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=cWp8jw57; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231979AbiLSL6l (ORCPT + 70 others); Mon, 19 Dec 2022 06:58:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231857AbiLSL6W (ORCPT ); Mon, 19 Dec 2022 06:58:22 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85167D10F; Mon, 19 Dec 2022 03:58:21 -0800 (PST) Received: from umang.jainideasonboard.com (unknown [IPv6:2401:4900:1f3e:7d24:3f0:3e81:fb16:ab4d]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D20C3CDB; Mon, 19 Dec 2022 12:58:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1671451100; bh=pnFJ2UGBlXXzstWh4FzYwb33V1oluBE7ZoBQAv4pHlY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cWp8jw57GfP2fJQ+8eMJbY9Zj3/R1dAzxYR1ceDFEQfTPcqqVBXnaoXHnQ+kzyTwe ZbFw7JzvmzuYlR5zp1sQoMoD2hO4tZp7s2WAOd5K3gi2/JUJy3N/oiS6XzUMd/it/6 o6XQgEfXIJTFkd2YzxcT8KsvdVimzVlBSsDDIDBY= From: Umang Jain To: linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kees Cook , Stefan Wahren , Greg Kroah-Hartman , Florian Fainelli , Adrien Thierry , Dan Carpenter , Dave Stevenson , Kieran Bingham , Laurent Pinchart , Umang Jain Subject: [PATCH v2 6/7] staging: vc04_services: Drop enum vchiq_status remnants Date: Mon, 19 Dec 2022 17:27:24 +0530 Message-Id: <20221219115725.11992-7-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221219115725.11992-1-umang.jain@ideasonboard.com> References: <20221219115725.11992-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Drop all references to enum vchiq_status as they are no longer in use. Signed-off-by: Umang Jain --- .../include/linux/raspberrypi/vchiq.h | 4 ---- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 14 +++++++------- .../vc04_services/interface/vchiq_arm/vchiq_core.c | 6 +++--- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/drivers/staging/vc04_services/include/linux/raspberrypi/vchiq.h b/drivers/staging/vc04_services/include/linux/raspberrypi/vchiq.h index 2ca4461d26ee..66965da11443 100644 --- a/drivers/staging/vc04_services/include/linux/raspberrypi/vchiq.h +++ b/drivers/staging/vc04_services/include/linux/raspberrypi/vchiq.h @@ -17,10 +17,6 @@ enum vchiq_reason { VCHIQ_BULK_RECEIVE_ABORTED /* service, -, bulk_userdata */ }; -enum vchiq_status { - VCHIQ_RETRY = 1 -}; - enum vchiq_bulk_mode { VCHIQ_BULK_MODE_CALLBACK, VCHIQ_BULK_MODE_BLOCKING, diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index 5cfad840bd18..22de23f3af02 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -751,7 +751,7 @@ static int vchiq_is_connected(struct vchiq_instance *instance) int vchiq_connect(struct vchiq_instance *instance) { - enum vchiq_status status; + int status; struct vchiq_state *state = instance->state; if (mutex_lock_killable(&state->mutex)) { @@ -778,7 +778,7 @@ vchiq_add_service(struct vchiq_instance *instance, const struct vchiq_service_params_kernel *params, unsigned int *phandle) { - enum vchiq_status status; + int status; struct vchiq_state *state = instance->state; struct vchiq_service *service = NULL; int srvstate; @@ -839,7 +839,7 @@ int vchiq_bulk_transmit(struct vchiq_instance *instance, unsigned int handle, const void *data, unsigned int size, void *userdata, enum vchiq_bulk_mode mode) { - enum vchiq_status status; + int status; while (1) { switch (mode) { @@ -877,7 +877,7 @@ int vchiq_bulk_receive(struct vchiq_instance *instance, unsigned int handle, void *data, unsigned int size, void *userdata, enum vchiq_bulk_mode mode) { - enum vchiq_status status; + int status; while (1) { switch (mode) { @@ -915,7 +915,7 @@ vchiq_blocking_bulk_transfer(struct vchiq_instance *instance, unsigned int handl unsigned int size, enum vchiq_bulk_dir dir) { struct vchiq_service *service; - enum vchiq_status status; + int status; struct bulk_waiter_node *waiter = NULL, *iter; service = find_service_by_handle(instance, handle); @@ -1103,7 +1103,7 @@ service_callback(struct vchiq_instance *instance, enum vchiq_reason reason, */ if ((user_service->message_available_pos - instance->completion_remove) < 0) { - enum vchiq_status status; + int status; vchiq_log_info(vchiq_arm_log_level, "Inserting extra MESSAGE_AVAILABLE"); @@ -1330,7 +1330,7 @@ vchiq_keepalive_thread_func(void *v) struct vchiq_state *state = (struct vchiq_state *)v; struct vchiq_arm_state *arm_state = vchiq_platform_get_arm_state(state); - enum vchiq_status status; + int status; struct vchiq_instance *instance; unsigned int ka_handle; int ret; diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c index ddb6d0f4daed..4e705a447a62 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -2591,7 +2591,7 @@ release_service_messages(struct vchiq_service *service) static int do_abort_bulks(struct vchiq_service *service) { - enum vchiq_status status; + int status; /* Abort any outstanding bulk transfers */ if (mutex_lock_killable(&service->bulk_mutex)) @@ -2611,7 +2611,7 @@ do_abort_bulks(struct vchiq_service *service) static int close_service_complete(struct vchiq_service *service, int failstate) { - enum vchiq_status status; + int status; int is_server = (service->public_fourcc != VCHIQ_FOURCC_INVALID); int newstate; @@ -3212,7 +3212,7 @@ vchiq_queue_message(struct vchiq_instance *instance, unsigned int handle, int vchiq_queue_kernel_message(struct vchiq_instance *instance, unsigned int handle, void *data, unsigned int size) { - enum vchiq_status status; + int status; while (1) { status = vchiq_queue_message(instance, handle, memcpy_copy_callback, -- 2.38.1