Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2390210rdh; Wed, 27 Sep 2023 00:39:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGwy2U6FT76t90J5BbNKnoVRhWZr3jjY/xvmx4ZvpumjVsNUfwmbdzs0ZviSQNf6Agwsh8T X-Received: by 2002:a17:903:1247:b0:1c6:d88:dc07 with SMTP id u7-20020a170903124700b001c60d88dc07mr1554302plh.48.1695800340555; Wed, 27 Sep 2023 00:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695800340; cv=none; d=google.com; s=arc-20160816; b=rZCLigRkfqAos6ZE7WQFacU1Qr74dOfnslDwErusyZMlYREk8EHTRBumT1zVQdHOyc 0NdeOj73LSA0c6zIGeYaro0ogn7JnrTNE/RDtU3aDmvVMV1F1ZBYEFeIJtaKyCqqJ9cn JqKm7Vquwmu8jToGqS50K81tjkYjzj3n6cX5wJXLjt289PuLxYLKPPkFlpcNzWpVZeVL hgeUI5xilJ+yBgYruYMVdQBfkLSpChcFXWA19WiHtbvlZSOi0Skio4kB98Pq5ECvGwq5 xdR+6B+kIAp90M79So88JH3IVgC6WhsqE1HhokvCRPsgO+hukM8+1INn2wbObGq2ZpEj R0MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=p4Ys97iiP2JCsybg+p43JUs2G8mKEWDbPUUry/ymiVk=; fh=N6JXbKti4BEECAQ5b4Xkum7CrEDZ5mBMQLbLHVREIgY=; b=Tr0NHt2NR2fMNzcvMjrWSYy/0Hp90bx8vqtr26FwgQSvEW4v3vlwP5A65PEw76xPj7 sz6h+OBZlC7/bwNXzN1qaTTS06NmzWMeaWsbv+yCKzU+9YlXT64RgLU1xlFABBo59ImH R3OqYzvsEuqKZ4IFnWVPF8XbukvHwXDN+VXx05zPiL2YRYWQqR30GLQ9Y/dc/4KB3FCd B1+0FHyLgJ/JfhE8iYRb4xPQgs6eEsJCj1rDKKox7/piF3jl67+uQW9HiXLnkLU3A7HR NQeYeu2YNu6dkukmal1Sxehz0L3zPLcw0E7O06hW27o30PRJXuzRlldsWZDYxHagZSUL 2ZhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h0xpiHy+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id u16-20020a17090341d000b001c5bd811c46si6394749ple.581.2023.09.27.00.39.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 00:39:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h0xpiHy+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7FF90834A9D0; Wed, 27 Sep 2023 00:22:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229965AbjI0HWI (ORCPT + 99 others); Wed, 27 Sep 2023 03:22:08 -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: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 27 Sep 2023 00:22:11 -0700 (PDT) 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 declaration of function 'hl_debugfs_device_init'; did you mean 'drm_debugfs_dev_init'? [-Werror=implicit-function-declaration] 2231 | rc = hl_debugfs_device_init(hdev); drivers/accel/habanalabs/common/device.c:2367:9: error: implicit declaration of function 'hl_debugfs_device_fini'; did you mean 'hl_debugfs_remove_file'? [-Werror=implicit-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 accel device") Signed-off-by: Arnd Bergmann --- drivers/accel/habanalabs/common/habanalabs.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/accel/habanalabs/common/habanalabs.h b/drivers/accel/habanalabs/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 *hdev, char *data, #else +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) { } -- 2.39.2