From patchwork Fri Jan 15 18:12:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 363669 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp88911jap; Fri, 15 Jan 2021 10:13:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJJC4OkJrJfypdoS1HuBL+WM6OWzA+52YhhdueWtxWjQgTKaM3QpR6QYIqvSzVL/Nb3EZ6 X-Received: by 2002:a17:90a:34c8:: with SMTP id m8mr12047973pjf.103.1610734426408; Fri, 15 Jan 2021 10:13:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610734426; cv=none; d=google.com; s=arc-20160816; b=YeaQQHNa6kdCTyNh8DQnkmexLqThDnIfg1s34kCjNIY0iIupl9eCFdUUIMFBENUD0/ qdCOR5kWIhVyhvtpZ7Xdp+E//ojhM5LldOZOWLzS17pu51H7grgTh5RmskyJC4O5sPWx M/5+JcyZwm2vbK0dtWt+LTx8MsgqtWrlrw7fSuBLMsMos1WauDMVDR/LWxi3zz8CrhKY 8fLPVe7VHPFcKJ3auGP2xmieFZTn8Jp6n3d3hc8iGtLnFiCgIqqx0WFaeM62KlN3en2V t0DjQUs08rbc8w2XH/eDWwOqiv4LMJ1mIOtouHcHX+Wit3VozJBDCGDGj3zbtPfdEWYL A5Pw== 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=5NZBp97A3j6jFjF19sU7zWsUH84pVCZPPi4goAQ3sWU=; b=Vp34JFzl9oU999rE20a9dNcDL18n+p8MIrgpiFwgUnMwV/XbCidY2B/kXEU8hgJ9FL j7ToPi0I3tC913TOm+3OaEHCTG9oIsSkhumSRcPXQCBIT7bsfrEdWR82hbMCRLwZoaJA 7foS/OQO8fiTsx0ZbLOrjK2fhnX1mwSfkXsEcw3MzFWPmm5of4gNB2cpEPoaVOTAFehN yuc70Cvy6sFng6Hvhs5Xe7cHb8Ad1eiYvuu1fTk9uB0xquWGBOu5RHqgkUcmOatsh67t vypuuIcrSEiJcrf5ZU4GTGy9BDE36ub+WQNoCUUip0IedvO3FmYza8IranbjFgRD3JBy 44Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gcPt2Yf8; 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 y3si10117988pfb.59.2021.01.15.10.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:13:46 -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=gcPt2Yf8; 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 BEBA56E466; Fri, 15 Jan 2021 18:13:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5CF7C6E46B for ; Fri, 15 Jan 2021 18:13:31 +0000 (UTC) Received: by mail-wm1-x330.google.com with SMTP id y187so8408039wmd.3 for ; Fri, 15 Jan 2021 10:13:31 -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=o+NaOzslIuLS5J9pNZb4fvgzik/FyZn/jqm9ZPQuWdU=; b=gcPt2Yf87b/ShsbMtAB8DSJHWxzobsp+uEVJTJI8p8rCo2GuGHF5+eKwGBC0VlyZ90 KDq7HXSj5S5B5z9bM2lVkWFOT+UmimXzXqfmrecElufbv02xRhPOpxQg7CcLG8e+U+ah C9Kpj3hgXdSl0ykXUVVW9CjYz6qDFtjFEVaVW8Zgl+qJsPUsHaQV1vUkEgdMXHD1LMOS lkIXZiIMAMNE+cU+Ll0q/wWAvibFwPRmW6z7fGevaAskVyng7rIdQnkX1n86PRss8Bl5 RSwJ215w8Wz6Q1NxFC80W47W5e146q5CCR/k4Wc5N+wJNIFR+LA1WsGr9Jn2ZBSLwh3R R+JA== 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=o+NaOzslIuLS5J9pNZb4fvgzik/FyZn/jqm9ZPQuWdU=; b=PTcjlvO9M+nmxtFSWXerIQQL2o3+1eS0Okoeds/lCjUk0SBMiayqHFZ4qPnhTQ9R4y zm3prPOEh9UsztxD8C7/+8I2JwhRJT4LwfFkC789IspN6/1Oj9eoiujc/jFvkf1l6HWF f/3xfNjXZ5e+ezB2y5uEqrUBneBRqH0iuoxp34Ex7NGLIPQf/COsj0GM59QtNXOsORnO CX/57wAXQzGRH9CST9o6xQxZ+X5V/Z7rN/YJtmLZXkBCb73eEEYKnpwGkCxifsux2rPZ GDt239BbCiMe02e8VcCHLJnKcbOLU8/AzoJPsQMLMzibCOQWelhP4Q2xu3y3SuKYBEXW UaCw== X-Gm-Message-State: AOAM532lwC4BGgZp4kRJjbC/3HIZL8OSP7WK3YzXy8iYdmXSxqeVttNd duc9UkfWul5Q44s/4tsxpWWOCRts9Erw5V52 X-Received: by 2002:a1c:de09:: with SMTP id v9mr10274031wmg.0.1610734409886; Fri, 15 Jan 2021 10:13:29 -0800 (PST) Received: from dell.default ([91.110.221.158]) by smtp.gmail.com with ESMTPSA id j2sm16123484wrh.78.2021.01.15.10.13.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:13:29 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 10/40] drm/vmwgfx/vmwgfx_resource: Fix worthy function headers demote some others Date: Fri, 15 Jan 2021 18:12:43 +0000 Message-Id: <20210115181313.3431493-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210115181313.3431493-1-lee.jones@linaro.org> References: <20210115181313.3431493-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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:215: warning: Excess function parameter 'obj_type' description in 'vmw_resource_init' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:303: warning: Excess function parameter 'p_res' description in 'vmw_user_resource_noref_lookup_handle' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:328: warning: Function parameter or member 'dev_priv' not described in 'vmw_user_lookup_handle' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:328: warning: Function parameter or member 'tfile' not described in 'vmw_user_lookup_handle' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:328: warning: Function parameter or member 'handle' not described in 'vmw_user_lookup_handle' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:328: warning: Function parameter or member 'out_surf' not described in 'vmw_user_lookup_handle' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:328: warning: Function parameter or member 'out_buf' not described in 'vmw_user_lookup_handle' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:398: warning: Function parameter or member 'dirtying' not described in 'vmw_resource_do_validate' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:601: warning: Function parameter or member 'interruptible' not described in 'vmw_resource_reserve' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:601: warning: Function parameter or member 'no_backup' not described in 'vmw_resource_reserve' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:987: warning: Function parameter or member 'interruptible' not described in 'vmw_resource_pin' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) -- 2.25.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index d1e7b9608145b..c4df51a2a9262 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c @@ -202,7 +202,6 @@ int vmw_resource_alloc_id(struct vmw_resource *res) * * @dev_priv: Pointer to a device private struct. * @res: The struct vmw_resource to initialize. - * @obj_type: Resource object type. * @delay_id: Boolean whether to defer device id allocation until * the first validation. * @res_free: Resource destructor. @@ -288,8 +287,6 @@ int vmw_user_resource_lookup_handle(struct vmw_private *dev_priv, * @tfile: Pointer to a struct ttm_object_file identifying the caller * @handle: The TTM user-space handle * @converter: Pointer to an object describing the resource type - * @p_res: On successful return the location pointed to will contain - * a pointer to a refcounted struct vmw_resource. * * If the handle can't be found or is associated with an incorrect resource * type, -EINVAL will be returned. @@ -315,7 +312,7 @@ vmw_user_resource_noref_lookup_handle(struct vmw_private *dev_priv, return converter->base_obj_to_res(base); } -/** +/* * Helper function that looks either a surface or bo. * * The pointer this pointed at by out_surf and out_buf needs to be null. @@ -388,6 +385,7 @@ static int vmw_resource_buf_alloc(struct vmw_resource *res, * @res: The resource to make visible to the device. * @val_buf: Information about a buffer possibly * containing backup data if a bind operation is needed. + * @dirtying: Transfer dirty regions. * * On hardware resource shortage, this function returns -EBUSY and * should be retried once resources have been freed up. @@ -586,7 +584,7 @@ vmw_resource_check_buffer(struct ww_acquire_ctx *ticket, return ret; } -/** +/* * vmw_resource_reserve - Reserve a resource for command submission * * @res: The resource to reserve. @@ -973,7 +971,7 @@ void vmw_resource_evict_all(struct vmw_private *dev_priv) mutex_unlock(&dev_priv->cmdbuf_mutex); } -/** +/* * vmw_resource_pin - Add a pin reference on a resource * * @res: The resource to add a pin reference on