# git rev-parse -q --verify 3ca706c189db861b2ca2019a0901b94050ca49d8^{commit} 3ca706c189db861b2ca2019a0901b94050ca49d8 already have revision, skipping fetch # git checkout -q -f -B kisskb 3ca706c189db861b2ca2019a0901b94050ca49d8 # git clean -qxdf # < git log -1 # commit 3ca706c189db861b2ca2019a0901b94050ca49d8 # Author: Huang Rui # Date: Tue Sep 7 18:03:02 2021 +0800 # # drm/ttm: fix type mismatch error on sparc64 # # On sparc64, __fls() returns an "int", but the drm TTM code expected it # to be "unsigned long" as on x86. As a result, on sparc (and arc, and # m68k) you get build errors because 'min()' checks that the types match. # # As suggested by Linus, it can use min_t instead of min to force the type # to be "unsigned int". # # Suggested-by: Linus Torvalds # Signed-off-by: Huang Rui # Reviewed-by: Christian König # Cc: Alex Deucher # Cc: David Airlie # Cc: Daniel Vetter # Cc: Guenter Roeck # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 3ca706c189db861b2ca2019a0901b94050ca49d8 # < make -s -j 32 ARCH=powerpc O=/kisskb/build/linus_skiroot_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- skiroot_defconfig # < make -s -j 32 ARCH=powerpc O=/kisskb/build/linus_skiroot_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 32 ARCH=powerpc O=/kisskb/build/linus_skiroot_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/linus_skiroot_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_sli4_driver_resource_setup': /kisskb/src/drivers/scsi/lpfc/lpfc_init.c:8280:28: error: 'struct lpfc_sli4_hba' has no member named 'c_stat' free_percpu(phba->sli4_hba.c_stat); ^ make[4]: *** [/kisskb/src/scripts/Makefile.build:277: drivers/scsi/lpfc/lpfc_init.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [/kisskb/src/scripts/Makefile.build:540: drivers/scsi/lpfc] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:540: drivers/scsi] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:1868: drivers] Error 2 make: *** [Makefile:219: __sub-make] Error 2 Command 'make -s -j 32 ARCH=powerpc O=/kisskb/build/linus_skiroot_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus_skiroot_defconfig_powerpc-gcc5 # Build took: 0:01:53.038665