Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3069358rdh; Thu, 28 Sep 2023 01:18:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEn2q4OiRLx52wOBHS3yR5FeqYpmBlysX2ZoQDkg3lSHLFPld6zzt7yAdh9xvJ+OUR4hfc/ X-Received: by 2002:a17:90a:d718:b0:26d:fcd:89b3 with SMTP id y24-20020a17090ad71800b0026d0fcd89b3mr485272pju.8.1695889118926; Thu, 28 Sep 2023 01:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695889118; cv=none; d=google.com; s=arc-20160816; b=EgCpQaZb0BkReVSuzjguKe0EWDyS1YR5BlHnVuEgOyjgv6vjFZHXf5Z1SExgVN4/ch H+C4K8LXdP7jtkfjhuGFfS7XfqEb6sI0EQRm7vJIq9T490s+bOgg4yi5FFTxy6Goo6zu QyjUyAhLbtB0gzq0BOoCb0KD4DueI4T6gPaCd7uczRFiyDENjctGMGimPdxaZ3udm1LS Fyotbwye5QrmjyF33oMKFul9ECIGVze4d+vb3Ffmzno+upZKqBZaDHZM9C7JUudcHJR6 hZPjRHIYs3oW+hKLhCFKmZkj+CLyupt6dJ/YNPUVz5u8Ft2VF164nPGkU9mB1KVbrtTc OymA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0f3iK/OthHR/geQqy3ua8+XIakunn2Hpuk1GG4Q73SI=; fh=o6ffUs4MQWXb0zfbw4Y3N1/qSZIQrv7OGl2uNByLUTw=; b=n8QlqMwF5rG7oxqt51buMy9KTg58X9Prkmgi9SHWA0M9sMPMAc3nDroePy8guKauQj 4MF8mg9YeKGVhF9oocIqX7r9xqI5YjH9uH8dGh9jI4S4RPLl+I3iUGiadXjEkvlG5y8w txF6bzwQm+D4kr/j6KaMjsdL/qXeKw5+H+edog9YJEgyEwrMgYSURbNtQ+QDb35WyNxb X/B7AP7ykBsn80AG3R7BsCXmRunY/INi47Y5omkg7vmJDf14hxZ0tgHnSc0PS/Y7m2Y2 0jzr/G4dy1mKAiow09QQ4HNy3GgKiyModdumpVu735SwbT7ufNxm5H/QDuvRW9z8bHTC JCxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VuXe9jKa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m8-20020a17090a4d8800b00274e2ba0ca6si19310071pjh.134.2023.09.28.01.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 01:18:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VuXe9jKa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id B8E5E801B911; Thu, 28 Sep 2023 01:07:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230338AbjI1IFn (ORCPT + 99 others); Thu, 28 Sep 2023 04:05:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230496AbjI1IFF (ORCPT ); Thu, 28 Sep 2023 04:05:05 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BA6599 for ; Thu, 28 Sep 2023 01:05:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 168A3C433CB for ; Thu, 28 Sep 2023 08:05:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695888303; bh=PoJNxjIqib27skFPg1Iq3N3WLP/CrJV5nudnKtbDPII=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VuXe9jKaBVlnTHa/2G75UOXO9ObpSJYL818KAAjc7/ZIr3CqqYrJI6ZTWcRupUPx3 y+emRukG/NHHEJVGj91EPb2ZNwqGWIDVhpPQDyCJS3HXr0s1Qea/5S/pT9YjG7QTG0 Ihqjs/uCh+g/8Im1DhUSayquqwk6kTb7+iWZZccdr05Ot7Fd6Wn0qR0qPNEdAaGVLz dDTDgWFM9u3Evmwf7BiahzB7rrfBs/s9I3Bk+T+SGCAw2DySqWYmIQd389dgAWe/xR XK3b5Fx5UteWvBnHLfwu6VMgnshwLh49gal1Q3iSKgrLhMqDiNsAufq3bEKOnr7+mi ULI+4Plms0T2Q== Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-5a1d0fee86aso85992157b3.2 for ; Thu, 28 Sep 2023 01:05:03 -0700 (PDT) X-Gm-Message-State: AOJu0YyFftMPC4AbGWQ7BdxphKJAHCklryX1tCeBLQoDBn+reaXWWRxc YTuJcvph9p2Zb4Mv9iF9Wfw2qNJrnzSAm0q6S04= X-Received: by 2002:a81:7cc5:0:b0:599:da80:e1e4 with SMTP id x188-20020a817cc5000000b00599da80e1e4mr338729ywc.30.1695888302208; Thu, 28 Sep 2023 01:05:02 -0700 (PDT) MIME-Version: 1.0 References: <20230927072157.2544601-1-arnd@kernel.org> In-Reply-To: <20230927072157.2544601-1-arnd@kernel.org> From: Oded Gabbay Date: Thu, 28 Sep 2023 11:04:35 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] accel/habanalabs: add missing debugfs function stubs To: Arnd Bergmann Cc: Tomer Tayar , Arnd Bergmann , Ofir Bitton , Stanislaw Gruszka , Ohad Sharabi , Dafna Hirschfeld , farah kassabri , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Thu, 28 Sep 2023 01:07:25 -0700 (PDT) On Wed, Sep 27, 2023 at 10:22=E2=80=AFAM Arnd Bergmann wr= ote: > > 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 declara= tion of function 'hl_debugfs_device_init'; did you mean 'drm_debugfs_dev_in= it'? [-Werror=3Dimplicit-function-declaration] > 2231 | rc =3D hl_debugfs_device_init(hdev); > drivers/accel/habanalabs/common/device.c:2367:9: error: implicit declarat= ion of function 'hl_debugfs_device_fini'; did you mean 'hl_debugfs_remove_f= ile'? [-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 ac= cel 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 *h= dev, 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 > Reviewed-by: Oded Gabbay Applied to -next Thanks, Oded