From patchwork Fri Jan 15 18:16:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 363728 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp91609jap; Fri, 15 Jan 2021 10:16:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBEldGLtXy8GEqHZqmWuZZUd9djneeoERgvEtvCGHfh1frZbNQPBrjWy0Zk2dWrTGRRmZN X-Received: by 2002:a63:2fc5:: with SMTP id v188mr13650212pgv.243.1610734618649; Fri, 15 Jan 2021 10:16:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610734618; cv=none; d=google.com; s=arc-20160816; b=hAHsFf+szVkhvPgP5vb1QhqfERfrY6epDF5CZkn7zjRM+ci7n85aUBqz6NOf5NvMJi nn9NxwgzpO/yMDEI5sxPL2ZXS7tcmLYZxxf0GtpqbWsj1YkzQaZRzA+oSIQTglA1Z57P GTDrBjEaiLHCEenZx9a+W/BfQc2+CGda1gFu24+gP3GrwmjybRNk3ZkpcMnqKAODwZ5n B6emORyF0t7Sb2o/xIZ8ebOtCuOgh+kovmshEPgOsf1CbFl7j1BXykGwX1Z4P529k2yf kZAtOPWub7SbkTtp09JhUBDsJfxX+ysMRPi9Wz0ZK6Zf2ZFDOizFINMeAFPMpdmHTGTc 6mgQ== 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=EQubSn6acbuHXtcYHfF3yYTq/MdyHbp8L1hkt2WkSXo=; b=eD2ysipWVkfYrpKsULD5q9+Kv08s+tKJHUymBaF2sR/UrIs8xv3kyvR9lS/ASpOFzx 1GhFta4klLwlbfhr0F1N2RnyZo2IeXBuanTJRZLXP3MeAjFjVZgOQCGiPy4QkqS1+MNt Zzo2lhqeHBk6yiDl9n7+Px0wCEmR9xS/IXibwifKa/0hIOtQ/dBH2uzqZULDUtyLHoxc mA9FJVIrUEoLvzg/KfwBKA/SRPPT1rYNtO5SPCdttNN5hF/Zb99sq0XCGXHWSillZxtj zWqa+oOjtJvMuiz5Hic0vo/or46bLVa4hhwsqoaG9eGJu5ysRCtsEebRL3YDhyCzD2e9 KcAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PN4ofpG3; 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 y6si10453171plt.59.2021.01.15.10.16.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:16:58 -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=PN4ofpG3; 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 549906E4F8; Fri, 15 Jan 2021 18:16:51 +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 B8C486E4EA for ; Fri, 15 Jan 2021 18:16:47 +0000 (UTC) Received: by mail-wr1-x42b.google.com with SMTP id d26so10195650wrb.12 for ; Fri, 15 Jan 2021 10:16:47 -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=8ouoNyIGf3M12ncW8jNmga8ZhB/umTlAexno2+hm9vw=; b=PN4ofpG3AFQIY2HDhtrxDHd3v0+xd4onwEz7G2/zC+rhfE4HirmzmL3jcXLpUYXBOi 1hKzvGAxrSr6Dv8cDtBOLdA7LW3HUMbsDnWopgDjwrGvgzeyJHyJwJWkktXJjDTKYn5x 6sdobPOvJJIR/TrcLU+En4Nb4Sqr3ym2MpFPjZERoM0EqXn73uEydbCIdma4dh+mEVpS 9T/msFV3PGGbNj49yLhdVehCCKoHHScJgdSAS89oR4U37UhK/tfSoY4zcAxgsB3IEg6M gagHknlc1GH0nljzwa8FvQWUO/kBx3xMgu49tE3RqzKT+TqiG4u92puwvRgzcDEP2/vs 8tag== 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=8ouoNyIGf3M12ncW8jNmga8ZhB/umTlAexno2+hm9vw=; b=DSL/K8PFZL/GPb5564koOZ4fBpZpIoRMj55QqmyJifpRtmqFLsaO3IXGdtc3K4R3uf zb7qTDTq2cDrfW8pQxlzkJzFQmDbJTHCOIWy/zjxcrr2FAv4QIPM5YvJn7vgvACtcas4 JJcMyii4bYz8gVmaFUXYzlTdr0ZKf592FL23MFGsTwf0bgBmD2E7p3/L08xJfxfSQ1ik MNQ1zjHE+SqHyM4ZNX0oZwyxY6PHLOpp17DWIdWpcWZidFbhXjHJyhJ3gM2vmR90vwP7 sEjy+gIUgqlcu2Dc3Q8XxQjCsHCQ5fCGCSRbZpZqhSdizDbBxDYwEgIGPvRYj2rqTcxt UD7A== X-Gm-Message-State: AOAM5309pz9QfWwDy9xla0afAfN0M3BDweG86gbxfmASvsCN+2vDWMmR R6arurGgMnnWQFlhV3jTzKH7CQ== X-Received: by 2002:adf:ef49:: with SMTP id c9mr10087109wrp.172.1610734606342; Fri, 15 Jan 2021 10:16:46 -0800 (PST) Received: from dell.default ([91.110.221.158]) by smtp.gmail.com with ESMTPSA id b133sm14405979wme.33.2021.01.15.10.16.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:16:45 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 29/29] drm/vmwgfx/ttm_object: Reorder header to immediately precede its struct Date: Fri, 15 Jan 2021 18:16:01 +0000 Message-Id: <20210115181601.3432599-30-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210115181601.3432599-1-lee.jones@linaro.org> References: <20210115181601.3432599-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 --- 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;