Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9405309rwp; Thu, 20 Jul 2023 04:37:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlEkgrcQhialPRm/OmZjr8roKBXA0i/AV6Mc8ZR5AaWZO5aciwR0OtPLdLXO/4yOBj4fX0uZ X-Received: by 2002:a05:6358:3421:b0:134:e5ce:be2 with SMTP id h33-20020a056358342100b00134e5ce0be2mr5516540rwd.30.1689853053506; Thu, 20 Jul 2023 04:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689853053; cv=none; d=google.com; s=arc-20160816; b=ytqarBoQo4Inncl5g6+xP45T9UNBJwcS3zmi/YDMK72InhXdGHHc0/OGrbrxinQMoQ ZoekFkJPeFQ/r9ldOl0d3MpkM74x5fSGOs3LpqIC782vi9tinZDtq1s8DEg1h7x2wcdr i1XEv9tcNPu6GAha/+jc90yDE+FZiOC6hF25g3S09PuVriXGROK0XoGy/frX2maLZqF4 KZ7N7iAEvuOHf0PZKVRcYiuPojFDmcW/AGRGDbCdqGE9h+CmO4s5Lwm18gnFUT/j0vgC DLqrEhKZS/XVfrdiFvdZA30FXbTHVYX30RtzamPKKI+qFe4FDcbJAtvTWtquMjzCTsku mEdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:to:subject:message-id :date:from:in-reply-to:references:mime-version:dkim-signature; bh=INUSLZ3AedxaQO5DZhObDeo6IePhz7ADLrJ+4L6/YsI=; fh=yxXGqx2BMUrAB5tOgHl5TaeCyPi6IeMNPO63KXw0ObM=; b=dRit8hsBsvdwoX0AuTMzMDdWQXFE+0cOGfLs2IGr/9gAAY4uitlRnXYMzmMmlFndzS iW5US6j9TRPB48zmG5Dva6qk8Z4PYMKXkFH2F8jv9QaZKmAGb2CGPGA3uL6Jg7ylwyq8 ZkAR+Yjg6LsR2Qq/qnDvTAgp7sIjU4+3TcvZ+escdBUVz4RbyWhrrsoI6lqQLXqPK8Ds 5zB81Al7PzZN3S1fI4eE2xmk18+PRV6wSZiws/3+VyJDzvx4AmHhKlLmlkIwQBtVFAYI 04um6kHhenX86QBlTewdYVcQ/lZmkRX19+5fLa8E1goD6+CjuaZ8P7znvCu6E2QHwyLX dcNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EdRlFdjT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a62-20020a639041000000b0055b28f930a3si689549pge.546.2023.07.20.04.37.20; Thu, 20 Jul 2023 04:37:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EdRlFdjT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229821AbjGTKhW (ORCPT + 99 others); Thu, 20 Jul 2023 06:37:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjGTKhV (ORCPT ); Thu, 20 Jul 2023 06:37:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFA2910FC for ; Thu, 20 Jul 2023 03:37:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 57DFD61943 for ; Thu, 20 Jul 2023 10:37:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 974CDC433C8 for ; Thu, 20 Jul 2023 10:37:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689849439; bh=MmVgALAsrUuP5aBOhx/PxrX0BNHFsIr0eTeay0SopD0=; h=References:In-Reply-To:From:Date:Subject:To:From; b=EdRlFdjT2twhQBr1mJAIzPf9VCSiGHpkamkipuBVS+YKV2rAaYauY/Cb7iKvdWHIv TSKyxPwzlL9W0LaQelhKgbT598J/slaio0aKO74ckolFh+fyBxGmoY8pohngFvDwJf 74RfzMUZaZI/ylTd9DpolA/aGd1qjDyilV57j0m/ITC45uJ7L/V9Q0nY7VCq1kCg/Q Jbl/TakdpntNDif/Xp2sp9QZYoxdEO0yFA4pIA3Aczjl8OGqVituI87h6pLvKBqE3P sW9n+wHU5YELmcI707+20MHMK0MkcFTAXKc1owO70rhktC0sUaJsKyAzBH31dAeU48 2QCbEyvyy19iw== Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-76571dae5feso68728485a.1 for ; Thu, 20 Jul 2023 03:37:19 -0700 (PDT) X-Gm-Message-State: ABy/qLYbFbmLbVIeXa9mOyU5KBCPlWoxITsg1U9BHQKzbqj6gdZx4Czd kmVF4CtvnoJqPRZWVxnz7dMR7M+fo5ZQ0NobutQ= X-Received: by 2002:a05:620a:3942:b0:768:b699:1746 with SMTP id qs2-20020a05620a394200b00768b6991746mr3263095qkn.51.1689849438589; Thu, 20 Jul 2023 03:37:18 -0700 (PDT) MIME-Version: 1.0 References: <20230609120636.3969045-1-arnd@kernel.org> In-Reply-To: From: Oded Gabbay Date: Thu, 20 Jul 2023 13:36:52 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] accel/habanalabs: add more debugfs stub helpers To: Oded Gabbay , Tomer Tayar , Arnd Bergmann , Ohad Sharabi , Arnd Bergmann , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Dafna Hirschfeld , Ofir Bitton Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, Jul 20, 2023 at 1:29=E2=80=AFPM Daniel Vetter wro= te: > > On Sun, Jun 11, 2023 at 12:50:31PM +0300, Oded Gabbay wrote: > > On Fri, Jun 9, 2023 at 4:37=E2=80=AFPM Tomer Tayar w= rote: > > > > > > On 09/06/2023 15:06, Arnd Bergmann wrote: > > > > 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_in= it': > > > > drivers/accel/habanalabs/common/device.c:2177:14: error: implicit d= eclaration of function 'hl_debugfs_device_init'; did you mean 'hl_debugfs_i= nit'? [-Werror=3Dimplicit-function-declaration] > > > > drivers/accel/habanalabs/common/device.c:2305:9: error: implicit de= claration of function 'hl_debugfs_device_fini'; did you mean 'hl_debugfs_re= move_file'? [-Werror=3Dimplicit-function-declaration] > > > > > > > > Add stubs for these as well. > > > > > > > > Fixes: 553311fc7b76e ("accel/habanalabs: expose debugfs files later= ") > > > > Signed-off-by: Arnd Bergmann > > > > > > Thanks, > > > Reviewed-by: Tomer Tayar > > > > Thanks, > > Applied to -fixes. > > As requested applied to drm-fixes, hopeful for the next one your drm-misc > account issue is fixed. > -Daniel Thanks Daniel for the help. I also hope it will be fixed :) Oded > > > Oded > > > > > > > --- > > > > 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 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) > > > > { > > > > } > > > > > > > > +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) > > > > { > > > > } > > > > > > > > -- > Daniel Vetter > Software Engineer, Intel Corporation > http://blog.ffwll.ch