Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E20EDC48BD5 for ; Tue, 25 Jun 2019 18:18:00 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B95882086D for ; Tue, 25 Jun 2019 18:18:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bb0NldTY"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tKeM1nGf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B95882086D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=h227uJFx6ZE4eZpxYXzK/Q0YVLuFJfU4uYqz/kQpYi4=; b=bb0NldTYcCD/QO sq5pDCKns9Sm3hYGAediiCQl49YbSNLR1PNNu9krUZLqFA/Tc1pJWLv3XqCU3RxUnb0PayiMdB20d ggr/f2h3PiWrFyu358r9/FSf8H/WJcvSdy//B/cp80YdDh9tk3Qj40CNmKZnO4vm+cbRc7pXxlpQR iJj/P1TwlSXCnNa/KFN5didgY2XWYOiOBH8l3NVm89mLbnMkZiK1dt6HEfa0EDYCQhoTu06AtgpvK WQD3KnLYYUI89yzNEMwBxgzb+LiUXXWR0oD/LZVP5S8/ZCQ7jtXpv2ty4DZWaiMNwTvI0+ktT9N0c EmR+BRsh8SkCahggCmYg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfq0z-000401-N3; Tue, 25 Jun 2019 18:17:57 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hfq0X-0003g6-Pa; Tue, 25 Jun 2019 18:17:31 +0000 Received: by mail-pf1-x442.google.com with SMTP id i189so9886652pfg.10; Tue, 25 Jun 2019 11:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Bbu2tK3sSakQNVnTXMl1WxahFU6YdysIhCNxY10qcCo=; b=tKeM1nGfAFy82ijO53OzXbiMonpIclXTfbiFrjUIX6LNGP9WTd+3/aapkGSqfzAYZa J3IRSfzOrSta/n7Jf8cHooKALNszdjpL81TLbuciwWNrhNzQ8GWxX1FS8JyMRq3ghoH1 iun0X3fs0/XpKbh9CuoDLNxhDYqhCVSQi2wewfn7K9qz3wEVll/Y7tD+X7XgHB5M6NQG 2iQ9vqe0HFB5troq5IRVo1yUXXJjgcO5uSpyoIcy3xgbgSDVPJBpnjU9pJO1BRAqJ7Er qkCdrF9gcVW3YhH8TcATTeo5uAOpc3mMiZdJzcUI5eEZnHXFpOGQs+JWAlgf5R8z/yli o6FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Bbu2tK3sSakQNVnTXMl1WxahFU6YdysIhCNxY10qcCo=; b=gtHSWK0918sykLq4tuNY40Ii6rPLlFi5cMQiP3HlantIRvPBsKe31VzxwL78m1RHY3 mI3DxAGh2jeth1bvW2AHZ/orRoWN6ADh2kFqql8TsxxDbpFS6DVUMzTq+SuimemYYJjl 4lxsO0FkCWTHvswIxqjGhpMciD6PywT+yAle83k8AW/LtDw5WK5toyt7WLnJAkb2TBOw yWOFBQujyZJdGfN4QuT7M3HVDBTY4DQumqyeXVqV0hak6dr/rXrNTZiRDUcj1YAl3oFv p9nqegQIM6FAB23U3VflDADExmB+Exf9+2oxeMcprCOqBzQgvZ7OUk+c9/G4Uy56nGsZ /4cQ== X-Gm-Message-State: APjAAAUzAcl/OQS8MHNt70zDqHVCMExaQdjR+f+9I+a9tCP5d/yVKZPl Gs9yVEl1rDmXVT3AH2j16I0= X-Google-Smtp-Source: APXvYqy/6zI05cRtN3eini2aVDksTAmfLNCv+u3083Kd+IS7U9vzKapIqMvIz+7VpFR658J/vgZ5Xw== X-Received: by 2002:a63:3f48:: with SMTP id m69mr1507421pga.17.1561486648208; Tue, 25 Jun 2019 11:17:28 -0700 (PDT) Received: from localhost.localdomain ([122.163.71.137]) by smtp.gmail.com with ESMTPSA id w7sm14042959pfb.117.2019.06.25.11.17.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 25 Jun 2019 11:17:27 -0700 (PDT) From: Nishka Dasgupta To: eric@anholt.net, wahrenst@gmx.net, gregkh@linuxfoundation.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org Subject: [PATCH 2/9] staging: vc04_services: Remove function vchiq_arm_allow_resume() Date: Tue, 25 Jun 2019 23:47:02 +0530 Message-Id: <20190625181710.2267-2-nishkadg.linux@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190625181710.2267-1-nishkadg.linux@gmail.com> References: <20190625181710.2267-1-nishkadg.linux@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190625_111730_339601_5C6389C1 X-CRM114-Status: UNSURE ( 8.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nishka Dasgupta Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remove unused function vchiq_arm_allow_resume. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- .../interface/vchiq_arm/vchiq_arm.c | 43 ------------------- .../interface/vchiq_arm/vchiq_arm.h | 3 -- 2 files changed, 46 deletions(-) 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 9264a07cf160..bf7c1e2bce67 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -2883,49 +2883,6 @@ vchiq_check_suspend(struct vchiq_state *state) vchiq_log_trace(vchiq_susp_log_level, "%s exit", __func__); } -int -vchiq_arm_allow_resume(struct vchiq_state *state) -{ - struct vchiq_arm_state *arm_state = vchiq_platform_get_arm_state(state); - int resume = 0; - int ret = -1; - - if (!arm_state) - goto out; - - vchiq_log_trace(vchiq_susp_log_level, "%s", __func__); - - write_lock_bh(&arm_state->susp_res_lock); - unblock_resume(arm_state); - resume = vchiq_check_resume(state); - write_unlock_bh(&arm_state->susp_res_lock); - - if (resume) { - if (wait_for_completion_interruptible( - &arm_state->vc_resume_complete) < 0) { - vchiq_log_error(vchiq_susp_log_level, - "%s interrupted", __func__); - /* failed, cannot accurately derive suspend - * state, so exit early. */ - goto out; - } - } - - read_lock_bh(&arm_state->susp_res_lock); - if (arm_state->vc_suspend_state == VC_SUSPEND_SUSPENDED) { - vchiq_log_info(vchiq_susp_log_level, - "%s: Videocore remains suspended", __func__); - } else { - vchiq_log_info(vchiq_susp_log_level, - "%s: Videocore resumed", __func__); - ret = 0; - } - read_unlock_bh(&arm_state->susp_res_lock); -out: - vchiq_log_trace(vchiq_susp_log_level, "%s exit %d", __func__, ret); - return ret; -} - /* This function should be called with the write lock held */ int vchiq_check_resume(struct vchiq_state *state) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h index c1d5a9d17071..61b15278c999 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h @@ -115,9 +115,6 @@ vchiq_arm_vcsuspend(struct vchiq_state *state); extern VCHIQ_STATUS_T vchiq_arm_force_suspend(struct vchiq_state *state); -extern int -vchiq_arm_allow_resume(struct vchiq_state *state); - extern VCHIQ_STATUS_T vchiq_arm_vcresume(struct vchiq_state *state); -- 2.19.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel