Activity log for bug #1005264

Date Who What changed Old value New value Message
2012-05-27 20:00:55 Jason Conti bug added bug
2012-05-27 20:30:07 Brad Figg linux (Ubuntu): status New Incomplete
2012-05-27 22:13:32 Jason Conti linux (Ubuntu): status Incomplete Confirmed
2012-05-28 13:59:22 Luis Henriques linux (Ubuntu): status Confirmed Triaged
2012-05-28 13:59:27 Luis Henriques bug added subscriber Luis Henriques
2012-05-28 14:18:38 Luis Henriques linux (Ubuntu): assignee Luis Henriques (henrix)
2012-05-28 14:58:32 Luis Henriques description When building 3.2.0-25.40 with make-kpkg I get the following error: ERROR: "sysfs_create_link_nowarn" [drivers/power/power_supply.ko] undefined! which I believe is caused by the commits pulled in to fix https://bugs.launchpad.net/ubuntu/+source/linux/+bug/568064 The symbol sysfs_create_link_nowarn is not exported to modules, so the build fails. I'm not really sure why the build in proposed didn't fail. The following commit fixes the issue: From 93278d151e7bd35ccd0e083d7f2d8123cbaf36f8 Mon Sep 17 00:00:00 2001 From: Anton Vorontsov <cbouatmailru@gmail.com> Date: Thu, 5 Jan 2012 19:17:25 +0400 Subject: [PATCH] power_supply: Drop usage of nowarn variant of sysfs_create_link() The function is not exported to modules, plus we do want to catch anyone who tries to create complex hierarchy (in that case we'd need to change 'powers' symlink to a directory, probably under a different name to not break ABI). This patch fixes the following build error: ERROR: "sysfs_create_link_nowarn" [drivers/power/power_supply.ko] undefined! Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> --- drivers/power/power_supply_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c index bc82f95..6ad6127 100644 --- a/drivers/power/power_supply_core.c +++ b/drivers/power/power_supply_core.c @@ -159,7 +159,7 @@ EXPORT_SYMBOL_GPL(power_supply_get_by_name); int power_supply_powers(struct power_supply *psy, struct device *dev) { - return sysfs_create_link_nowarn(&psy->dev->kobj, &dev->kobj, "powers"); + return sysfs_create_link(&psy->dev->kobj, &dev->kobj, "powers"); } EXPORT_SYMBOL_GPL(power_supply_powers); -- 1.7.9.5 == Precise SRU Justification == Current kernel FTBFS if power_supply is set as a module. This has never been an issue as its built-in into the kernel. It fails with: "sysfs_create_link_nowarn" [drivers/power/power_supply.ko] undefined!" as this symbol is not exported into modules. == Fix == Upstream commit 93278d151e7bd35ccd0e083d7f2d8123cbaf36f8 fixes the build failure. == Impact == Impact shouldn't be very high. Only users building the kernel from source and setting this as a module. == Test Case == Build the kernel, setting CONFIG_POWER_SUPPLY=m in the configuration. ================================================================================ When building 3.2.0-25.40 with make-kpkg I get the following error: ERROR: "sysfs_create_link_nowarn" [drivers/power/power_supply.ko] undefined! which I believe is caused by the commits pulled in to fix https://bugs.launchpad.net/ubuntu/+source/linux/+bug/568064 The symbol sysfs_create_link_nowarn is not exported to modules, so the build fails. I'm not really sure why the build in proposed didn't fail. The following commit fixes the issue: From 93278d151e7bd35ccd0e083d7f2d8123cbaf36f8 Mon Sep 17 00:00:00 2001 From: Anton Vorontsov <cbouatmailru@gmail.com> Date: Thu, 5 Jan 2012 19:17:25 +0400 Subject: [PATCH] power_supply: Drop usage of nowarn variant of  sysfs_create_link() The function is not exported to modules, plus we do want to catch anyone who tries to create complex hierarchy (in that case we'd need to change 'powers' symlink to a directory, probably under a different name to not break ABI). This patch fixes the following build error:  ERROR: "sysfs_create_link_nowarn" [drivers/power/power_supply.ko] undefined! Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> ---  drivers/power/power_supply_core.c | 2 +-  1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c index bc82f95..6ad6127 100644 --- a/drivers/power/power_supply_core.c +++ b/drivers/power/power_supply_core.c @@ -159,7 +159,7 @@ EXPORT_SYMBOL_GPL(power_supply_get_by_name);  int power_supply_powers(struct power_supply *psy, struct device *dev)  { - return sysfs_create_link_nowarn(&psy->dev->kobj, &dev->kobj, "powers"); + return sysfs_create_link(&psy->dev->kobj, &dev->kobj, "powers");  }  EXPORT_SYMBOL_GPL(power_supply_powers); -- 1.7.9.5
2012-05-28 18:00:16 Tim Gardner nominated for series Ubuntu Precise
2012-05-28 18:00:16 Tim Gardner bug task added linux (Ubuntu Precise)
2012-05-28 18:00:16 Tim Gardner nominated for series Ubuntu Quantal
2012-05-28 18:00:16 Tim Gardner bug task added linux (Ubuntu Quantal)
2012-05-28 18:00:28 Tim Gardner linux (Ubuntu Precise): status New Fix Committed
2012-05-28 18:00:33 Tim Gardner linux (Ubuntu Quantal): status Triaged Fix Released
2012-05-28 18:00:56 Tim Gardner linux (Ubuntu Precise): assignee Luis Henriques (henrix)
2012-05-29 22:21:17 Joseph Salisbury linux (Ubuntu Precise): importance Undecided Medium
2012-05-29 22:21:19 Joseph Salisbury linux (Ubuntu Quantal): importance Undecided Medium
2012-06-18 09:41:57 Luis Henriques tags verification-done-precise
2012-06-20 21:04:50 Launchpad Janitor branch linked lp:ubuntu/precise-proposed/linux-ti-omap4
2012-06-25 20:24:37 Launchpad Janitor branch linked lp:ubuntu/precise-proposed/linux-armadaxp
2012-06-28 16:51:15 Launchpad Janitor linux (Ubuntu Precise): status Fix Committed Fix Released
2012-06-28 16:51:15 Launchpad Janitor cve linked 2012-2375
2012-11-14 21:30:44 Launchpad Janitor branch linked lp:ubuntu/precise-proposed/linux-lowlatency