From nobody Sat Feb 7 13:41:39 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 929E5C7EE2E for ; Fri, 9 Jun 2023 12:07:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230199AbjFIMHg (ORCPT ); Fri, 9 Jun 2023 08:07:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231953AbjFIMHd (ORCPT ); Fri, 9 Jun 2023 08:07:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6A7A3C0E for ; Fri, 9 Jun 2023 05:06:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6B4B965546 for ; Fri, 9 Jun 2023 12:06:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02017C4339B; Fri, 9 Jun 2023 12:06:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686312401; bh=v6bBhjvR3wb5+zDe6fFJL1e6WRgLNxjq+2oxyd8st6Y=; h=From:To:Cc:Subject:Date:From; b=IaDDEPyDGRKU6NlO05JDn9LoTa7zqe31QHE4N8cTjytfZ25KdBh/JCOYo8W+8JUTu XelJjbZ7Ga6yJNqnlvkdggngIhSm9Co77MKLYBNNFwpO/DHqv9hkauc3yaCMLxIlr5 jnr+RXKU9nb2TX95kNMpk74Rq80n3ZKrZMfyYRa63hKFq0oGOJc9o3d5DG+trcxBzr wV2ugJk8lKARDu7M0r1DKF4j6dQTJgc5IIuWHkcO9KARo+n70IyJ6uyNZnv3Qk9khR XmRirtNoSFKEHL+sMhWkW/6JhW0zgJDGQ1w9vWib7rLSAl0KFIA5DZtcSVMJYvDTas f+ESmY7ADgARw== From: Arnd Bergmann To: Oded Gabbay , Tomer Tayar Cc: Arnd Bergmann , Ofir Bitton , Ohad Sharabi , Dafna Hirschfeld , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] accel/habanalabs: add more debugfs stub helpers Date: Fri, 9 Jun 2023 14:06:32 +0200 Message-Id: <20230609120636.3969045-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 functions got added with normal prototypes for debugfs, but not alternative when building without it: drivers/accel/habanalabs/common/device.c: In function 'hl_device_init': drivers/accel/habanalabs/common/device.c:2177:14: error: implicit declarati= on of function 'hl_debugfs_device_init'; did you mean 'hl_debugfs_init'? [-= Werror=3Dimplicit-function-declaration] drivers/accel/habanalabs/common/device.c:2305:9: error: implicit declaratio= n of function 'hl_debugfs_device_fini'; did you mean 'hl_debugfs_remove_fil= e'? [-Werror=3Dimplicit-function-declaration] Add stubs for these as well. Fixes: 553311fc7b76e ("accel/habanalabs: expose debugfs files later") Signed-off-by: Arnd Bergmann Reviewed-by: Tomer Tayar --- 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 d92ba2e30e310..2f027d5a82064 100644 --- a/drivers/accel/habanalabs/common/habanalabs.h +++ b/drivers/accel/habanalabs/common/habanalabs.h @@ -3980,6 +3980,15 @@ static inline void hl_debugfs_fini(void) { } =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