From patchwork Thu Dec 19 10:16:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rolf Eike Beer X-Patchwork-Id: 13915192 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 30333E7718A for ; Thu, 19 Dec 2024 16:07:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A8D5310E4A6; Thu, 19 Dec 2024 16:07:25 +0000 (UTC) Received: from mx1.emlix.com (mx1.emlix.com [178.63.209.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 803A910E2BB for ; Thu, 19 Dec 2024 10:26:48 +0000 (UTC) Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 0FBCB5FA41; Thu, 19 Dec 2024 11:18:37 +0100 (CET) From: Rolf Eike Beer To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] annotate i915_gem_object_trylock() as __must_check Date: Thu, 19 Dec 2024 11:16:07 +0100 Message-ID: <7746997.EvYhyI6sBW@devpool47.emlix.com> Organization: emlix GmbH MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 19 Dec 2024 16:07:24 +0000 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" A while ago I did an attempt to convert some *_trylock*() functions to __must_check annotation. I have refreshed that and the only new compile error I found was in i915/gt/selftest_migrate.c. Here is what I have come up with as a solution for this. I have not observed any actual error about this, so you may prefer an entirely different way. Regards, Eike