From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>,
"Darrick J. Wong" <djwong@kernel.org>
Subject: Re: linux-next: build failure after merge of the bcachefs tree
Date: Fri, 9 Feb 2024 09:46:15 +1100 [thread overview]
Message-ID: <20240209094615.5acd86fc@canb.auug.org.au> (raw)
In-Reply-To: <20240207115755.338828db@canb.auug.org.au>
[-- Attachment #1: Type: text/plain, Size: 60787 bytes --]
Hi all,
On Wed, 7 Feb 2024 11:57:55 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> After merging the bcachefs tree, today's linux-next build (powerpc
> ppc64_defconfig) failed like this:
>
> lib/math/mean_and_variance_test.c: In function 'mean_and_variance_weighted_test':
> lib/math/mean_and_variance_test.c:33:50: error: 'struct mean_and_variance_weighted' has no member named 'weight'
> 33 | struct mean_and_variance_weighted s = { .weight = 2 };
> | ^~~~~~
> lib/math/mean_and_variance_test.c:35:9: error: too few arguments to function 'mean_and_variance_weighted_update'
> 35 | mean_and_variance_weighted_update(&s, 10);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from lib/math/mean_and_variance_test.c:3:
> include/linux/mean_and_variance.h:193:6: note: declared here
> 193 | void mean_and_variance_weighted_update(struct mean_and_variance_weighted *s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from lib/math/mean_and_variance_test.c:2:
> lib/math/mean_and_variance_test.c:36:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 36 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 10);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:36:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 36 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 10);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:36:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 36 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 10);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:36:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 36 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 10);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:37:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 37 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 0);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:37:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 37 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 0);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:37:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 37 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 0);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:37:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 37 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 0);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:39:9: error: too few arguments to function 'mean_and_variance_weighted_update'
> 39 | mean_and_variance_weighted_update(&s, 20);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:193:6: note: declared here
> 193 | void mean_and_variance_weighted_update(struct mean_and_variance_weighted *s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:40:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 40 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 12);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:40:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 40 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 12);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:40:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 40 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 12);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:40:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 40 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 12);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:41:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 41 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 18);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:41:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 41 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 18);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:41:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 41 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 18);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:41:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 41 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 18);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:43:9: error: too few arguments to function 'mean_and_variance_weighted_update'
> 43 | mean_and_variance_weighted_update(&s, 30);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:193:6: note: declared here
> 193 | void mean_and_variance_weighted_update(struct mean_and_variance_weighted *s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:44:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 44 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 16);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:44:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 44 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 16);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:44:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 44 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 16);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:44:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 44 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 16);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:45:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 45 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 72);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:45:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 45 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 72);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:45:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 45 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 72);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:45:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 45 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 72);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:47:52: error: 'struct mean_and_variance_weighted' has no member named 'weight'
> 47 | s = (struct mean_and_variance_weighted) { .weight = 2 };
> | ^~~~~~
> lib/math/mean_and_variance_test.c:49:9: error: too few arguments to function 'mean_and_variance_weighted_update'
> 49 | mean_and_variance_weighted_update(&s, -10);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:193:6: note: declared here
> 193 | void mean_and_variance_weighted_update(struct mean_and_variance_weighted *s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:50:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 50 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -10);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:50:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 50 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -10);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:50:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 50 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -10);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:50:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 50 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -10);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:51:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 51 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 0);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:51:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 51 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 0);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:51:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 51 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 0);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:51:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 51 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 0);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:53:9: error: too few arguments to function 'mean_and_variance_weighted_update'
> 53 | mean_and_variance_weighted_update(&s, -20);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:193:6: note: declared here
> 193 | void mean_and_variance_weighted_update(struct mean_and_variance_weighted *s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:54:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 54 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -12);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:54:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 54 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -12);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:54:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 54 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -12);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:54:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 54 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -12);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:55:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 55 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 18);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:55:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 55 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 18);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:55:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 55 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 18);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:55:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 55 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 18);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:57:9: error: too few arguments to function 'mean_and_variance_weighted_update'
> 57 | mean_and_variance_weighted_update(&s, -30);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:193:6: note: declared here
> 193 | void mean_and_variance_weighted_update(struct mean_and_variance_weighted *s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:58:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 58 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -16);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:58:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 58 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -16);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:58:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 58 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -16);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:58:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 58 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -16);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:59:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 59 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 72);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:59:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 59 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 72);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:59:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 59 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 72);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:59:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 59 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 72);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c: In function 'mean_and_variance_weighted_advanced_test':
> lib/math/mean_and_variance_test.c:64:50: error: 'struct mean_and_variance_weighted' has no member named 'weight'
> 64 | struct mean_and_variance_weighted s = { .weight = 8 };
> | ^~~~~~
> lib/math/mean_and_variance_test.c:68:17: error: too few arguments to function 'mean_and_variance_weighted_update'
> 68 | mean_and_variance_weighted_update(&s, i);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:193:6: note: declared here
> 193 | void mean_and_variance_weighted_update(struct mean_and_variance_weighted *s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:70:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 70 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 11);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:70:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 70 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 11);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:70:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 70 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 11);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:70:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 70 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), 11);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:71:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 71 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 107);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:71:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 71 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 107);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:71:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 71 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 107);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:71:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 71 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 107);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:73:52: error: 'struct mean_and_variance_weighted' has no member named 'weight'
> 73 | s = (struct mean_and_variance_weighted) { .weight = 8 };
> | ^~~~~~
> lib/math/mean_and_variance_test.c:76:17: error: too few arguments to function 'mean_and_variance_weighted_update'
> 76 | mean_and_variance_weighted_update(&s, i);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:193:6: note: declared here
> 193 | void mean_and_variance_weighted_update(struct mean_and_variance_weighted *s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:78:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 78 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -11);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:78:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 78 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -11);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:78:31: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 78 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -11);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:78:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 78 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s), -11);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:79:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 79 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 107);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:79:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 79 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 107);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:79:31: error: too few arguments to function 'mean_and_variance_weighted_get_variance'
> 79 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 107);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:79:9: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 79 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_variance(s), 107);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:198:5: note: declared here
> 198 | u64 mean_and_variance_weighted_get_variance(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c: In function 'do_mean_and_variance_test':
> lib/math/mean_and_variance_test.c:94:51: error: 'struct mean_and_variance_weighted' has no member named 'weight'
> 94 | struct mean_and_variance_weighted vw = { .weight = weight };
> | ^~~~~~
> lib/math/mean_and_variance_test.c:98:17: error: too few arguments to function 'mean_and_variance_weighted_update'
> 98 | mean_and_variance_weighted_update(&vw, initial_value);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:193:6: note: declared here
> 193 | void mean_and_variance_weighted_update(struct mean_and_variance_weighted *s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:102:39: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 102 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw), initial_value);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:102:17: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 102 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw), initial_value);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:102:39: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 102 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw), initial_value);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:102:17: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 102 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw), initial_value);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:103:39: error: too few arguments to function 'mean_and_variance_weighted_get_stddev'
> 103 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw),0);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:103:17: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 103 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw),0);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:200:5: note: declared here
> 200 | u32 mean_and_variance_weighted_get_stddev(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:103:39: error: too few arguments to function 'mean_and_variance_weighted_get_stddev'
> 103 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw),0);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:103:17: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 103 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw),0);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:200:5: note: declared here
> 200 | u32 mean_and_variance_weighted_get_stddev(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:108:17: error: too few arguments to function 'mean_and_variance_weighted_update'
> 108 | mean_and_variance_weighted_update(&vw, data[i]);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:193:6: note: declared here
> 193 | void mean_and_variance_weighted_update(struct mean_and_variance_weighted *s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:112:39: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 112 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw), weighted_mean[i]);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:112:17: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 112 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw), weighted_mean[i]);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:112:39: error: too few arguments to function 'mean_and_variance_weighted_get_mean'
> 112 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw), weighted_mean[i]);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:112:17: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 112 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(vw), weighted_mean[i]);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:196:5: note: declared here
> 196 | s64 mean_and_variance_weighted_get_mean(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:113:39: error: too few arguments to function 'mean_and_variance_weighted_get_stddev'
> 113 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw),weighted_stddev[i]);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:22: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:113:17: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 113 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw),weighted_stddev[i]);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:200:5: note: declared here
> 200 | u32 mean_and_variance_weighted_get_stddev(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:113:39: error: too few arguments to function 'mean_and_variance_weighted_get_stddev'
> 113 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw),weighted_stddev[i]);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:693:38: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
> 693 | const typeof(left) __left = (left); \
> | ^~~~
> include/kunit/test.h:885:9: note: in expansion of macro 'KUNIT_BINARY_INT_ASSERTION'
> 885 | KUNIT_BINARY_INT_ASSERTION(test, \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/kunit/test.h:882:9: note: in expansion of macro 'KUNIT_EXPECT_EQ_MSG'
> 882 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
> | ^~~~~~~~~~~~~~~~~~~
> lib/math/mean_and_variance_test.c:113:17: note: in expansion of macro 'KUNIT_EXPECT_EQ'
> 113 | KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_stddev(vw),weighted_stddev[i]);
> | ^~~~~~~~~~~~~~~
> include/linux/mean_and_variance.h:200:5: note: declared here
> 200 | u32 mean_and_variance_weighted_get_stddev(struct mean_and_variance_weighted s,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Caused by commit
>
> cfca113ae06c ("mean_and_variance: put struct mean_and_variance_weighted on a diet")
>
> I have used the bcachefs tree from next-20240206 for today.
I am still getting this failure.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2024-02-08 22:46 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-07 0:57 linux-next: build failure after merge of the bcachefs tree Stephen Rothwell
2024-02-08 22:46 ` Stephen Rothwell [this message]
2024-02-08 23:59 ` Kent Overstreet
-- strict thread matches above, loose matches on Subject: below --
2025-06-02 23:47 Stephen Rothwell
2025-05-21 23:14 Stephen Rothwell
2025-04-22 0:56 Stephen Rothwell
2025-03-26 2:28 Stephen Rothwell
2025-03-27 0:54 ` Stephen Rothwell
2025-03-27 3:01 ` Kent Overstreet
2024-11-10 22:32 Stephen Rothwell
2024-10-13 23:28 Stephen Rothwell
2024-10-14 6:17 ` Greg Kroah-Hartman
2024-10-14 6:18 ` Kent Overstreet
2024-09-27 0:46 Stephen Rothwell
2024-10-10 5:50 ` Stephen Rothwell
2024-10-10 6:10 ` Kent Overstreet
2024-10-10 7:44 ` Stephen Rothwell
2024-09-11 1:44 Stephen Rothwell
2024-02-11 23:54 Stephen Rothwell
2024-02-14 0:16 ` Kees Cook
2024-02-14 0:29 ` Kent Overstreet
2024-02-14 0:39 ` Darrick J. Wong
2024-02-14 1:09 ` Kees Cook
2023-11-15 23:02 Stephen Rothwell
2023-11-12 22:30 Stephen Rothwell
2023-09-12 2:04 Stephen Rothwell
2023-09-12 2:47 ` Qi Zheng
2023-09-12 23:35 ` Stephen Rothwell
2023-09-13 1:10 ` Qi Zheng
2023-09-13 20:23 ` Andrew Morton
2023-09-13 22:31 ` Stephen Rothwell
2023-11-01 0:32 ` Stephen Rothwell
2023-11-01 0:53 ` Kent Overstreet
2023-11-01 1:14 ` Stephen Rothwell
2023-09-13 22:14 ` Stephen Rothwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240209094615.5acd86fc@canb.auug.org.au \
--to=sfr@canb.auug.org.au \
--cc=djwong@kernel.org \
--cc=kent.overstreet@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.