From patchwork Fri Aug 23 15:14:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13775414 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9D082C531DC for ; Fri, 23 Aug 2024 15:19:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FW8739WG2pW91yBk/tQlD5UtDuolLDnWC79ydPFcmm8=; b=oWk3PZooxKHIWz1qz/1cG1wZqC L0sSptdPMNPnm7FzMyAyUWTkWh+Q/U4DHjWNCnD/cSqyR4i6Oj2utBJqCqojr+4IEZ4eCT/JkOu+5 JZYBNeoP9s+zWyMMBFaMUJilze6H6btrZoldA05XVdSC9lzHAM2JK1RI1IIm5qP3V25Tl55TqTE1q TlkEX4PydDtyGOmoAn4GVTs60M19SyQKW4CFSGhkyGEs6tCmsWwyQA74/qnAsAImLQMFrv6CWaumO i4ax8OeS/nci0xfjKHFewrPdTkLyVW0JwtS1B8o4D5ID1WHEcvXwsUbzuZB93b5kNKTO6fgeRSTXR xLm4ra7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shW4p-0000000HH1C-3FXG; Fri, 23 Aug 2024 15:19:47 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shVzv-0000000HFms-3apu; Fri, 23 Aug 2024 15:14:45 +0000 Received: from [192.168.29.25] (unknown [IPv6:2405:201:2015:f873:55f8:639e:8e9f:12ec]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8DD46C8E; Fri, 23 Aug 2024 17:13:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1724426018; bh=FuY4JrrtVry+i6FwzoUp0xVRKb3WmzVQh96lFM7/H8c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NnaYfUM1ecQVaq0d+ahEYy79dbrA2ptgA1/7/GFGShAe8IuAZ/IjaLZH4zpim1n6M onI1C2RCJs5jB/Fl6XMPb9DqtabZZj5gLuMbzFrua5Rf8RrLH3ts1hcSIEQ+yTNguF CpZEoQZpWdJIFz82LUzgA2++hcxAOm0/O774tu4o= From: Umang Jain Date: Fri, 23 Aug 2024 20:44:26 +0530 Subject: [PATCH 6/7] staging: vchiq_core: Remove unused function argument MIME-Version: 1.0 Message-Id: <20240823-to_sent2-v1-6-8bc182a0adaf@ideasonboard.com> References: <20240823-to_sent2-v1-0-8bc182a0adaf@ideasonboard.com> In-Reply-To: <20240823-to_sent2-v1-0-8bc182a0adaf@ideasonboard.com> To: Florian Fainelli , Broadcom internal kernel review list , Greg Kroah-Hartman Cc: linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Dan Carpenter , Laurent Pinchart , Kieran Bingham , Arnd Bergmann , Stefan Wahren , Dave Stevenson , Phil Elwell , Umang Jain X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724426064; l=1745; i=umang.jain@ideasonboard.com; s=20240731; h=from:subject:message-id; bh=FuY4JrrtVry+i6FwzoUp0xVRKb3WmzVQh96lFM7/H8c=; b=s6EOD48L5pUZyfs+LJAIqeLH0I1oCG7QmrNiemyJQhRlW3QuLacsmGK8HDK9tS95woDJB3h18 IAlEJYVf0h9CeHNNVHxhcmVNTKnWJPudmmJFRKuk5/bEWYRKqlqv+hs X-Developer-Key: i=umang.jain@ideasonboard.com; a=ed25519; pk=7pvnIBNsDpFUMiph0Vlhrr01+rAn5fSIn/QtDeLeXL0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240823_081444_070624_F4999B50 X-CRM114-Status: UNSURE ( 9.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The argument 'is_blocking' in queue_message_sync() is not used in the function. Drop it. Signed-off-by: Umang Jain Reviewed-by: Stefan Wahren --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 43c6a214be86..84631878f77d 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -1146,7 +1146,7 @@ queue_message_sync(struct vchiq_state *state, struct vchiq_service *service, int msgid, ssize_t (*copy_callback)(void *context, void *dest, size_t offset, size_t maxsize), - void *context, int size, int is_blocking) + void *context, int size) { struct vchiq_shared_state *local; struct vchiq_header *header; @@ -1524,7 +1524,7 @@ parse_open(struct vchiq_state *state, struct vchiq_header *header) /* Acknowledge the OPEN */ if (service->sync) { if (queue_message_sync(state, NULL, openack_id, memcpy_copy_callback, - &ack_payload, sizeof(ack_payload), 0) == -EAGAIN) + &ack_payload, sizeof(ack_payload)) == -EAGAIN) goto bail_not_ready; /* The service is now open */ @@ -3150,7 +3150,7 @@ vchiq_queue_message(struct vchiq_instance *instance, unsigned int handle, break; case VCHIQ_SRVSTATE_OPENSYNC: status = queue_message_sync(service->state, service, data_id, - copy_callback, context, size, 1); + copy_callback, context, size); break; default: status = -EINVAL;