Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-08-22 16:37:05 +0200
committerTakashi Iwai <tiwai@suse.de>2018-08-22 16:37:05 +0200
commitfdb66ff1a50b3046baa9bd47a2d4903400fc383c (patch)
tree0bfd42b7fd3d5b63918557ca8cd2c2f25fd621a5
parent26180061b95fe3bfcf6dc0450e29c62bf6294c12 (diff)
Fix kABI breakage with removing field addition to power_supply
(bsc#1051510). suse-commit: c24883fc8e83ad967457f3d46f37401f5da0fc95
-rw-r--r--include/linux/power_supply.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index ad97baf7b8de..9121a599b0c7 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -248,8 +248,12 @@ struct power_supply {
struct delayed_work deferred_register_work;
spinlock_t changed_lock;
bool changed;
+#ifdef __GENKSYMS__
bool initialized;
- bool removing;
+#else
+ bool initialized:1;
+ bool removing:1;
+#endif
atomic_t use_cnt;
#ifdef CONFIG_THERMAL
struct thermal_zone_device *tzd;