From patchwork Fri Jan 8 20:14:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 359066 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp856156jai; Fri, 8 Jan 2021 12:16:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaTVj8VbR7ov6MIsSetK4fXjSfhIp3MLF55MJhWF64XwKIP/HzuRgzRw5xu3Uu2KhXQ+Az X-Received: by 2002:a63:d62:: with SMTP id 34mr8728849pgn.276.1610136971952; Fri, 08 Jan 2021 12:16:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610136971; cv=none; d=google.com; s=arc-20160816; b=lc04fMcky4EqGB1K4rtDa2N2tz0bPqqeuZFzpjPYFWPJeCg/VqG8nsYoaJZAE6ISlc MdwRZI8O7cM0MlKo64KVPLB8VmLOPBndNHcWn7VEUHf3owRt1WrKnLzI4rpp5XfgXzVk yj7wtn5i7rCos0DSFFwBRp5u/LR2NuuEJcKaeZngudigg2snOB1sgaEQkg7sc6N8E+m1 2iHGe6ecnfm5KJK2Ck8sD7DGZnS45LZ0f70hSvgA8ytsnzYvwyQBS1Dv2it0B8EepbTT 8dUDhDcJWFaGlCt97vyOTJmwJPnn9pLljTUo4F0W3OgFFCz0SQOAJ70Ht1D+hJelWvYI ewPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=f5sSxpSIjCwpGMKmY/Y5JNHI9cuqYM34Ph9XfK9cisQ=; b=D3lBjSNVKh90FuRD4VW3+3OYYGkRPaOMmmujqtcOt9gXMJ3nOFG1SYMRhtd9LRO1kX qWt10/D8YnHdGxHhdMjJG/3GOR635J/a7GzKAB1emLTgclZndAtdquzgtU21dFDe8RgO G64L9M2GTQ+hKS2mucU2ctkBmS2TepxWZM1mTYlUmIQbiYicSHUcZCSiy0a+IpoIgKAZ qEVKBu1IyGCCleP/zRdYF4bzdqzApQip7cZVUayy+kZBTjwSZNQ9eQRpO9WDDP8jimQQ ICKTAYew/dFcKnevcVVnjk2gumOWc6d+ZVV0I1uRnCr8SKG1oGdV0wPKE2vTYoJtk/Fj jiaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=homuTJBM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id r1si9819073pgv.302.2021.01.08.12.16.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:16:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=homuTJBM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 670466E8EA; Fri, 8 Jan 2021 20:16:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by gabe.freedesktop.org (Postfix) with ESMTPS id D3D436E8EA for ; Fri, 8 Jan 2021 20:16:03 +0000 (UTC) Received: by mail-wm1-x331.google.com with SMTP id g25so7364846wmh.1 for ; Fri, 08 Jan 2021 12:16:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rP7mCQegZrZliKSNOE9HhwYeP/t/E6ng+qbUeSsHO9Y=; b=homuTJBMLHVxCdzu4xZUN8TgcpEBe07I94kMyeGYMSl7Qgq1qQUc6vh772KKH/7CE4 jZX7owmzqV8sN9KKvFWA6BrOu0vo3LI9MCr8+l9YCM6aXjuZAs/zkym4Z1S77ihJxS84 Ly21nzv+rhn4a5PZP837gJI+vKJCphVrU2OMYvLeNravR3zu74QNKK94KT4dLF+W/9dp +WBS/y3XlVzEsOYfoAWk69kPFPH+33qM/VxzJsen0OcLde4/9SYtQjKIrV+Ox+nUTgRG if8rEJarsSzEx3PAfevqPkBc+Cu5/tDIYkHh7o3JbqTg0vfC5Qqw7CvmQqG98S9qoPKU L50A== 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=rP7mCQegZrZliKSNOE9HhwYeP/t/E6ng+qbUeSsHO9Y=; b=cEY8JhJKi8HeXfQEQp2ELnAAoNAW08BGPnqMU7f8tAEf6t06P+OQgTjkW6Zj2g2mWz brYjX0sfe0rA5X1ewF6ZWQ8KqLvbJrfJ9ZFv30kFx+QnioyMFFgJNxV5CPEh7lulsTiK SSOhbf+JKcvP5gnB/tDmaG4u095i/HlANUSyaYbmKziznmdthCFf4qhSAmQH3gLNwcaR pHx2ggvUYtZurfJ3Hwnp+GQquljfSYgPbIgK+PsDef4JLHsNrYYp+rx8UZDhta86tsq7 3zqeQFs05WoII6+Pouh7vglB4rsR/Ac78NKLtgQ9ygZsymtsbQrn8yx8lCq9TFy3IYgY xwIg== X-Gm-Message-State: AOAM533j06E69rSZDErNBEtDmj1vSrPxAJSfZ0gAApDvcdoupP0YndFg NVms3MwP4M1tgHO5YqDHx2DykA== X-Received: by 2002:a1c:bc41:: with SMTP id m62mr4606670wmf.46.1610136962529; Fri, 08 Jan 2021 12:16:02 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.16.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:16:01 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 40/40] drm/amd/display/dc/gpio/hw_factory: Delete unused function 'dal_hw_factory_destroy' Date: Fri, 8 Jan 2021 20:14:57 +0000 Message-Id: <20210108201457.3078600-41-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108201457.3078600-1-lee.jones@linaro.org> References: <20210108201457.3078600-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_factory.c:123:6: warning: no previous prototype for ‘dal_hw_factory_destroy’ [-Wmissing-prototypes] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c b/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c index da73bfb3cacd0..92c65d2fa7d71 100644 --- a/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c +++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c @@ -119,17 +119,3 @@ bool dal_hw_factory_init( return false; } } - -void dal_hw_factory_destroy( - struct dc_context *ctx, - struct hw_factory **factory) -{ - if (!factory || !*factory) { - BREAK_TO_DEBUGGER(); - return; - } - - kfree(*factory); - - *factory = NULL; -}