From: kernel test robot <lkp@intel.com>
To: Brian Masney <bmasney@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH RFC v5 2/4] clk: test: introduce test suite for sibling rate changes on a divider
Date: Sun, 8 Mar 2026 21:46:19 +0800 [thread overview]
Message-ID: <202603082131.EH1YuBck-lkp@intel.com> (raw)
In-Reply-To: <20260306-clk-scaling-v5-2-d21b84ee6f27@redhat.com>
Hi Brian,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on fc7b1a72c6cd5cbbd989c6c32a6486e3e4e3594d]
url: https://github.com/intel-lab-lkp/linux/commits/Brian-Masney/clk-test-introduce-clk_dummy_div-for-a-mock-divider/20260307-074328
base: fc7b1a72c6cd5cbbd989c6c32a6486e3e4e3594d
patch link: https://lore.kernel.org/r/20260306-clk-scaling-v5-2-d21b84ee6f27%40redhat.com
patch subject: [PATCH RFC v5 2/4] clk: test: introduce test suite for sibling rate changes on a divider
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260308/202603082131.EH1YuBck-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260308/202603082131.EH1YuBck-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603082131.EH1YuBck-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/clk/clk_test.c: In function 'clk_rate_change_sibling_div_div_test_init':
>> drivers/clk/clk_test.c:686:33: error: 'HZ_PER_MHZ' undeclared (first use in this function)
686 | ctx->parent.rate = 24 * HZ_PER_MHZ;
| ^~~~~~~~~~
drivers/clk/clk_test.c:686:33: note: each undeclared identifier is reported only once for each function it appears in
drivers/clk/clk_test.c: In function 'clk_test_rate_change_sibling_div_div_1':
drivers/clk/clk_test.c:735:49: error: 'HZ_PER_MHZ' undeclared (first use in this function)
735 | ret = clk_set_rate(ctx->child1_clk, 6 * HZ_PER_MHZ);
| ^~~~~~~~~~
drivers/clk/clk_test.c: In function 'clk_test_rate_change_sibling_div_div_2':
drivers/clk/clk_test.c:756:50: error: 'HZ_PER_MHZ' undeclared (first use in this function)
756 | ret = clk_set_rate(ctx->child1_clk, 48 * HZ_PER_MHZ);
| ^~~~~~~~~~
drivers/clk/clk_test.c: In function 'clk_test_rate_change_sibling_div_div_3':
drivers/clk/clk_test.c:783:50: error: 'HZ_PER_MHZ' undeclared (first use in this function)
783 | ret = clk_set_rate(ctx->child1_clk, 32 * HZ_PER_MHZ);
| ^~~~~~~~~~
vim +/HZ_PER_MHZ +686 drivers/clk/clk_test.c
670
671 KUNIT_ARRAY_PARAM_DESC(clk_rate_change_sibling_div_div_test_regular_ops,
672 clk_rate_change_sibling_div_div_test_regular_ops_params, desc)
673
674 static int clk_rate_change_sibling_div_div_test_init(struct kunit *test)
675 {
676 const struct clk_rate_change_sibling_div_div_test_param *param = test->param_value;
677 struct clk_rate_change_sibling_div_div_context *ctx;
678 int ret;
679
680 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL);
681 if (!ctx)
682 return -ENOMEM;
683 test->priv = ctx;
684
685 ctx->parent.hw.init = CLK_HW_INIT_NO_PARENT("parent", &clk_dummy_rate_ops, 0);
> 686 ctx->parent.rate = 24 * HZ_PER_MHZ;
687 ret = clk_hw_register_kunit(test, NULL, &ctx->parent.hw);
688 if (ret)
689 return ret;
690
691 ctx->child1.hw.init = CLK_HW_INIT_HW("child1", &ctx->parent.hw,
692 param->ops, CLK_SET_RATE_PARENT);
693 ctx->child1.div = 1;
694 ret = clk_hw_register_kunit(test, NULL, &ctx->child1.hw);
695 if (ret)
696 return ret;
697
698 ctx->child2.hw.init = CLK_HW_INIT_HW("child2", &ctx->parent.hw,
699 param->ops, CLK_SET_RATE_PARENT);
700 ctx->child2.div = 1;
701 ret = clk_hw_register_kunit(test, NULL, &ctx->child2.hw);
702 if (ret)
703 return ret;
704
705 ctx->parent_clk = clk_hw_get_clk(&ctx->parent.hw, NULL);
706 ctx->child1_clk = clk_hw_get_clk(&ctx->child1.hw, NULL);
707 ctx->child2_clk = clk_hw_get_clk(&ctx->child2.hw, NULL);
708
709 KUNIT_EXPECT_EQ(test, clk_get_rate(ctx->parent_clk), 24 * HZ_PER_MHZ);
710 KUNIT_EXPECT_EQ(test, clk_get_rate(ctx->child1_clk), 24 * HZ_PER_MHZ);
711 KUNIT_EXPECT_EQ(test, clk_get_rate(ctx->child2_clk), 24 * HZ_PER_MHZ);
712
713 return 0;
714 }
715
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-03-08 13:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-06 23:21 [PATCH RFC v5 0/4] clk: add support for v1 / v2 clock rate negotiation and kunit tests Brian Masney
2026-03-06 23:21 ` [PATCH RFC v5 1/4] clk: test: introduce clk_dummy_div for a mock divider Brian Masney
2026-03-06 23:21 ` [PATCH RFC v5 2/4] clk: test: introduce test suite for sibling rate changes on a divider Brian Masney
2026-03-08 13:46 ` kernel test robot [this message]
2026-03-08 14:37 ` kernel test robot
2026-03-09 10:30 ` Brian Masney
2026-03-09 10:32 ` Brian Masney
2026-03-06 23:21 ` [PATCH RFC v5 3/4] clk: add support for coordinated rate changes from the providers Brian Masney
2026-03-06 23:21 ` [PATCH RFC v5 4/4] clk: test: add kunit test for coordinated rate change Brian Masney
2026-03-12 13:09 ` [PATCH RFC v5 0/4] clk: add support for v1 / v2 clock rate negotiation and kunit tests Brian Masney
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=202603082131.EH1YuBck-lkp@intel.com \
--to=lkp@intel.com \
--cc=bmasney@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.