From patchwork Wed Mar 3 13:43:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392114 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133872jap; Wed, 3 Mar 2021 05:45:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJySFC9PwWKUJzHN51zpduglHsIIY/TPdGERgAlR13gm66cqo7rnflXd6QCpqb/Nc3xIZoog X-Received: by 2002:a17:90b:947:: with SMTP id dw7mr9798357pjb.178.1614779112779; Wed, 03 Mar 2021 05:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779112; cv=none; d=google.com; s=arc-20160816; b=JIdfM1oFBeg3q3ER+RL7H0AKg4/uGDqFqahxwbauwkPqsJLbHb1GqQZhkYPyEbCZ49 e+RPUYq/sa8Mb+wf9GGLl15z8q+hjw71smEufeVIcL9VT8ztgDh961kikw1iMBAsxota 5Ak3CieLiaobsxMyHQsKqszGyVLZb+iGRhSMH7+oinDmz5IVLuAmnPe2X5AuckUrkHd+ 34rpWpivwl4IkqUwmZ5VR9qKwMl+QESuLnKOOPpjiD+kg766xq42x6kD1Xl6BzEdw6eR 1Q2zK56wXFKPfPOUHRq7aKLRF1Xr0Y6hj+2Ptt2CYTgoR0LkAEC7wt9lsYbPxZ8EdGHo j3qg== 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=evHyRsGwaEe+e9OD2VNmQC/UTFjwcSFKpuhUwlcReEQ=; b=ZSyjFJXJmuHE4QJgjTGd1wAlXIMe5zaY26cmPuSmk/wWnfyb9Oq8cszeNs05ca9avG Im+Yx3QqHz6jngEswSUkcPDb+WhaN8xfUv7X9L1D8ZbB/f806w8UbcNLfATKP43WRSJ6 XVvTtSLin1/SI6A9Rza2FwdzFvF4sbKcO5gZjlcDa7uxLciBgQ/ZSdQrZtwJM4en74cO MQmfL4NVNj+ax0r4FhOlyq7kUGltiCi25SdGJvLCz4N7H7Lxit9dW0Wfn9qkD/rvbUIM GMjO22yp9crYwuJwzJHvzpZpYY2yC1WHs6JNx9ZHzL1TvjOk+s8eV8WEFx7eeVjhrQCs ClVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="eIs+/oNL"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 189si24797235pgj.383.2021.03.03.05.45.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:45:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="eIs+/oNL"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 CA05C6E98C; Wed, 3 Mar 2021 13:44:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 54C926E985 for ; Wed, 3 Mar 2021 13:44:31 +0000 (UTC) Received: by mail-wr1-x42b.google.com with SMTP id u16so5735132wrt.1 for ; Wed, 03 Mar 2021 05:44: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=STeXZot7UNsWfWvi+ECfSVOes0yoTqiHgkq3rfNhNfU=; b=eIs+/oNLfkhdj6OT9dHSDH8W5WywMha6aMEKck0RmrxPz7iqr/11jJ4qds3prHui1K hck5bggU4m8/bTTDKgxh0Nkpf9mdXzbD9LK780fc9pZOuHC0aambtq3x8UULm1iZ5Zcz KrLopof08NjqlnH2p6jzv84EkH39sPi2gyq12F0LKblBEAiwfqPDkmSvMxK78bdvfnIW Jif+z9+EU+ox3nnMiPcVh8a7lg3Vdk6yO/f5wfBVB8XQtVBGQyPKJzmMFOapeMA3tH76 0yMwbK/kOvDFwKk4rUoRv91R35GZiyl1tWhiQFEdbqjhFObsxQCXi61w0V5NM/ri0z/9 ctVA== 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=STeXZot7UNsWfWvi+ECfSVOes0yoTqiHgkq3rfNhNfU=; b=Q+s8S31GpgNShlNfk9B/ionAQRCGlrLa1lESiIKWR8NkPCtVtLs4T6ZaPeuADGu/aF IR+RUBEDiELPGk8pDuUmxNEaFLn0SCJ9V5wZr7U1GeZq5WdEFambyNRQ9IJVT+EkitXV uAYEcZ7NIjWzzP/maQ1caCgldWVOsSgqTayiw3lPyH+Tl8e7+RHSP8v/Mj0514vbWyhe 5EtBN5E7wyEXWDviZkZDIqLEMrJI3HLBAWArn2ScMj8H0LM7/UsxI9342uOPhaf69R7t j65m7qWhqrSKCIMvH3pHqizLlIZ2elygEXOBZ/pyBsFd529eRtz/pEEZAjgwBYDpSoKM aLNg== X-Gm-Message-State: AOAM531vN7jhtsKpfy6jPPi39TipTa9yvS1HgyALjvzEknERgJ2hOYP1 IsKvFyiJsdmABVzfD+B/BLQQJg== X-Received: by 2002:a5d:404f:: with SMTP id w15mr22820915wrp.106.1614779070093; Wed, 03 Mar 2021 05:44:30 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:29 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 53/53] drm/vmwgfx/ttm_object: Reorder header to immediately precede its struct Date: Wed, 3 Mar 2021 13:43:19 +0000 Message-Id: <20210303134319.3160762-54-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-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, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, VMware Graphics , Dave Airlie , Rob Clark , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Also add missing description for 'refcount' Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/ttm_object.c:60: error: Cannot parse struct or union! Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: "Christian König" Cc: Dave Airlie Cc: Rob Clark Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-30-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/ttm_object.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/ttm_object.c b/drivers/gpu/drm/vmwgfx/ttm_object.c index b3fdc630497cb..112394dd0ab6a 100644 --- a/drivers/gpu/drm/vmwgfx/ttm_object.c +++ b/drivers/gpu/drm/vmwgfx/ttm_object.c @@ -42,6 +42,14 @@ */ +#define pr_fmt(fmt) "[TTM] " fmt + +#include +#include +#include +#include +#include "ttm_object.h" + /** * struct ttm_object_file * @@ -55,16 +63,9 @@ * * @ref_hash: Hash tables of ref objects, one per ttm_ref_type, * for fast lookup of ref objects given a base object. + * + * @refcount: reference/usage count */ - -#define pr_fmt(fmt) "[TTM] " fmt - -#include -#include -#include -#include -#include "ttm_object.h" - struct ttm_object_file { struct ttm_object_device *tdev; spinlock_t lock;