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
hardened-sources-3.14.2 compiles fine.