From: kbuild test robot <lkp@intel.com>
To: Richard Tresidder <rtresidd@electromag.com.au>
Cc: kbuild-all@01.org, sre@kernel.org, enric.balletbo@collabora.com,
ncrews@chromium.org, andrew.smirnov@gmail.com,
groeck@chromium.org, rtresidd@electromag.com.au,
david@lechnology.com, tglx@linutronix.de,
kstewart@linuxfoundation.org, gregkh@linuxfoundation.org,
rfontana@redhat.com, allison@lohutok.net, baolin.wang@linaro.org,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [RESEND v2 1/1] power/supply/sbs-battery: Fix confusing battery status when idle or empty
Date: Sat, 27 Jul 2019 04:31:17 +0800 [thread overview]
Message-ID: <201907270417.JOqeHZuN%lkp@intel.com> (raw)
In-Reply-To: <1564044929-26104-1-git-send-email-rtresidd@electromag.com.au>
[-- Attachment #1: Type: text/plain, Size: 2303 bytes --]
Hi Richard,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.3-rc1 next-20190726]
[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/Richard-Tresidder/power-supply-sbs-battery-Fix-confusing-battery-status-when-idle-or-empty/20190727-031454
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
drivers/power//supply/sbs-battery.c: In function 'sbs_status_correct':
>> drivers/power//supply/sbs-battery.c:296:65: error: expected ')' before '{' token
if ((*intval == POWER_SUPPLY_STATUS_DISCHARGING && (ret == 0)) {
^
>> drivers/power//supply/sbs-battery.c:305:1: error: expected expression before '}' token
}
^
>> drivers/power//supply/sbs-battery.c:305:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +296 drivers/power//supply/sbs-battery.c
285
286 static int sbs_status_correct(struct i2c_client *client, int *intval)
287 {
288 int ret;
289
290 ret = sbs_read_word_data(client, sbs_data[REG_CURRENT].addr);
291 if (ret < 0)
292 return ret;
293
294 ret = (s16)ret;
295
> 296 if ((*intval == POWER_SUPPLY_STATUS_DISCHARGING && (ret == 0)) {
297 /* Charging indicator not set in battery */
298 *intval = POWER_SUPPLY_STATUS_IDLE;
299 } else if ((*intval == POWER_SUPPLY_STATUS_FULL) && (ret < 0)) {
300 /* Full Flag set but we are discharging */
301 *intval = POWER_SUPPLY_STATUS_DISCHARGING;
302 }
303
304 return 0;
> 305 }
306
---
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: 71381 bytes --]
prev parent reply other threads:[~2019-07-26 20:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-25 8:55 Richard Tresidder
2019-07-26 17:47 ` Nick Crews
2019-07-26 20:31 ` kbuild test robot [this message]
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=201907270417.JOqeHZuN%lkp@intel.com \
--to=lkp@intel.com \
--cc=allison@lohutok.net \
--cc=andrew.smirnov@gmail.com \
--cc=baolin.wang@linaro.org \
--cc=david@lechnology.com \
--cc=enric.balletbo@collabora.com \
--cc=gregkh@linuxfoundation.org \
--cc=groeck@chromium.org \
--cc=kbuild-all@01.org \
--cc=kstewart@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=ncrews@chromium.org \
--cc=rfontana@redhat.com \
--cc=rtresidd@electromag.com.au \
--cc=sre@kernel.org \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®