Re: [PATCH] habanalabs: change unused extern decl of hdev to forward decl of hl_device

2023-02-16 Thread Oded Gabbay
On Mon, Feb 13, 2023 at 9:12 AM Stanislaw Gruszka wrote: > > On Wed, Feb 08, 2023 at 07:54:50AM -0800, Tom Rix wrote: > > Building with clang W=2 has several similar warnings > > drivers/accel/habanalabs/common/decoder.c:46:51: error: declaration shadows > > a variable in the global scope

Re: [PATCH] habanalabs: change unused extern decl of hdev to forward decl of hl_device

2023-02-12 Thread Stanislaw Gruszka
On Wed, Feb 08, 2023 at 07:54:50AM -0800, Tom Rix wrote: > Building with clang W=2 has several similar warnings > drivers/accel/habanalabs/common/decoder.c:46:51: error: declaration shadows a > variable in the global scope [-Werror,-Wshadow] > static void dec_error_intr_work(struct hl_device

[PATCH] habanalabs: change unused extern decl of hdev to forward decl of hl_device

2023-02-08 Thread Tom Rix
Building with clang W=2 has several similar warnings drivers/accel/habanalabs/common/decoder.c:46:51: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] static void dec_error_intr_work(struct hl_device *hdev, u32 base_addr, u32 core_id)