On Mon, 2024-04-29 at 14:49 +0530, MD Danish Anwar wrote:
> This patch seems to be breaking latest linux-next (tag: next-20240429).
> While building kernel for arm64 on latest linux-next with defconfig, I
> see build failure with below error.
> 
> ❯ make -j$(nproc) ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu-
> 
>   CALL    scripts/checksyscalls.sh
>   CC [M]  drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.o
> drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c: In function
> ‘build_registry’:
> drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c:1266:3: error: label at
> end of compound statement
>  1266 |   default:
>       |   ^~~~~~~
> make[6]: *** [scripts/Makefile.build:244:
> drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.o] Error 1

I've been writing C code for 30 years, and I can't remember ever seeing this
compiler compaint.

        default:
        }

Seems normal to me, and it doesn't fail on x86.  Try adding a "break;" between
the two lines.

Reply via email to