Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9350346rwp; Thu, 20 Jul 2023 03:44:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlGuIyx9IYwlpRKGXDzI2NXBDLA54mqX+L0KSqa7mw9Parr4oBhm/fZjAFSVUluhFsJ0C/oL X-Received: by 2002:a05:6512:10cd:b0:4f8:711b:18b0 with SMTP id k13-20020a05651210cd00b004f8711b18b0mr2293783lfg.3.1689849843105; Thu, 20 Jul 2023 03:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689849843; cv=none; d=google.com; s=arc-20160816; b=m6VAKZ8DBUPbOVasdI0as5qnUpe2tzt7YEH5/zJFmvEFKF8SbHwRe62ZSkmiHF1I0h sOC++U3kz5q1M/2xrg9WDUppATVVUm8d0SXqH1W+WTtssS39DXJGRGL906UIa3jb/7Ga msWop3dwr/r6NtW7ItjebTnVM6BQLsuFQ1erp5OEbiKOcA4cNgejhGOfrbvum71Zqd0W VntFAnpUV+XNYQjRIiux0+37oWUNJ/qo63/VZx8YUP+ssJyn3cOwYZH4YkRjZIqizS/1 OH8C4LQUjEg2biDs56c2e4N+gpAwHqk39EK3drv3KyI081ubhEBAKVQtpnX4VW/pIFCx 6jyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=55ldkBN7Z9rmeZAoOny3CqxP4h68H/R8XHjCRpEpvaM=; fh=oVRuzRgsMRAgO3qK6WvL/cYI6yYOlXCrMLoD6yDPCXc=; b=U29+nEyqBUOWqGnrjBHfHBNtOhpdxOZiFSSNIhXSZKtzPfRaylkffm8nfd1rTY2rQ1 TXdA2pYDcsbIohsXKiAspPo4qiy91RTJPXfZyIzft2fRTUwhr7XzfXLNz0cRw+Xd4KNL TCjib0n0iKmc0WVxwKdcJKXF//UFiHyWZRLFNq8MyTL4WH7L4vELeEKloFH3wfP4lypi 7kNIyk+QAq23vP+5J006JU4Kb6P2SYWLX1SA31shfcYNdIt4h8Tgh5vVW4hoVmNJEGbV AQCBAmOQ0eSmJxBMovkFDg5OAzQmRYJHsMMm7WY52xuOJ7FpFHaOW+pxCSP555RN4RyS PJOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="To/aqJ+A"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020a170906828300b00978ae651cacsi559983ejx.0.2023.07.20.03.43.38; Thu, 20 Jul 2023 03:44:03 -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=@ffwll.ch header.s=google header.b="To/aqJ+A"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231344AbjGTK3q (ORCPT + 99 others); Thu, 20 Jul 2023 06:29:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231370AbjGTK3l (ORCPT ); Thu, 20 Jul 2023 06:29:41 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 289FF199A for ; Thu, 20 Jul 2023 03:29:36 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fbb634882dso1043495e9.0 for ; Thu, 20 Jul 2023 03:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; t=1689848975; x=1690453775; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:from:to:cc:subject:date:message-id:reply-to; bh=55ldkBN7Z9rmeZAoOny3CqxP4h68H/R8XHjCRpEpvaM=; b=To/aqJ+AR8e5dWEecXLmVyKzJv7p/eXCLLd8C+JTITCgvgX10gO3bPy9mTfjfApmKC pxsQe0Zi0t9ZTJKAnnPaXOSY+2KgC+undQtxxu7OXKGlWVpCoprWFOsxf+W4mnSLiDLC pAgi2NsmcZku6fKLA/jCVUWBjUWpmQMelRwLE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689848975; x=1690453775; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=55ldkBN7Z9rmeZAoOny3CqxP4h68H/R8XHjCRpEpvaM=; b=MZZHa6dXJ3m/J8j9gm2qWVDthDjrTsMzaqE2jLeaA/zVb8Lmyh4/ClyOzv/PzQ+51L syWIUE7vj99V3HVm6/QehPUViTCOV3Zsms/jUrt4x2UYDktSHe1TY8yUcY7QrnfaFWIs tGQ/sOgmFCkRMtI4TBg752u3vSFjy3ZhaerdjAbnlUwg/ACUnZ50GoAYmxgwvTwK1d09 X6b3Y6MyYy+nsjqxmOKkvgArXXlWj6ZeBXADslpoCj9I5Rv0zEONc7jQ1oh+zL56D74o uEqAPeS2bDJoXs6MC7D2C9C5eaH50m+ep5idxWdNsTlxU72jDuorFr3wl0DepEM8389e oUcw== X-Gm-Message-State: ABy/qLYlFAWDo8vd/qe/kBSb+64uFS7vGJZ2XQNvqjXe0ZTdq4zg4z5k n5sEks4KmOb8LsKSHKaArddIFUEJCVw/iSA0qTc= X-Received: by 2002:a05:600c:354f:b0:3fa:9587:8fc1 with SMTP id i15-20020a05600c354f00b003fa95878fc1mr1968458wmq.1.1689848974989; Thu, 20 Jul 2023 03:29:34 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id f14-20020a7bcd0e000000b003fc01f7b415sm3582137wmj.39.2023.07.20.03.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 03:29:34 -0700 (PDT) Date: Thu, 20 Jul 2023 12:29:32 +0200 From: Daniel Vetter To: Oded Gabbay Cc: Tomer Tayar , Arnd Bergmann , Ohad Sharabi , Arnd Bergmann , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Dafna Hirschfeld , Ofir Bitton Subject: Re: [PATCH] accel/habanalabs: add more debugfs stub helpers Message-ID: Mail-Followup-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 References: <20230609120636.3969045-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: Linux phenom 6.3.0-2-amd64 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,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 Sun, Jun 11, 2023 at 12:50:31PM +0300, Oded Gabbay wrote: > On Fri, Jun 9, 2023 at 4:37 PM Tomer Tayar wrote: > > > > 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_init': > > > drivers/accel/habanalabs/common/device.c:2177:14: error: implicit declaration of function 'hl_debugfs_device_init'; did you mean 'hl_debugfs_init'? [-Werror=implicit-function-declaration] > > > drivers/accel/habanalabs/common/device.c:2305:9: error: implicit declaration of function 'hl_debugfs_device_fini'; did you mean 'hl_debugfs_remove_file'? [-Werror=implicit-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 > 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