lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZLkMjL8Aebipv4QR@phenom.ffwll.local>
Date:   Thu, 20 Jul 2023 12:29:32 +0200
From:   Daniel Vetter <daniel@...ll.ch>
To:     Oded Gabbay <ogabbay@...nel.org>
Cc:     Tomer Tayar <ttayar@...ana.ai>, Arnd Bergmann <arnd@...nel.org>,
        Ohad Sharabi <osharabi@...ana.ai>,
        Arnd Bergmann <arnd@...db.de>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
        Dafna Hirschfeld <dhirschfeld@...ana.ai>,
        Ofir Bitton <obitton@...ana.ai>
Subject: Re: [PATCH] accel/habanalabs: add more debugfs stub helpers

On Sun, Jun 11, 2023 at 12:50:31PM +0300, Oded Gabbay wrote:
> On Fri, Jun 9, 2023 at 4:37 PM Tomer Tayar <ttayar@...ana.ai> wrote:
> >
> > On 09/06/2023 15:06, Arnd Bergmann wrote:
> > > From: Arnd Bergmann <arnd@...db.de>
> > >
> > > 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 <arnd@...db.de>
> >
> > Thanks,
> > Reviewed-by: Tomer Tayar <ttayar@...ana.ai>
> 
> 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ