linux-next: build failure after merge of the battery tree
From: Stephen Rothwell
Date: Tue May 03 2022 - 22:35:40 EST
Hi all,
After merging the battery tree, today's linux-next build (x86_64
allmodconfig) failed like this:
drivers/power/supply/bq27xxx_battery.c: In function 'bq27xxx_battery_update':
drivers/power/supply/bq27xxx_battery.c:1767:14: error: unused variable 'has_ci_flag' [-Werror=unused-variable]
1767 | bool has_ci_flag = di->opts & BQ27XXX_O_HAS_CI;
| ^~~~~~~~~~~
cc1: all warnings being treated as errors
Caused by commit
698502318f51 ("power: supply: bq27xxx: expose battery data when CI=1")
I have applied the following patch for today:
From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Date: Wed, 4 May 2022 12:31:47 +1000
Subject: [PATCH] power: supply: bq27xxx: remove unused variable
Fixes: 698502318f51 ("power: supply: bq27xxx: expose battery data when CI=1")
Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
---
drivers/power/supply/bq27xxx_battery.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/power/supply/bq27xxx_battery.c b/drivers/power/supply/bq27xxx_battery.c
index 9adc7f43bbfd..35e6a394c0df 100644
--- a/drivers/power/supply/bq27xxx_battery.c
+++ b/drivers/power/supply/bq27xxx_battery.c
@@ -1764,7 +1764,6 @@ static int bq27xxx_battery_read_health(struct bq27xxx_device_info *di)
void bq27xxx_battery_update(struct bq27xxx_device_info *di)
{
struct bq27xxx_reg_cache cache = {0, };
- bool has_ci_flag = di->opts & BQ27XXX_O_HAS_CI;
bool has_singe_flag = di->opts & BQ27XXX_O_ZERO;
cache.flags = bq27xxx_read(di, BQ27XXX_REG_FLAGS, has_singe_flag);
--
2.35.1
--
Cheers,
Stephen Rothwell
Attachment:
pgp6m1BCFJSYc.pgp
Description: OpenPGP digital signature