From: kbuild test robot <lkp@intel.com>
To: Guru Das Srinagesh <gurus@codeaurora.org>
Cc: kbuild-all@01.org, linux-pwm@vger.kernel.org,
Thierry Reding <thierry.reding@gmail.com>,
kernel-team@android.com, Mark Salyzyn <salyzyn@google.com>,
Sandeep Patil <sspatil@google.com>,
Subbaraman Narayanamurthy <subbaram@codeaurora.org>,
linux-kernel@vger.kernel.org,
Fenglin Wu <fenglinw@codeaurora.org>,
Guru Das Srinagesh <gurus@codeaurora.org>
Subject: Re: [PATCH 2/2] pwm: core: Add option to config PWM duty/period with u64 data length
Date: Mon, 16 Sep 2019 21:59:58 +0800 [thread overview]
Message-ID: <201909162142.BkVkPlKx%lkp@intel.com> (raw)
In-Reply-To: <1568415464-20267-2-git-send-email-gurus@codeaurora.org>
[-- Attachment #1: Type: text/plain, Size: 3199 bytes --]
Hi Guru,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[cannot apply to v5.3 next-20190915]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Guru-Das-Srinagesh/pwm-Add-different-PWM-output-types-support/20190916-151008
config: i386-randconfig-h004-201937 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-11) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
ld: drivers/hwmon/pwm-fan.o: in function `pwm_fan_resume':
>> drivers/hwmon/pwm-fan.c:440: undefined reference to `__udivdi3'
vim +440 drivers/hwmon/pwm-fan.c
d82d57767c8598 Kamil Debski 2014-07-16 420
d82d57767c8598 Kamil Debski 2014-07-16 421 static int pwm_fan_resume(struct device *dev)
d82d57767c8598 Kamil Debski 2014-07-16 422 {
d82d57767c8598 Kamil Debski 2014-07-16 423 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev);
2289711c9d4d58 Boris Brezillon 2016-04-14 424 struct pwm_args pargs;
48b9d5b4f40825 Kamil Debski 2014-11-03 425 unsigned long duty;
48b9d5b4f40825 Kamil Debski 2014-11-03 426 int ret;
d82d57767c8598 Kamil Debski 2014-07-16 427
b57e1d42939721 Stefan Wahren 2019-02-22 428 if (ctx->reg_en) {
b57e1d42939721 Stefan Wahren 2019-02-22 429 ret = regulator_enable(ctx->reg_en);
b57e1d42939721 Stefan Wahren 2019-02-22 430 if (ret) {
b57e1d42939721 Stefan Wahren 2019-02-22 431 dev_err(dev, "Failed to enable fan supply: %d\n", ret);
b57e1d42939721 Stefan Wahren 2019-02-22 432 return ret;
b57e1d42939721 Stefan Wahren 2019-02-22 433 }
b57e1d42939721 Stefan Wahren 2019-02-22 434 }
b57e1d42939721 Stefan Wahren 2019-02-22 435
48b9d5b4f40825 Kamil Debski 2014-11-03 436 if (ctx->pwm_value == 0)
d82d57767c8598 Kamil Debski 2014-07-16 437 return 0;
48b9d5b4f40825 Kamil Debski 2014-11-03 438
2289711c9d4d58 Boris Brezillon 2016-04-14 439 pwm_get_args(ctx->pwm, &pargs);
2289711c9d4d58 Boris Brezillon 2016-04-14 @440 duty = DIV_ROUND_UP(ctx->pwm_value * (pargs.period - 1), MAX_PWM);
2289711c9d4d58 Boris Brezillon 2016-04-14 441 ret = pwm_config(ctx->pwm, duty, pargs.period);
48b9d5b4f40825 Kamil Debski 2014-11-03 442 if (ret)
48b9d5b4f40825 Kamil Debski 2014-11-03 443 return ret;
48b9d5b4f40825 Kamil Debski 2014-11-03 444 return pwm_enable(ctx->pwm);
d82d57767c8598 Kamil Debski 2014-07-16 445 }
d82d57767c8598 Kamil Debski 2014-07-16 446 #endif
d82d57767c8598 Kamil Debski 2014-07-16 447
:::::: The code at line 440 was first introduced by commit
:::::: 2289711c9d4d588954ff86a06685f1579bf6c446 hwmon: pwm-fan: Use pwm_get_args() where appropriate
:::::: TO: Boris Brezillon <boris.brezillon@free-electrons.com>
:::::: CC: Thierry Reding <thierry.reding@gmail.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37366 bytes --]
next prev parent reply other threads:[~2019-09-16 14:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-13 22:57 [PATCH 1/2] pwm: Add different PWM output types support Guru Das Srinagesh
2019-09-13 22:57 ` [PATCH 2/2] pwm: core: Add option to config PWM duty/period with u64 data length Guru Das Srinagesh
2019-09-16 13:59 ` kbuild test robot [this message]
2019-09-16 14:00 ` Thierry Reding
2019-09-16 14:07 ` kbuild test robot
2019-09-16 14:01 ` [PATCH 1/2] pwm: Add different PWM output types support Thierry Reding
2019-09-24 5:43 ` Guru Das Srinagesh
2019-09-24 6:39 ` Uwe Kleine-König
2019-09-24 10:46 ` Thierry Reding
2019-09-16 18:25 ` Uwe Kleine-König
2019-09-24 6:01 ` Guru Das Srinagesh
2021-09-18 11:18 ` Greg KH
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=201909162142.BkVkPlKx%lkp@intel.com \
--to=lkp@intel.com \
--cc=fenglinw@codeaurora.org \
--cc=gurus@codeaurora.org \
--cc=kbuild-all@01.org \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=salyzyn@google.com \
--cc=sspatil@google.com \
--cc=subbaram@codeaurora.org \
--cc=thierry.reding@gmail.com \
/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).