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/run_tags_test.sh: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/config: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/settings: warning: ignored by one of the .gitignore files ../drivers/net/ethernet/intel/ice/ice_ptp_hw.c:868:13: warning: context imbalance in 'ice_ptp_exec_tmr_cmd' - wrong count at exit ../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_get_ctrl_pf’: ../drivers/net/ethernet/intel/ice/ice_ptp.c:21:49: error: ‘struct ice_adapter’ has no member named ‘ctrl_pf’ 21 | return !pf->adapter ? NULL : pf->adapter->ctrl_pf; | ^~ ../drivers/net/ethernet/intel/ice/ice_ptp.c: At top level: ../drivers/net/ethernet/intel/ice/ice_ptp.c:24:24: warning: ‘ice_get_ctrl_ptp’ defined but not used [-Wunused-function] 24 | static struct ice_ptp *ice_get_ctrl_ptp(struct ice_pf *pf) | ^~~~~~~~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:244: drivers/net/ethernet/intel/ice/ice_ptp.o] Error 1 make[7]: *** [../scripts/Makefile.build:485: drivers/net/ethernet/intel/ice] Error 2 make[6]: *** [../scripts/Makefile.build:485: drivers/net/ethernet/intel] Error 2 make[5]: *** [../scripts/Makefile.build:485: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:485: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:485: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1934: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:240: __sub-make] Error 2 make: *** [Makefile:240: __sub-make] Error 2 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/run_tags_test.sh: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/config: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/settings: warning: ignored by one of the .gitignore files In file included from ../include/linux/container_of.h:5, from ../include/linux/kernel.h:22, from ../drivers/net/ethernet/intel/ice/ice.h:9, from ../drivers/net/ethernet/intel/ice/ice_ptp.c:4: ../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_aux_dev_to_aux_pf’: ../include/linux/container_of.h:20:54: error: ‘struct ice_ptp_port’ has no member named ‘aux_dev’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2884:20: note: in expansion of macro ‘container_of’ 2884 | aux_port = container_of(aux_dev, struct ice_ptp_port, aux_dev); | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:451:27: error: expression in static assertion is not an integer 451 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2884:20: note: in expansion of macro ‘container_of’ 2884 | aux_port = container_of(aux_dev, struct ice_ptp_port, aux_dev); | ^~~~~~~~~~~~ In file included from ../include/uapi/linux/posix_types.h:5, from ../include/uapi/linux/types.h:14, from ../include/linux/types.h:6, from ../drivers/net/ethernet/intel/ice/ice.h:7: ../include/linux/stddef.h:16:33: error: ‘struct ice_ptp_port’ has no member named ‘aux_dev’ 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ ../include/linux/container_of.h:23:28: note: in expansion of macro ‘offsetof’ 23 | ((type *)(__mptr - offsetof(type, member))); }) | ^~~~~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2884:20: note: in expansion of macro ‘container_of’ 2884 | aux_port = container_of(aux_dev, struct ice_ptp_port, aux_dev); | ^~~~~~~~~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_aux_dev_to_owner_pf’: ../include/linux/container_of.h:20:54: error: invalid use of undefined type ‘struct ice_ptp_port_owner’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2905:23: note: in expansion of macro ‘container_of’ 2905 | ports_owner = container_of(aux_drv, struct ice_ptp_port_owner, | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:451:27: error: expression in static assertion is not an integer 451 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2905:23: note: in expansion of macro ‘container_of’ 2905 | ports_owner = container_of(aux_drv, struct ice_ptp_port_owner, | ^~~~~~~~~~~~ ../include/linux/stddef.h:16:33: error: invalid use of undefined type ‘struct ice_ptp_port_owner’ 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ ../include/linux/container_of.h:23:28: note: in expansion of macro ‘offsetof’ 23 | ((type *)(__mptr - offsetof(type, member))); }) | ^~~~~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2905:23: note: in expansion of macro ‘container_of’ 2905 | ports_owner = container_of(aux_drv, struct ice_ptp_port_owner, | ^~~~~~~~~~~~ ../include/linux/container_of.h:20:54: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~ ../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2907:21: note: in expansion of macro ‘container_of’ 2907 | owner_ptp = container_of(ports_owner, struct ice_ptp, ports_owner); | ^~~~~~~~~~~~ ./../include/linux/compiler_types.h:451:27: error: expression in static assertion is not an integer 451 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ ../include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ ../include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2907:21: note: in expansion of macro ‘container_of’ 2907 | owner_ptp = container_of(ports_owner, struct ice_ptp, ports_owner); | ^~~~~~~~~~~~ ../include/linux/stddef.h:16:33: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ ../include/linux/container_of.h:23:28: note: in expansion of macro ‘offsetof’ 23 | ((type *)(__mptr - offsetof(type, member))); }) | ^~~~~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2907:21: note: in expansion of macro ‘container_of’ 2907 | owner_ptp = container_of(ports_owner, struct ice_ptp, ports_owner); | ^~~~~~~~~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_auxbus_probe’: ../drivers/net/ethernet/intel/ice/ice_ptp.c:2925:41: error: ‘struct ice_ptp_port’ has no member named ‘list_member’ 2925 | INIT_LIST_HEAD(&aux_pf->ptp.port.list_member); | ^ In file included from ../include/linux/seqlock.h:19, from ../include/linux/mmzone.h:17, from ../include/linux/gfp.h:7, from ../include/linux/umh.h:4, from ../include/linux/kmod.h:9, from ../include/linux/module.h:17, from ../drivers/net/ethernet/intel/ice/ice.h:10: ../drivers/net/ethernet/intel/ice/ice_ptp.c:2926:34: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ 2926 | mutex_lock(&owner_pf->ptp.ports_owner.lock); | ^ ../include/linux/mutex.h:161:44: note: in definition of macro ‘mutex_lock’ 161 | #define mutex_lock(lock) mutex_lock_nested(lock, 0) | ^~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2927:35: error: ‘struct ice_ptp_port’ has no member named ‘list_member’ 2927 | list_add(&aux_pf->ptp.port.list_member, | ^ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2928:32: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ 2928 | &owner_pf->ptp.ports_owner.ports); | ^ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2929:36: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ 2929 | mutex_unlock(&owner_pf->ptp.ports_owner.lock); | ^ ../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_auxbus_remove’: ../drivers/net/ethernet/intel/ice/ice_ptp.c:2943:34: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ 2943 | mutex_lock(&owner_pf->ptp.ports_owner.lock); | ^ ../include/linux/mutex.h:161:44: note: in definition of macro ‘mutex_lock’ 161 | #define mutex_lock(lock) mutex_lock_nested(lock, 0) | ^~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2944:35: error: ‘struct ice_ptp_port’ has no member named ‘list_member’ 2944 | list_del(&aux_pf->ptp.port.list_member); | ^ ../drivers/net/ethernet/intel/ice/ice_ptp.c:2945:36: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ 2945 | mutex_unlock(&owner_pf->ptp.ports_owner.lock); | ^ ../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_register_auxbus_driver’: ../drivers/net/ethernet/intel/ice/ice_ptp.c:3014:26: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ 3014 | aux_driver = &ptp->ports_owner.aux_driver; | ^~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:3015:28: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ 3015 | INIT_LIST_HEAD(&ptp->ports_owner.ports); | ^~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:3016:24: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ 3016 | mutex_init(&ptp->ports_owner.lock); | ^~ ../include/linux/mutex.h:65:23: note: in definition of macro ‘mutex_init’ 65 | __mutex_init((mutex), #mutex, &__key); \ | ^~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_unregister_auxbus_driver’: ../drivers/net/ethernet/intel/ice/ice_ptp.c:3049:55: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ 3049 | struct auxiliary_driver *aux_driver = &pf->ptp.ports_owner.aux_driver; | ^ ../drivers/net/ethernet/intel/ice/ice_ptp.c:3054:31: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ 3054 | mutex_destroy(&pf->ptp.ports_owner.lock); | ^ ../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_create_auxbus_device’: ../drivers/net/ethernet/intel/ice/ice_ptp.c:3228:29: error: ‘struct ice_ptp_port’ has no member named ‘aux_dev’ 3228 | aux_dev = &ptp->port.aux_dev; | ^ ../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_remove_auxbus_device’: ../drivers/net/ethernet/intel/ice/ice_ptp.c:3264:57: error: ‘struct ice_ptp_port’ has no member named ‘aux_dev’ 3264 | struct auxiliary_device *aux_dev = &pf->ptp.port.aux_dev; | ^ ../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_init’: ../drivers/net/ethernet/intel/ice/ice_ptp.c:3355:17: error: label ‘err’ used but not defined 3355 | goto err; | ^~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c: At top level: ../drivers/net/ethernet/intel/ice/ice_ptp.c:3262:13: warning: ‘ice_ptp_remove_auxbus_device’ defined but not used [-Wunused-function] 3262 | static void ice_ptp_remove_auxbus_device(struct ice_pf *pf) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/intel/ice/ice_ptp.c:3047:13: warning: ‘ice_ptp_unregister_auxbus_driver’ defined but not used [-Wunused-function] 3047 | static void ice_ptp_unregister_auxbus_driver(struct ice_pf *pf) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:244: drivers/net/ethernet/intel/ice/ice_ptp.o] Error 1 make[8]: *** Waiting for unfinished jobs.... ../drivers/net/ethernet/intel/ice/ice_ptp_hw.c:868:13: warning: context imbalance in 'ice_ptp_exec_tmr_cmd' - wrong count at exit make[7]: *** [../scripts/Makefile.build:485: drivers/net/ethernet/intel/ice] Error 2 make[6]: *** [../scripts/Makefile.build:485: drivers/net/ethernet/intel] Error 2 make[5]: *** [../scripts/Makefile.build:485: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:485: drivers/net] Error 2 make[3]: *** [../scripts/Makefile.build:485: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1934: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:240: __sub-make] Error 2 make: *** [Makefile:240: __sub-make] Error 2 New errors added --- /tmp/tmp.0nMH2eCcG4 2024-06-26 06:30:33.250655394 -0700 +++ /tmp/tmp.9J7jf8awRQ 2024-06-26 06:30:48.305976586 -0700 @@ -9,5 +9,198 @@ -../drivers/net/ethernet/intel/ice/ice_ptp_hw.c:868:13: warning: context imbalance in 'ice_ptp_exec_tmr_cmd' - wrong count at exit -../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_get_ctrl_pf’: -../drivers/net/ethernet/intel/ice/ice_ptp.c:21:49: error: ‘struct ice_adapter’ has no member named ‘ctrl_pf’ - 21 | return !pf->adapter ? NULL : pf->adapter->ctrl_pf; - | ^~ +In file included from ../include/linux/container_of.h:5, + from ../include/linux/kernel.h:22, + from ../drivers/net/ethernet/intel/ice/ice.h:9, + from ../drivers/net/ethernet/intel/ice/ice_ptp.c:4: +../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_aux_dev_to_aux_pf’: +../include/linux/container_of.h:20:54: error: ‘struct ice_ptp_port’ has no member named ‘aux_dev’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~ +../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ + 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) + | ^~~~ +../include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~~~~~~~~~~~~ +../include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~~~~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2884:20: note: in expansion of macro ‘container_of’ + 2884 | aux_port = container_of(aux_dev, struct ice_ptp_port, aux_dev); + | ^~~~~~~~~~~~ +./../include/linux/compiler_types.h:451:27: error: expression in static assertion is not an integer + 451 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ + 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) + | ^~~~ +../include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~~~~~~~~~~~~ +../include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~~~~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2884:20: note: in expansion of macro ‘container_of’ + 2884 | aux_port = container_of(aux_dev, struct ice_ptp_port, aux_dev); + | ^~~~~~~~~~~~ +In file included from ../include/uapi/linux/posix_types.h:5, + from ../include/uapi/linux/types.h:14, + from ../include/linux/types.h:6, + from ../drivers/net/ethernet/intel/ice/ice.h:7: +../include/linux/stddef.h:16:33: error: ‘struct ice_ptp_port’ has no member named ‘aux_dev’ + 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/container_of.h:23:28: note: in expansion of macro ‘offsetof’ + 23 | ((type *)(__mptr - offsetof(type, member))); }) + | ^~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2884:20: note: in expansion of macro ‘container_of’ + 2884 | aux_port = container_of(aux_dev, struct ice_ptp_port, aux_dev); + | ^~~~~~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_aux_dev_to_owner_pf’: +../include/linux/container_of.h:20:54: error: invalid use of undefined type ‘struct ice_ptp_port_owner’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~ +../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ + 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) + | ^~~~ +../include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~~~~~~~~~~~~ +../include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~~~~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2905:23: note: in expansion of macro ‘container_of’ + 2905 | ports_owner = container_of(aux_drv, struct ice_ptp_port_owner, + | ^~~~~~~~~~~~ +./../include/linux/compiler_types.h:451:27: error: expression in static assertion is not an integer + 451 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ + 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) + | ^~~~ +../include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~~~~~~~~~~~~ +../include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~~~~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2905:23: note: in expansion of macro ‘container_of’ + 2905 | ports_owner = container_of(aux_drv, struct ice_ptp_port_owner, + | ^~~~~~~~~~~~ +../include/linux/stddef.h:16:33: error: invalid use of undefined type ‘struct ice_ptp_port_owner’ + 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/container_of.h:23:28: note: in expansion of macro ‘offsetof’ + 23 | ((type *)(__mptr - offsetof(type, member))); }) + | ^~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2905:23: note: in expansion of macro ‘container_of’ + 2905 | ports_owner = container_of(aux_drv, struct ice_ptp_port_owner, + | ^~~~~~~~~~~~ +../include/linux/container_of.h:20:54: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~ +../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ + 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) + | ^~~~ +../include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~~~~~~~~~~~~ +../include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~~~~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2907:21: note: in expansion of macro ‘container_of’ + 2907 | owner_ptp = container_of(ports_owner, struct ice_ptp, ports_owner); + | ^~~~~~~~~~~~ +./../include/linux/compiler_types.h:451:27: error: expression in static assertion is not an integer + 451 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’ + 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) + | ^~~~ +../include/linux/container_of.h:20:9: note: in expansion of macro ‘static_assert’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~~~~~~~~~~~~ +../include/linux/container_of.h:20:23: note: in expansion of macro ‘__same_type’ + 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ + | ^~~~~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2907:21: note: in expansion of macro ‘container_of’ + 2907 | owner_ptp = container_of(ports_owner, struct ice_ptp, ports_owner); + | ^~~~~~~~~~~~ +../include/linux/stddef.h:16:33: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ + 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) + | ^~~~~~~~~~~~~~~~~~ +../include/linux/container_of.h:23:28: note: in expansion of macro ‘offsetof’ + 23 | ((type *)(__mptr - offsetof(type, member))); }) + | ^~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2907:21: note: in expansion of macro ‘container_of’ + 2907 | owner_ptp = container_of(ports_owner, struct ice_ptp, ports_owner); + | ^~~~~~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_auxbus_probe’: +../drivers/net/ethernet/intel/ice/ice_ptp.c:2925:41: error: ‘struct ice_ptp_port’ has no member named ‘list_member’ + 2925 | INIT_LIST_HEAD(&aux_pf->ptp.port.list_member); + | ^ +In file included from ../include/linux/seqlock.h:19, + from ../include/linux/mmzone.h:17, + from ../include/linux/gfp.h:7, + from ../include/linux/umh.h:4, + from ../include/linux/kmod.h:9, + from ../include/linux/module.h:17, + from ../drivers/net/ethernet/intel/ice/ice.h:10: +../drivers/net/ethernet/intel/ice/ice_ptp.c:2926:34: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ + 2926 | mutex_lock(&owner_pf->ptp.ports_owner.lock); + | ^ +../include/linux/mutex.h:161:44: note: in definition of macro ‘mutex_lock’ + 161 | #define mutex_lock(lock) mutex_lock_nested(lock, 0) + | ^~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2927:35: error: ‘struct ice_ptp_port’ has no member named ‘list_member’ + 2927 | list_add(&aux_pf->ptp.port.list_member, + | ^ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2928:32: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ + 2928 | &owner_pf->ptp.ports_owner.ports); + | ^ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2929:36: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ + 2929 | mutex_unlock(&owner_pf->ptp.ports_owner.lock); + | ^ +../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_auxbus_remove’: +../drivers/net/ethernet/intel/ice/ice_ptp.c:2943:34: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ + 2943 | mutex_lock(&owner_pf->ptp.ports_owner.lock); + | ^ +../include/linux/mutex.h:161:44: note: in definition of macro ‘mutex_lock’ + 161 | #define mutex_lock(lock) mutex_lock_nested(lock, 0) + | ^~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2944:35: error: ‘struct ice_ptp_port’ has no member named ‘list_member’ + 2944 | list_del(&aux_pf->ptp.port.list_member); + | ^ +../drivers/net/ethernet/intel/ice/ice_ptp.c:2945:36: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ + 2945 | mutex_unlock(&owner_pf->ptp.ports_owner.lock); + | ^ +../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_register_auxbus_driver’: +../drivers/net/ethernet/intel/ice/ice_ptp.c:3014:26: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ + 3014 | aux_driver = &ptp->ports_owner.aux_driver; + | ^~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:3015:28: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ + 3015 | INIT_LIST_HEAD(&ptp->ports_owner.ports); + | ^~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:3016:24: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ + 3016 | mutex_init(&ptp->ports_owner.lock); + | ^~ +../include/linux/mutex.h:65:23: note: in definition of macro ‘mutex_init’ + 65 | __mutex_init((mutex), #mutex, &__key); \ + | ^~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_unregister_auxbus_driver’: +../drivers/net/ethernet/intel/ice/ice_ptp.c:3049:55: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ + 3049 | struct auxiliary_driver *aux_driver = &pf->ptp.ports_owner.aux_driver; + | ^ +../drivers/net/ethernet/intel/ice/ice_ptp.c:3054:31: error: ‘struct ice_ptp’ has no member named ‘ports_owner’ + 3054 | mutex_destroy(&pf->ptp.ports_owner.lock); + | ^ +../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_create_auxbus_device’: +../drivers/net/ethernet/intel/ice/ice_ptp.c:3228:29: error: ‘struct ice_ptp_port’ has no member named ‘aux_dev’ + 3228 | aux_dev = &ptp->port.aux_dev; + | ^ +../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_remove_auxbus_device’: +../drivers/net/ethernet/intel/ice/ice_ptp.c:3264:57: error: ‘struct ice_ptp_port’ has no member named ‘aux_dev’ + 3264 | struct auxiliary_device *aux_dev = &pf->ptp.port.aux_dev; + | ^ +../drivers/net/ethernet/intel/ice/ice_ptp.c: In function ‘ice_ptp_init’: +../drivers/net/ethernet/intel/ice/ice_ptp.c:3355:17: error: label ‘err’ used but not defined + 3355 | goto err; + | ^~~~ @@ -15,3 +208,6 @@ -../drivers/net/ethernet/intel/ice/ice_ptp.c:24:24: warning: ‘ice_get_ctrl_ptp’ defined but not used [-Wunused-function] - 24 | static struct ice_ptp *ice_get_ctrl_ptp(struct ice_pf *pf) - | ^~~~~~~~~~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:3262:13: warning: ‘ice_ptp_remove_auxbus_device’ defined but not used [-Wunused-function] + 3262 | static void ice_ptp_remove_auxbus_device(struct ice_pf *pf) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/intel/ice/ice_ptp.c:3047:13: warning: ‘ice_ptp_unregister_auxbus_driver’ defined but not used [-Wunused-function] + 3047 | static void ice_ptp_unregister_auxbus_driver(struct ice_pf *pf) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -18,0 +215,2 @@ +make[8]: *** Waiting for unfinished jobs.... +../drivers/net/ethernet/intel/ice/ice_ptp_hw.c:868:13: warning: context imbalance in 'ice_ptp_exec_tmr_cmd' - wrong count at exit @@ -23 +220,0 @@ -make[4]: *** Waiting for unfinished jobs.... Per-file breakdown --- /tmp/tmp.bbg96Lf83W 2024-06-26 06:30:48.316976821 -0700 +++ /tmp/tmp.Lc46Xkmga2 2024-06-26 06:30:48.320976906 -0700 @@ -1 +1 @@ - 2 ../drivers/net/ethernet/intel/ice/ice_ptp.c + 18 ../drivers/net/ethernet/intel/ice/ice_ptp.c @@ -2,0 +3,2 @@ + 3 ../include/linux/container_of.h + 3 ../include/linux/stddef.h