Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508916 - hardened-sources-3.14.1 compile fails: assignment of member 'get_temp' in read-only object
Summary: hardened-sources-3.14.1 compile fails: assignment of member 'get_temp' in rea...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-27 22:38 UTC by A. Person
Modified: 2014-04-28 21:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A. Person 2014-04-27 22:38:08 UTC
gentoo-sources-3.14.1 compiles fine on my Pandaboard ES but hardened-sources-3.14.1 fails:

  CC      drivers/thermal/of-thermal.o
drivers/thermal/of-thermal.c: In function 'thermal_zone_of_add_sensor':
drivers/thermal/of-thermal.c:344:2: error: assignment of member 'get_temp' in read-only object
  tzd->ops->get_temp = of_thermal_get_temp;
  ^
drivers/thermal/of-thermal.c:345:2: error: assignment of member 'get_trend' in read-only object
  tzd->ops->get_trend = of_thermal_get_trend;
  ^
drivers/thermal/of-thermal.c: In function 'thermal_zone_of_sensor_unregister':
drivers/thermal/of-thermal.c:464:2: error: assignment of member 'get_temp' in read-only object
  tzd->ops->get_temp = NULL;
  ^
drivers/thermal/of-thermal.c:465:2: error: assignment of member 'get_trend' in read-only object
  tzd->ops->get_trend = NULL;
  ^
make[2]: *** [drivers/thermal/of-thermal.o] Error 1
make[1]: *** [drivers/thermal] Error 2
make: *** [drivers] Error 2

Reproducible: Always
Comment 1 A. Person 2014-04-28 21:40:46 UTC
hardened-sources-3.14.2 compiles fine.