# git rev-parse -q --verify 748ea32d2dbd813d3bd958117bde5191182f909a^{commit} 748ea32d2dbd813d3bd958117bde5191182f909a already have revision, skipping fetch # git checkout -q -f -B kisskb 748ea32d2dbd813d3bd958117bde5191182f909a # git clean -qxdf # < git log -1 # commit 748ea32d2dbd813d3bd958117bde5191182f909a # Author: Nathan Chancellor # Date: Wed Feb 15 10:12:12 2023 -0700 # # macintosh: windfarm: Use unsigned type for 1-bit bitfields # # Clang warns: # # drivers/macintosh/windfarm_lm75_sensor.c:63:14: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] # lm->inited = 1; # ^ ~ # # drivers/macintosh/windfarm_smu_sensors.c:356:19: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] # pow->fake_volts = 1; # ^ ~ # drivers/macintosh/windfarm_smu_sensors.c:368:18: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] # pow->quadratic = 1; # ^ ~ # # There is no bug here since no code checks the actual value of these # fields, just whether or not they are zero (boolean context), but this # can be easily fixed by switching to an unsigned type. # # Signed-off-by: Nathan Chancellor # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20230215-windfarm-wsingle-bit-bitfield-constant-conversion-v1-1-26415072e855@kernel.org # < /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 748ea32d2dbd813d3bd958117bde5191182f909a # < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-next_52xx_cm5200_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- 52xx/cm5200_defconfig # < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-next_52xx_cm5200_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-next_52xx_cm5200_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-next_52xx_cm5200_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- Completed OK # rm -rf /kisskb/build/powerpc-next_52xx_cm5200_defconfig_powerpc-gcc5 # Build took: 0:00:52.642272