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 58368D74ED3 for ; Fri, 23 Jan 2026 14:05:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D069C10EAF1; Fri, 23 Jan 2026 14:05:20 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=codethink.co.uk header.i=@codethink.co.uk header.b="BUOYWMcG"; dkim-atps=neutral Received: from imap4.hz.codethink.co.uk (imap4.hz.codethink.co.uk [188.40.203.114]) by gabe.freedesktop.org (Postfix) with ESMTPS id 47BB810EAF1 for ; Fri, 23 Jan 2026 14:05:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codethink.co.uk; s=imap4-20230908; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:In-Reply-To: References; bh=3o/V+pItf8hTOU7BXv1sPYSeVAiOjt+faqxkDYxjzE4=; b=BUOYWMcGgpeoyy s5OX/n1bWzfWr0NJfhX/X0X1QCf3K5WGPLMT8NhcQJgbc2yz4ad16eq0jY4LmHR7YCSvRDkDCmQmE JOlEJGtzBK9RICBYjHbwK9Zeqt3i/K20j6dAKPHK+ejYx6CiVtUMknruLmO9v76JIM9n251voSNhI uh1QvV0VXhlrwGeI2fKGiZ6XeHNhRukpkDIl50b4TYQNmJqpetycIAbdpFe+aYJrdjIsSHm8rT6+J PIF2cOz5cTpTW6ytrOFa1c1pxSglaIvGTVYfmYY2Ip4FmSE0wTgikW4igJgn1urRcXhV6Ld6SKnkp /cM9Qj2fNOK7zse8fn0w==; Received: from [167.98.27.226] (helo=rainbowdash) by imap4.hz.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1vjHmj-00BGgw-BW; Fri, 23 Jan 2026 14:05:14 +0000 Received: from ben by rainbowdash with local (Exim 4.99.1) (envelope-from ) id 1vjHmk-00000002YTU-0IBH; Fri, 23 Jan 2026 14:05:14 +0000 From: Ben Dooks To: linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, simona@ffwll.ch, airlied@gmail.com, mperttunen@nvidia.com, thierry.reding@gmail.com Cc: linux-kernel@vger.kernel.org, Ben Dooks Subject: [PATCH v2] gpu: host1x: fix missing 'host1x_context_device_bus_type' Date: Fri, 23 Jan 2026 14:05:12 +0000 Message-Id: <20260123140512.609167-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.37.2.352.g3c44437643 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The drivers/gpu/host1x/context_bus.c does not include any declaration of host1x_context_device_bus_type, and after including "context.h" it also showed that there are two definitons in the kernel, so fix those two Fix by removing the definition in context.h and include in context_bus.c Fixes the following sparse warning: drivers/gpu/host1x/context_bus.c:9:23: warning: symbol 'host1x_context_device_bus_type' was not declared. Should it be static? Signed-off-by: Ben Dooks -- v2: - removed fixes line - changed to include into the c files directly --- drivers/gpu/host1x/context.c | 1 + drivers/gpu/host1x/context.h | 2 -- drivers/gpu/host1x/context_bus.c | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/host1x/context.c b/drivers/gpu/host1x/context.c index a6f6779662a3..476e8c5e1297 100644 --- a/drivers/gpu/host1x/context.c +++ b/drivers/gpu/host1x/context.c @@ -12,6 +12,7 @@ #include "context.h" #include "dev.h" +#include static void host1x_memory_context_release(struct device *dev) { diff --git a/drivers/gpu/host1x/context.h b/drivers/gpu/host1x/context.h index 3e03bc1d3bac..78bcf08cc90a 100644 --- a/drivers/gpu/host1x/context.h +++ b/drivers/gpu/host1x/context.h @@ -13,8 +13,6 @@ struct host1x; -extern struct bus_type host1x_context_device_bus_type; - struct host1x_memory_context_list { struct mutex lock; struct host1x_memory_context *devs; diff --git a/drivers/gpu/host1x/context_bus.c b/drivers/gpu/host1x/context_bus.c index 7cd0e1a5edd1..c0ba0433c686 100644 --- a/drivers/gpu/host1x/context_bus.c +++ b/drivers/gpu/host1x/context_bus.c @@ -5,6 +5,7 @@ #include #include +#include const struct bus_type host1x_context_device_bus_type = { .name = "host1x-context", -- 2.37.2.352.g3c44437643