Hi David,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master] [also build test ERROR on v5.13-rc5 next-20210607] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/David-Gow/kunit-Support-skipped-tes... base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 614124bea77e452aa6df7a8714e8bc820b489922 config: i386-randconfig-s002-20210607 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://github.com/0day-ci/linux/commit/616d7103da7386e89d71208b4df68453790e... git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review David-Gow/kunit-Support-skipped-tests/20210608-145216 git checkout 616d7103da7386e89d71208b4df68453790e30ad # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot lkp@intel.com
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:15, from include/kunit/assert.h:13, from include/kunit/test.h:12, from lib/kunit/kunit-test.c:8: lib/kunit/kunit-test.c: In function 'kunit_status_mark_skipped_test': include/linux/minmax.h:20:28: warning: comparison of distinct pointer types lacks a cast 20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) | ^~ include/kunit/test.h:839:9: note: in expansion of macro '__typecheck' 839 | ((void)__typecheck(__left, __right)); \ | ^~~~~~~~~~~ include/kunit/test.h:863:2: note: in expansion of macro 'KUNIT_BASE_BINARY_ASSERTION' 863 | KUNIT_BASE_BINARY_ASSERTION(test, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/kunit/test.h:952:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION' 952 | KUNIT_BASE_EQ_MSG_ASSERTION(test, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/kunit/test.h:962:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION' 962 | KUNIT_BINARY_EQ_MSG_ASSERTION(test, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/kunit/test.h:1325:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION' 1325 | KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right) | ^~~~~~~~~~~~~~~~~~~~~~~~~ lib/kunit/kunit-test.c:458:2: note: in expansion of macro 'KUNIT_EXPECT_EQ' 458 | KUNIT_EXPECT_EQ(test, fake.status, KUNIT_SUCCESS); | ^~~~~~~~~~~~~~~ In file included from lib/kunit/kunit-test.c:8:
include/kunit/test.h:1193:24: error: invalid initializer
1193 | typeof(left) __left = (left); \ | ^ include/kunit/test.h:1216:2: note: in expansion of macro 'KUNIT_BINARY_STR_ASSERTION' 1216 | KUNIT_BINARY_STR_ASSERTION(test, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ include/kunit/test.h:1223:2: note: in expansion of macro 'KUNIT_BINARY_STR_EQ_MSG_ASSERTION' 1223 | KUNIT_BINARY_STR_EQ_MSG_ASSERTION(test, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/kunit/test.h:1507:2: note: in expansion of macro 'KUNIT_BINARY_STR_EQ_ASSERTION' 1507 | KUNIT_BINARY_STR_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/kunit/kunit-test.c:459:2: note: in expansion of macro 'KUNIT_EXPECT_STREQ' 459 | KUNIT_EXPECT_STREQ(test, fake.status_comment, ""); | ^~~~~~~~~~~~~~~~~~
include/kunit/test.h:1193:24: error: invalid initializer
1193 | typeof(left) __left = (left); \ | ^ include/kunit/test.h:1216:2: note: in expansion of macro 'KUNIT_BINARY_STR_ASSERTION' 1216 | KUNIT_BINARY_STR_ASSERTION(test, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ include/kunit/test.h:1223:2: note: in expansion of macro 'KUNIT_BINARY_STR_EQ_MSG_ASSERTION' 1223 | KUNIT_BINARY_STR_EQ_MSG_ASSERTION(test, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/kunit/test.h:1507:2: note: in expansion of macro 'KUNIT_BINARY_STR_EQ_ASSERTION' 1507 | KUNIT_BINARY_STR_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/kunit/kunit-test.c:466:2: note: in expansion of macro 'KUNIT_EXPECT_STREQ' 466 | KUNIT_EXPECT_STREQ(test, fake.status_comment, "Accepts format string: YES"); | ^~~~~~~~~~~~~~~~~~
vim +1193 include/kunit/test.h
73cda7bb8bfb1d Brendan Higgins 2019-09-23 854 73cda7bb8bfb1d Brendan Higgins 2019-09-23 855 #define KUNIT_BASE_EQ_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 856 assert_class, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 857 ASSERT_CLASS_INIT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 858 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 859 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 860 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 861 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 862 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 863 KUNIT_BASE_BINARY_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 864 assert_class, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 865 ASSERT_CLASS_INIT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 866 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 867 left, ==, right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 868 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 869 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 870 73cda7bb8bfb1d Brendan Higgins 2019-09-23 871 #define KUNIT_BASE_NE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 872 assert_class, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 873 ASSERT_CLASS_INIT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 874 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 875 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 876 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 877 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 878 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 879 KUNIT_BASE_BINARY_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 880 assert_class, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 881 ASSERT_CLASS_INIT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 882 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 883 left, !=, right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 884 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 885 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 886 73cda7bb8bfb1d Brendan Higgins 2019-09-23 887 #define KUNIT_BASE_LT_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 888 assert_class, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 889 ASSERT_CLASS_INIT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 890 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 891 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 892 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 893 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 894 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 895 KUNIT_BASE_BINARY_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 896 assert_class, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 897 ASSERT_CLASS_INIT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 898 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 899 left, <, right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 900 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 901 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 902 73cda7bb8bfb1d Brendan Higgins 2019-09-23 903 #define KUNIT_BASE_LE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 904 assert_class, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 905 ASSERT_CLASS_INIT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 906 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 907 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 908 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 909 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 910 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 911 KUNIT_BASE_BINARY_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 912 assert_class, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 913 ASSERT_CLASS_INIT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 914 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 915 left, <=, right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 916 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 917 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 918 73cda7bb8bfb1d Brendan Higgins 2019-09-23 919 #define KUNIT_BASE_GT_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 920 assert_class, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 921 ASSERT_CLASS_INIT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 922 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 923 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 924 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 925 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 926 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 927 KUNIT_BASE_BINARY_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 928 assert_class, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 929 ASSERT_CLASS_INIT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 930 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 931 left, >, right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 932 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 933 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 934 73cda7bb8bfb1d Brendan Higgins 2019-09-23 935 #define KUNIT_BASE_GE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 936 assert_class, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 937 ASSERT_CLASS_INIT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 938 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 939 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 940 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 941 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 942 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 943 KUNIT_BASE_BINARY_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 944 assert_class, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 945 ASSERT_CLASS_INIT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 946 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 947 left, >=, right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 948 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 949 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 950 73cda7bb8bfb1d Brendan Higgins 2019-09-23 951 #define KUNIT_BINARY_EQ_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 952 KUNIT_BASE_EQ_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 953 kunit_binary_assert, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 954 KUNIT_INIT_BINARY_ASSERT_STRUCT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 955 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 956 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 957 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 958 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 959 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 960 73cda7bb8bfb1d Brendan Higgins 2019-09-23 961 #define KUNIT_BINARY_EQ_ASSERTION(test, assert_type, left, right) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 962 KUNIT_BINARY_EQ_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 963 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 964 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 965 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 966 NULL) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 967 73cda7bb8bfb1d Brendan Higgins 2019-09-23 968 #define KUNIT_BINARY_PTR_EQ_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 969 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 970 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 971 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 972 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 973 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 974 KUNIT_BASE_EQ_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 975 kunit_binary_ptr_assert, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 976 KUNIT_INIT_BINARY_PTR_ASSERT_STRUCT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 977 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 978 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 979 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 980 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 981 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 982 73cda7bb8bfb1d Brendan Higgins 2019-09-23 983 #define KUNIT_BINARY_PTR_EQ_ASSERTION(test, assert_type, left, right) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 984 KUNIT_BINARY_PTR_EQ_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 985 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 986 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 987 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 988 NULL) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 989 73cda7bb8bfb1d Brendan Higgins 2019-09-23 990 #define KUNIT_BINARY_NE_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 991 KUNIT_BASE_NE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 992 kunit_binary_assert, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 993 KUNIT_INIT_BINARY_ASSERT_STRUCT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 994 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 995 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 996 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 997 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 998 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 999 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1000 #define KUNIT_BINARY_NE_ASSERTION(test, assert_type, left, right) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1001 KUNIT_BINARY_NE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1002 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1003 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1004 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1005 NULL) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1006 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1007 #define KUNIT_BINARY_PTR_NE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1008 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1009 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1010 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1011 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1012 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1013 KUNIT_BASE_NE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1014 kunit_binary_ptr_assert, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1015 KUNIT_INIT_BINARY_PTR_ASSERT_STRUCT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1016 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1017 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1018 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1019 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1020 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1021 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1022 #define KUNIT_BINARY_PTR_NE_ASSERTION(test, assert_type, left, right) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1023 KUNIT_BINARY_PTR_NE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1024 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1025 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1026 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1027 NULL) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1028 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1029 #define KUNIT_BINARY_LT_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1030 KUNIT_BASE_LT_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1031 kunit_binary_assert, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1032 KUNIT_INIT_BINARY_ASSERT_STRUCT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1033 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1034 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1035 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1036 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1037 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1038 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1039 #define KUNIT_BINARY_LT_ASSERTION(test, assert_type, left, right) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1040 KUNIT_BINARY_LT_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1041 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1042 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1043 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1044 NULL) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1045 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1046 #define KUNIT_BINARY_PTR_LT_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1047 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1048 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1049 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1050 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1051 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1052 KUNIT_BASE_LT_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1053 kunit_binary_ptr_assert, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1054 KUNIT_INIT_BINARY_PTR_ASSERT_STRUCT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1055 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1056 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1057 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1058 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1059 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1060 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1061 #define KUNIT_BINARY_PTR_LT_ASSERTION(test, assert_type, left, right) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1062 KUNIT_BINARY_PTR_LT_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1063 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1064 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1065 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1066 NULL) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1067 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1068 #define KUNIT_BINARY_LE_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1069 KUNIT_BASE_LE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1070 kunit_binary_assert, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1071 KUNIT_INIT_BINARY_ASSERT_STRUCT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1072 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1073 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1074 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1075 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1076 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1077 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1078 #define KUNIT_BINARY_LE_ASSERTION(test, assert_type, left, right) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1079 KUNIT_BINARY_LE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1080 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1081 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1082 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1083 NULL) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1084 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1085 #define KUNIT_BINARY_PTR_LE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1086 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1087 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1088 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1089 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1090 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1091 KUNIT_BASE_LE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1092 kunit_binary_ptr_assert, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1093 KUNIT_INIT_BINARY_PTR_ASSERT_STRUCT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1094 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1095 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1096 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1097 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1098 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1099 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1100 #define KUNIT_BINARY_PTR_LE_ASSERTION(test, assert_type, left, right) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1101 KUNIT_BINARY_PTR_LE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1102 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1103 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1104 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1105 NULL) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1106 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1107 #define KUNIT_BINARY_GT_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1108 KUNIT_BASE_GT_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1109 kunit_binary_assert, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1110 KUNIT_INIT_BINARY_ASSERT_STRUCT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1111 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1112 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1113 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1114 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1115 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1116 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1117 #define KUNIT_BINARY_GT_ASSERTION(test, assert_type, left, right) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1118 KUNIT_BINARY_GT_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1119 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1120 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1121 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1122 NULL) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1123 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1124 #define KUNIT_BINARY_PTR_GT_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1125 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1126 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1127 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1128 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1129 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1130 KUNIT_BASE_GT_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1131 kunit_binary_ptr_assert, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1132 KUNIT_INIT_BINARY_PTR_ASSERT_STRUCT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1133 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1134 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1135 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1136 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1137 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1138 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1139 #define KUNIT_BINARY_PTR_GT_ASSERTION(test, assert_type, left, right) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1140 KUNIT_BINARY_PTR_GT_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1141 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1142 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1143 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1144 NULL) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1145 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1146 #define KUNIT_BINARY_GE_MSG_ASSERTION(test, assert_type, left, right, fmt, ...)\ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1147 KUNIT_BASE_GE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1148 kunit_binary_assert, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1149 KUNIT_INIT_BINARY_ASSERT_STRUCT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1150 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1151 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1152 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1153 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1154 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1155 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1156 #define KUNIT_BINARY_GE_ASSERTION(test, assert_type, left, right) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1157 KUNIT_BINARY_GE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1158 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1159 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1160 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1161 NULL) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1162 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1163 #define KUNIT_BINARY_PTR_GE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1164 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1165 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1166 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1167 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1168 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1169 KUNIT_BASE_GE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1170 kunit_binary_ptr_assert, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1171 KUNIT_INIT_BINARY_PTR_ASSERT_STRUCT, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1172 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1173 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1174 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1175 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1176 ##__VA_ARGS__) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1177 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1178 #define KUNIT_BINARY_PTR_GE_ASSERTION(test, assert_type, left, right) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1179 KUNIT_BINARY_PTR_GE_MSG_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1180 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1181 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1182 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1183 NULL) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1184 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1185 #define KUNIT_BINARY_STR_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1186 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1187 left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1188 op, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1189 right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1190 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1191 ...) \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1192 do { \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 @1193 typeof(left) __left = (left); \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1194 typeof(right) __right = (right); \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1195 \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1196 KUNIT_ASSERTION(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1197 strcmp(__left, __right) op 0, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1198 kunit_binary_str_assert, \ 3084db0e0d5076 Daniel Latypov 2020-11-02 1199 KUNIT_INIT_BINARY_STR_ASSERT_STRUCT(test, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1200 assert_type, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1201 #op, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1202 #left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1203 __left, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1204 #right, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1205 __right), \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1206 fmt, \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1207 ##__VA_ARGS__); \ 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1208 } while (0) 73cda7bb8bfb1d Brendan Higgins 2019-09-23 1209
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org