From: kernel test robot <lkp@intel.com>
To: "Richard Genoud" <richard.genoud@bootlin.com>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Chen-Yu Tsai" <wens@csie.org>,
"Jernej Skrabec" <jernej.skrabec@gmail.com>,
"Samuel Holland" <samuel@sholland.org>,
"Philipp Zabel" <p.zabel@pengutronix.de>
Cc: oe-kbuild-all@lists.linux.dev,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
linux-pwm@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
Richard Genoud <richard.genoud@bootlin.com>
Subject: Re: [PATCH 2/4] pwm: sun50i: Add H616 PWM support
Date: Sat, 6 Dec 2025 12:32:50 +0800 [thread overview]
Message-ID: <202512061246.jJ5UrB71-lkp@intel.com> (raw)
In-Reply-To: <20251205100239.1563353-3-richard.genoud@bootlin.com>
Hi Richard,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 6987d58a9cbc5bd57c983baa514474a86c945d56]
url: https://github.com/intel-lab-lkp/linux/commits/Richard-Genoud/dt-bindings-pwm-sunxi-add-PWM-controller-for-Allwinner-H616/20251205-214804
base: 6987d58a9cbc5bd57c983baa514474a86c945d56
patch link: https://lore.kernel.org/r/20251205100239.1563353-3-richard.genoud%40bootlin.com
patch subject: [PATCH 2/4] pwm: sun50i: Add H616 PWM support
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20251206/202512061246.jJ5UrB71-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251206/202512061246.jJ5UrB71-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/202512061246.jJ5UrB71-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/pwm/pwm-sun50i-h616.c: In function 'h616_pwm_get_state':
drivers/pwm/pwm-sun50i-h616.c:76:41: error: implicit declaration of function 'FIELD_GET' [-Wimplicit-function-declaration]
76 | #define PWM_REG_DUTY(reg) FIELD_GET(PWM_DUTY_MASK, reg)
| ^~~~~~~~~
drivers/pwm/pwm-sun50i-h616.c:452:30: note: in expansion of macro 'PWM_REG_DUTY'
452 | tmp = NSEC_PER_SEC * PWM_REG_DUTY(val);
| ^~~~~~~~~~~~
drivers/pwm/pwm-sun50i-h616.c: In function 'h616_pwm_calc':
drivers/pwm/pwm-sun50i-h616.c:79:41: error: implicit declaration of function 'FIELD_MAX' [-Wimplicit-function-declaration]
79 | #define PWM_PERIOD_MAX FIELD_MAX(PWM_PERIOD_MASK)
| ^~~~~~~~~
drivers/pwm/pwm-sun50i-h616.c:493:54: note: in expansion of macro 'PWM_PERIOD_MAX'
493 | freq = div64_u64(NSEC_PER_SEC * (u64)PWM_PERIOD_MAX, period);
| ^~~~~~~~~~~~~~
drivers/pwm/pwm-sun50i-h616.c: In function 'h616_pwm_apply':
drivers/pwm/pwm-sun50i-h616.c:78:41: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
78 | #define PWM_DUTY(dty) FIELD_PREP(PWM_DUTY_MASK, dty)
| ^~~~~~~~~~
drivers/pwm/pwm-sun50i-h616.c:577:23: note: in expansion of macro 'PWM_DUTY'
577 | val = PWM_DUTY(chan->active_cycles);
| ^~~~~~~~
drivers/pwm/pwm-sun50i-h616.c: In function 'h616_add_composite_clk':
>> drivers/pwm/pwm-sun50i-h616.c:666:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
666 | mux->reg = (u64)mux->reg + reg;
| ^
drivers/pwm/pwm-sun50i-h616.c:676:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
676 | gate->reg = (u64)gate->reg + reg;
| ^
drivers/pwm/pwm-sun50i-h616.c:686:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
686 | rate->reg = (u64)rate->reg + reg;
| ^
vim +666 drivers/pwm/pwm-sun50i-h616.c
650
651 static int h616_add_composite_clk(const struct clk_pwm_data *data,
652 void __iomem *reg, spinlock_t *lock,
653 struct device *dev, struct clk_hw **hw)
654 {
655 const struct clk_ops *mux_ops = NULL, *gate_ops = NULL, *rate_ops = NULL;
656 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *rate_hw = NULL;
657
658
659 if (data->mux_hw) {
660 struct clk_mux *mux;
661
662 mux_hw = data->mux_hw;
663 mux = to_clk_mux(mux_hw);
664 mux->lock = lock;
665 mux_ops = mux_hw->init->ops;
> 666 mux->reg = (u64)mux->reg + reg;
667 }
668
669 if (data->gate_hw) {
670 struct clk_gate *gate;
671
672 gate_hw = data->gate_hw;
673 gate = to_clk_gate(gate_hw);
674 gate->lock = lock;
675 gate_ops = gate_hw->init->ops;
676 gate->reg = (u64)gate->reg + reg;
677 }
678
679 if (data->rate_hw) {
680 struct clk_divider *rate;
681
682 rate_hw = data->rate_hw;
683 rate = to_clk_divider(rate_hw);
684 rate_ops = rate_hw->init->ops;
685 rate->lock = lock;
686 rate->reg = (u64)rate->reg + reg;
687
688 if (rate->table) {
689 const struct clk_div_table *clkt;
690 int table_size = 0;
691
692 for (clkt = rate->table; clkt->div; clkt++)
693 table_size++;
694 rate->width = order_base_2(table_size);
695 }
696 }
697
698 *hw = clk_hw_register_composite(dev, data->name, data->parent_names,
699 data->num_parents, mux_hw,
700 mux_ops, rate_hw, rate_ops,
701 gate_hw, gate_ops, data->flags);
702
703 return PTR_ERR_OR_ZERO(*hw);
704 }
705
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-12-06 4:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-05 10:02 [PATCH 0/4] Introduce Allwinner H616 PWM controller Richard Genoud
2025-12-05 10:02 ` [PATCH 1/4] dt-bindings: pwm: sunxi: add PWM controller for Allwinner H616 Richard Genoud
2025-12-08 6:52 ` Krzysztof Kozlowski
2025-12-12 7:50 ` Richard GENOUD
2025-12-12 8:25 ` Krzysztof Kozlowski
2025-12-12 8:52 ` Richard GENOUD
2025-12-05 10:02 ` [PATCH 2/4] pwm: sun50i: Add H616 PWM support Richard Genoud
2025-12-06 4:22 ` kernel test robot
2025-12-06 4:32 ` kernel test robot [this message]
2025-12-06 14:24 ` kernel test robot
2025-12-08 6:09 ` Krzysztof Kozlowski
2025-12-05 10:02 ` [PATCH 3/4] arm64: dts: allwinner: h616: add PWM controller Richard Genoud
2025-12-05 10:02 ` [PATCH 4/4] MAINTAINERS: Add entry on Allwinner H616 PWM driver Richard Genoud
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=202512061246.jJ5UrB71-lkp@intel.com \
--to=lkp@intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jernej.skrabec@gmail.com \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=p.zabel@pengutronix.de \
--cc=richard.genoud@bootlin.com \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=u.kleine-koenig@baylibre.com \
--cc=wens@csie.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).