WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] tools/testing/selftests/arm64/tags/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files In file included from ../include/linux/bitops.h:7, from ../include/linux/kernel.h:23, from ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:9: ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_settime’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:70:9: note: in expansion of macro ‘spin_lock_irqsave’ 70 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_get_current_time’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:108:9: note: in expansion of macro ‘spin_lock_irqsave’ 108 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_gettimex’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:158:9: note: in expansion of macro ‘spin_lock_irqsave’ 158 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_adjphc’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:197:17: note: in expansion of macro ‘spin_lock_irqsave’ 197 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_adjtime’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:214:9: note: in expansion of macro ‘spin_lock_irqsave’ 214 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_adjfine’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:249:9: note: in expansion of macro ‘spin_lock_irqsave’ 249 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_pps_event’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:264:9: note: in expansion of macro ‘spin_lock_irqsave’ 264 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_get_target_cycles’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:406:9: note: in expansion of macro ‘spin_lock_irqsave’ 406 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_stamp_tx_skb’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:714:17: note: in expansion of macro ‘spin_lock_irqsave’ 714 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_ts_aux_work’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:770:17: note: in expansion of macro ‘spin_lock_irqsave’ 770 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_get_rx_ts_p5’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h:153:9: note: in expansion of macro ‘spin_lock_irqsave’ 153 | spin_lock_irqsave(&(ptp)->ptp_lock, flags); \ | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:816:9: note: in expansion of macro ‘BNXT_READ_TIME64’ 816 | BNXT_READ_TIME64(ptp, time, ptp->old_time); | ^~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_tx_ts_cmp’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:847:25: note: in expansion of macro ‘spin_lock_irqsave’ 847 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_init_rtc’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:1008:9: note: in expansion of macro ‘spin_lock_irqsave’ 1008 | spin_lock_irqsave(&bp->ptp_cfg->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_init’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:1080:17: note: in expansion of macro ‘spin_lock_irqsave’ 1080 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ In file included from ../include/linux/bitops.h:7, from ../include/linux/log2.h:12, from ../arch/x86/include/asm/div64.h:8, from ../include/linux/math.h:6, from ../include/linux/math64.h:6, from ../include/linux/time.h:6, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:11: ../drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function ‘bnxt_rx_pkt’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:2259:33: note: in expansion of macro ‘spin_lock_irqsave’ 2259 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function ‘bnxt_async_event_process’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:2767:33: note: in expansion of macro ‘spin_lock_irqsave’ 2767 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function ‘bnxt_force_fw_reset’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:13501:17: note: in expansion of macro ‘spin_lock_irqsave’ 13501 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function ‘bnxt_fw_reset’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:13570:25: note: in expansion of macro ‘spin_lock_irqsave’ 13570 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] tools/testing/selftests/arm64/tags/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] tools/testing/selftests/arm64/tags/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files In file included from ../include/linux/bitops.h:7, from ../include/linux/log2.h:12, from ../arch/x86/include/asm/div64.h:8, from ../include/linux/math.h:6, from ../include/linux/math64.h:6, from ../include/linux/time.h:6, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:11: ../drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function ‘bnxt_rx_pkt’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:2259:33: note: in expansion of macro ‘spin_lock_irqsave’ 2259 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function ‘bnxt_async_event_process’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:2767:33: note: in expansion of macro ‘spin_lock_irqsave’ 2767 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function ‘bnxt_force_fw_reset’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:13501:17: note: in expansion of macro ‘spin_lock_irqsave’ 13501 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function ‘bnxt_fw_reset’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:13570:25: note: in expansion of macro ‘spin_lock_irqsave’ 13570 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ In file included from ../include/linux/bitops.h:7, from ../include/linux/kernel.h:23, from ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:9: ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_settime’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:70:9: note: in expansion of macro ‘spin_lock_irqsave’ 70 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_get_current_time’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:108:9: note: in expansion of macro ‘spin_lock_irqsave’ 108 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_gettimex’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:158:9: note: in expansion of macro ‘spin_lock_irqsave’ 158 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_adjphc’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:197:17: note: in expansion of macro ‘spin_lock_irqsave’ 197 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_adjtime’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:214:9: note: in expansion of macro ‘spin_lock_irqsave’ 214 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_adjfine’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:249:9: note: in expansion of macro ‘spin_lock_irqsave’ 249 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_pps_event’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:264:9: note: in expansion of macro ‘spin_lock_irqsave’ 264 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_get_target_cycles’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:406:9: note: in expansion of macro ‘spin_lock_irqsave’ 406 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_stamp_tx_skb’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:714:17: note: in expansion of macro ‘spin_lock_irqsave’ 714 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_ts_aux_work’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:770:17: note: in expansion of macro ‘spin_lock_irqsave’ 770 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_get_rx_ts_p5’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h:153:9: note: in expansion of macro ‘spin_lock_irqsave’ 153 | spin_lock_irqsave(&(ptp)->ptp_lock, flags); \ | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:816:9: note: in expansion of macro ‘BNXT_READ_TIME64’ 816 | BNXT_READ_TIME64(ptp, time, ptp->old_time); | ^~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_tx_ts_cmp’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:847:25: note: in expansion of macro ‘spin_lock_irqsave’ 847 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_init_rtc’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:1008:9: note: in expansion of macro ‘spin_lock_irqsave’ 1008 | spin_lock_irqsave(&bp->ptp_cfg->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_init’: ../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 12 | (void)(&__dummy == &__dummy2); \ | ^~ ../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ 243 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ ../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:1080:17: note: in expansion of macro ‘spin_lock_irqsave’ 1080 | spin_lock_irqsave(&ptp->ptp_lock, flags); | ^~~~~~~~~~~~~~~~~ New errors added --- /tmp/tmp.QYAd6ox3UW 2024-10-15 12:06:41.235095676 -0700 +++ /tmp/tmp.5ftgV6LhIx 2024-10-15 12:07:48.419532179 -0700 @@ -13,0 +14,249 @@ +In file included from ../include/linux/bitops.h:7, + from ../include/linux/log2.h:12, + from ../arch/x86/include/asm/div64.h:8, + from ../include/linux/math.h:6, + from ../include/linux/math64.h:6, + from ../include/linux/time.h:6, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/ethernet/broadcom/bnxt/bnxt.c:11: +../drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function ‘bnxt_rx_pkt’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:2259:33: note: in expansion of macro ‘spin_lock_irqsave’ + 2259 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function ‘bnxt_async_event_process’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:2767:33: note: in expansion of macro ‘spin_lock_irqsave’ + 2767 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function ‘bnxt_force_fw_reset’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:13501:17: note: in expansion of macro ‘spin_lock_irqsave’ +13501 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function ‘bnxt_fw_reset’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt.c:13570:25: note: in expansion of macro ‘spin_lock_irqsave’ +13570 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +In file included from ../include/linux/bitops.h:7, + from ../include/linux/kernel.h:23, + from ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:9: +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_settime’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:70:9: note: in expansion of macro ‘spin_lock_irqsave’ + 70 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_get_current_time’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:108:9: note: in expansion of macro ‘spin_lock_irqsave’ + 108 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_gettimex’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:158:9: note: in expansion of macro ‘spin_lock_irqsave’ + 158 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_adjphc’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:197:17: note: in expansion of macro ‘spin_lock_irqsave’ + 197 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_adjtime’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:214:9: note: in expansion of macro ‘spin_lock_irqsave’ + 214 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_adjfine’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:249:9: note: in expansion of macro ‘spin_lock_irqsave’ + 249 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_pps_event’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:264:9: note: in expansion of macro ‘spin_lock_irqsave’ + 264 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_get_target_cycles’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:406:9: note: in expansion of macro ‘spin_lock_irqsave’ + 406 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_stamp_tx_skb’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:714:17: note: in expansion of macro ‘spin_lock_irqsave’ + 714 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_ts_aux_work’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:770:17: note: in expansion of macro ‘spin_lock_irqsave’ + 770 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_get_rx_ts_p5’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h:153:9: note: in expansion of macro ‘spin_lock_irqsave’ + 153 | spin_lock_irqsave(&(ptp)->ptp_lock, flags); \ + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:816:9: note: in expansion of macro ‘BNXT_READ_TIME64’ + 816 | BNXT_READ_TIME64(ptp, time, ptp->old_time); + | ^~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_tx_ts_cmp’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:847:25: note: in expansion of macro ‘spin_lock_irqsave’ + 847 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_init_rtc’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:1008:9: note: in expansion of macro ‘spin_lock_irqsave’ + 1008 | spin_lock_irqsave(&bp->ptp_cfg->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_init’: +../include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] + 12 | (void)(&__dummy == &__dummy2); \ + | ^~ +../include/linux/spinlock.h:243:17: note: in expansion of macro ‘typecheck’ + 243 | typecheck(unsigned long, flags); \ + | ^~~~~~~~~ +../include/linux/spinlock.h:381:9: note: in expansion of macro ‘raw_spin_lock_irqsave’ + 381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:1080:17: note: in expansion of macro ‘spin_lock_irqsave’ + 1080 | spin_lock_irqsave(&ptp->ptp_lock, flags); + | ^~~~~~~~~~~~~~~~~ Per-file breakdown --- /tmp/tmp.WzT241Snzt 2024-10-15 12:07:48.439532011 -0700 +++ /tmp/tmp.ff7grUb16d 2024-10-15 12:07:48.444531969 -0700 @@ -0,0 +1 @@ + 18 ../include/linux/typecheck.h