Re: [PATCH v3 7/7] remoteproc: sunxi: Add KUnit tests

From: kernel test robot

Date: Sun Nov 08 2026 - 01:19:32 EST


Hi Tim,

kernel test robot noticed the following build errors:

[auto build test ERROR on 7649ba73f9e7e1e04d0b46213e39c79ae09dd55c]

url: https://github.com/intel-lab-lkp/linux/commits/Tim-Michals/dt-bindings-mailbox-Add-Allwinner-A523-message-box/20261101-125729
base: 7649ba73f9e7e1e04d0b46213e39c79ae09dd55c
patch link: https://lore.kernel.org/r/20261101185735.762559-8-tcmichals%40gmail.com
patch subject: [PATCH v3 7/7] remoteproc: sunxi: Add KUnit tests
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20261108/202611081401.aakRznh0-lkp@xxxxxxxxx/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project fc9576e3b179738d99c5babe5cd9d6c1f883e0db)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261108/202611081401.aakRznh0-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611081401.aakRznh0-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/remoteproc/sunxi_rproc_kunit.c:962:58: error: no member named 'usage_count' in 'struct dev_pm_info'
962 | KUNIT_EXPECT_EQ(test, atomic_read(&ctx->priv.dev->power.usage_count), 0);
| ~~~~~~~~~~~~~~~~~~~~ ^
include/kunit/test.h:1034:28: note: expanded from macro 'KUNIT_EXPECT_EQ'
1034 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
| ^~~~
include/kunit/test.h:1039:8: note: expanded from macro 'KUNIT_EXPECT_EQ_MSG'
1039 | left, ==, right, \
| ^~~~
include/kunit/test.h:874:9: note: expanded from macro 'KUNIT_BINARY_INT_ASSERTION'
874 | left, op, right, \
| ^~~~
include/kunit/test.h:840:15: note: expanded from macro 'KUNIT_BASE_BINARY_ASSERTION'
840 | const typeof(left) __left = (left); \
| ^~~~
>> drivers/remoteproc/sunxi_rproc_kunit.c:962:58: error: no member named 'usage_count' in 'struct dev_pm_info'
962 | KUNIT_EXPECT_EQ(test, atomic_read(&ctx->priv.dev->power.usage_count), 0);
| ~~~~~~~~~~~~~~~~~~~~ ^
include/kunit/test.h:1034:28: note: expanded from macro 'KUNIT_EXPECT_EQ'
1034 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
| ^~~~
include/kunit/test.h:1039:8: note: expanded from macro 'KUNIT_EXPECT_EQ_MSG'
1039 | left, ==, right, \
| ^~~~
include/kunit/test.h:874:9: note: expanded from macro 'KUNIT_BINARY_INT_ASSERTION'
874 | left, op, right, \
| ^~~~
include/kunit/test.h:840:31: note: expanded from macro 'KUNIT_BASE_BINARY_ASSERTION'
840 | const typeof(left) __left = (left); \
| ^~~~
drivers/remoteproc/sunxi_rproc_kunit.c:977:58: error: no member named 'usage_count' in 'struct dev_pm_info'
977 | KUNIT_EXPECT_EQ(test, atomic_read(&ctx->priv.dev->power.usage_count), 1);
| ~~~~~~~~~~~~~~~~~~~~ ^
include/kunit/test.h:1034:28: note: expanded from macro 'KUNIT_EXPECT_EQ'
1034 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
| ^~~~
include/kunit/test.h:1039:8: note: expanded from macro 'KUNIT_EXPECT_EQ_MSG'
1039 | left, ==, right, \
| ^~~~
include/kunit/test.h:874:9: note: expanded from macro 'KUNIT_BINARY_INT_ASSERTION'
874 | left, op, right, \
| ^~~~
include/kunit/test.h:840:15: note: expanded from macro 'KUNIT_BASE_BINARY_ASSERTION'
840 | const typeof(left) __left = (left); \
| ^~~~
drivers/remoteproc/sunxi_rproc_kunit.c:977:58: error: no member named 'usage_count' in 'struct dev_pm_info'
977 | KUNIT_EXPECT_EQ(test, atomic_read(&ctx->priv.dev->power.usage_count), 1);
| ~~~~~~~~~~~~~~~~~~~~ ^
include/kunit/test.h:1034:28: note: expanded from macro 'KUNIT_EXPECT_EQ'
1034 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
| ^~~~
include/kunit/test.h:1039:8: note: expanded from macro 'KUNIT_EXPECT_EQ_MSG'
1039 | left, ==, right, \
| ^~~~
include/kunit/test.h:874:9: note: expanded from macro 'KUNIT_BINARY_INT_ASSERTION'
874 | left, op, right, \
| ^~~~
include/kunit/test.h:840:31: note: expanded from macro 'KUNIT_BASE_BINARY_ASSERTION'
840 | const typeof(left) __left = (left); \
| ^~~~
drivers/remoteproc/sunxi_rproc_kunit.c:1107:48: error: no member named 'usage_count' in 'struct dev_pm_info'
1107 | KUNIT_EXPECT_EQ(test, atomic_read(&dev->power.usage_count), 0);
| ~~~~~~~~~~ ^
include/kunit/test.h:1034:28: note: expanded from macro 'KUNIT_EXPECT_EQ'
1034 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
| ^~~~
include/kunit/test.h:1039:8: note: expanded from macro 'KUNIT_EXPECT_EQ_MSG'
1039 | left, ==, right, \
| ^~~~
include/kunit/test.h:874:9: note: expanded from macro 'KUNIT_BINARY_INT_ASSERTION'
874 | left, op, right, \
| ^~~~
include/kunit/test.h:840:15: note: expanded from macro 'KUNIT_BASE_BINARY_ASSERTION'
840 | const typeof(left) __left = (left); \
| ^~~~
drivers/remoteproc/sunxi_rproc_kunit.c:1107:48: error: no member named 'usage_count' in 'struct dev_pm_info'
1107 | KUNIT_EXPECT_EQ(test, atomic_read(&dev->power.usage_count), 0);
| ~~~~~~~~~~ ^
include/kunit/test.h:1034:28: note: expanded from macro 'KUNIT_EXPECT_EQ'
1034 | KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
| ^~~~
include/kunit/test.h:1039:8: note: expanded from macro 'KUNIT_EXPECT_EQ_MSG'
1039 | left, ==, right, \
| ^~~~
include/kunit/test.h:874:9: note: expanded from macro 'KUNIT_BINARY_INT_ASSERTION'
874 | left, op, right, \
| ^~~~
include/kunit/test.h:840:31: note: expanded from macro 'KUNIT_BASE_BINARY_ASSERTION'
840 | const typeof(left) __left = (left); \
| ^~~~
6 errors generated.


vim +962 drivers/remoteproc/sunxi_rproc_kunit.c

949
950 /* Everything as before prepare(): resets asserted, clocks off, no PM reference */
951 static void expect_powered_off(struct kunit *test, struct test_context *ctx,
952 struct mock_providers *mp, bool core_held)
953 {
954 int i;
955
956 KUNIT_EXPECT_TRUE(test, mp->asserted[RST_CFG]);
957 KUNIT_EXPECT_TRUE(test, mp->asserted[RST_SRAM]);
958 KUNIT_EXPECT_TRUE(test, mp->asserted[RST_DEBUG]);
959 KUNIT_EXPECT_EQ(test, mp->asserted[RST_CORE], core_held);
960 for (i = 0; i < NR_CLK; i++)
961 KUNIT_EXPECT_FALSE_MSG(test, clk_hw_is_prepared(&mp->clk[i].hw), "clock %d", i);
> 962 KUNIT_EXPECT_EQ(test, atomic_read(&ctx->priv.dev->power.usage_count), 0);
963 }
964

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki