From nobody Fri Feb 13 08:16:31 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECB23E80A9E for ; Wed, 27 Sep 2023 07:22:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229992AbjI0HWK (ORCPT ); Wed, 27 Sep 2023 03:22:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbjI0HWE (ORCPT ); Wed, 27 Sep 2023 03:22:04 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 453E510E for ; Wed, 27 Sep 2023 00:22:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADB79C433C7; Wed, 27 Sep 2023 07:22:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695799322; bh=m5nfXz80AWeNtcIS3xT2eMv/ZWCdRSi9WrXYqrxYqO8=; h=From:To:Cc:Subject:Date:From; b=h0xpiHy+ZovLsv2A6p13vmT/0h9gFwVFLq8EgBzJpTut0o8awrM7l08zbXFDqu90t Cro4MYvgyiv/X6qvHRpDmasv6bbfVEvFNjbP08ZdAn15c61yBC75Kip4qcRKwwbNM/ bSmmOEpMucRdNp4AJ7iGKoZ79+3jsxkc5UqoMVUXlbX6VeDKU9klN8y8NAWCdkWVXl sBs27S64ZOi/BoGohFFsAH5Qbtv1lVZWDvSOPrYuj0Cdy/cDvlJMvQUxszNqgNoLhp vjTzyGmzJetND31JIX8VIQdXUzcy+eZce1ci7rRiVLJ3KDia2KUvvzRZlFA2Wxs1eV pW4G4OoH7m0dA== From: Arnd Bergmann To: Oded Gabbay , Tomer Tayar Cc: Arnd Bergmann , Ofir Bitton , Stanislaw Gruszka , Ohad Sharabi , Dafna Hirschfeld , farah kassabri , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] accel/habanalabs: add missing debugfs function stubs Date: Wed, 27 Sep 2023 09:21:53 +0200 Message-Id: <20230927072157.2544601-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann Two function stubs were removed in an earlier commit but are now needed again: drivers/accel/habanalabs/common/device.c: In function 'hl_device_init': drivers/accel/habanalabs/common/device.c:2231:14: error: implicit declarati= on of function 'hl_debugfs_device_init'; did you mean 'drm_debugfs_dev_init= '? [-Werror=3Dimplicit-function-declaration] 2231 | rc =3D hl_debugfs_device_init(hdev); drivers/accel/habanalabs/common/device.c:2367:9: error: implicit declaratio= n of function 'hl_debugfs_device_fini'; did you mean 'hl_debugfs_remove_fil= e'? [-Werror=3Dimplicit-function-declaration] 2367 | hl_debugfs_device_fini(hdev); | ^~~~~~~~~~~~~~~~~~~~~~ Fixes: 3b9abb4fa642e ("accel/habanalabs: expose debugfs files later") Fixes: 09fe78d2e4421 ("accel/habanalabs: register compute device as an acce= l device") Signed-off-by: Arnd Bergmann Reviewed-by: Oded Gabbay --- drivers/accel/habanalabs/common/habanalabs.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/accel/habanalabs/common/habanalabs.h b/drivers/accel/h= abanalabs/common/habanalabs.h index 2a3acdbf91714..1655c101c7052 100644 --- a/drivers/accel/habanalabs/common/habanalabs.h +++ b/drivers/accel/habanalabs/common/habanalabs.h @@ -4041,6 +4041,15 @@ void hl_debugfs_set_state_dump(struct hl_device *hde= v, char *data, =20 #else =20 +static inline int hl_debugfs_device_init(struct hl_device *hdev) +{ + return 0; +} + +static inline void hl_debugfs_device_fini(struct hl_device *hdev) +{ +} + static inline void hl_debugfs_add_device(struct hl_device *hdev) { } --=20 2.39.2