[ltp] Re: tp-smapi module dkms install error with grsecurity patched

Sean Behan linux-thinkpad@linux-thinkpad.org
Sat, 23 Jul 2016 01:09:38 -0400


--IJpNTDwzlM2Ie8A6
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hey Evgeni,

That seemed to work

Thank you :)

Sean

On Sun, Jul 17, 2016 at 12:01:01PM +0200, linux-thinkpad-request@linux-thin=
kpad.org wrote:
> Send Linux-Thinkpad mailing list submissions to
> 	linux-thinkpad@linux-thinkpad.org
>=20
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
> or, via email, send a message with subject or body 'help' to
> 	linux-thinkpad-request@linux-thinkpad.org
>=20
> You can reach the person managing the list at
> 	linux-thinkpad-admin@linux-thinkpad.org
>=20
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Linux-Thinkpad digest..."
>=20
>=20
> Today's Topics:
>=20
>    1. Re: tp-smapi module dkms install error with grsecurity patched
>        kernel (Evgeni Golov)
>=20
> --__--__--
>=20
> Message: 1
> Date: Sat, 16 Jul 2016 13:24:11 +0200
> From: Evgeni Golov <evgeni@golov.de>
> To: linux-thinkpad@linux-thinkpad.org
> Subject: Re: [ltp] tp-smapi module dkms install error with grsecurity pat=
ched
>  kernel
> Reply-To: linux-thinkpad@linux-thinkpad.org
>=20
> Hi Sean,
>=20
> On Sat, Jul 16, 2016 at 01:47:02AM -0400, Sean Behan wrote:
>=20
> > /var/lib/dkms/tp_smapi-dkms/0.42/build/hdaps.c:738:33: error: constifie=
d variable =C3=A2=C2=80=C2=98hdaps_whitelist=C3=A2=C2=80=C2=99 placed into =
writable section ".init.data"
> >  struct dmi_system_id __initdata hdaps_whitelist[] =3D {
>=20
> Can you try the following patch please?
>=20
> --- a/hdaps.c
> +++ b/hdaps.c
> @@ -735,7 +735,7 @@ static int __init hdaps_dmi_match_invert(const struct=
 dmi_system_id *id)
>     Note that HDAPS_DMI_MATCH_NORMAL("ThinkPad T42") would match
>     "ThinkPad T42p", and enumeration stops after first match,
>     so the order of the entries matters. */
> -struct dmi_system_id __initdata hdaps_whitelist[] =3D {
> +struct dmi_system_id __initconst hdaps_whitelist[] =3D {
>         HDAPS_DMI_MATCH_INVERT("IBM", "ThinkPad R50p", HDAPS_ORIENT_INVER=
T_XY),
>         HDAPS_DMI_MATCH_INVERT("IBM", "ThinkPad R60", HDAPS_ORIENT_INVERT=
_XY),
>         HDAPS_DMI_MATCH_INVERT("IBM", "ThinkPad T41p", HDAPS_ORIENT_INVER=
T_XY),
>=20
> Basically just change __initdata to __initconst.
>=20
> Greets
> Evgeni
>=20
>=20
>=20
>=20
>=20
> --__--__--
>=20
> --=20
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>=20
> End of Linux-Thinkpad Digest

--IJpNTDwzlM2Ie8A6
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXkvwNAAoJEJkpCQpBmcmTrO0P/iv5h5O/j2el5S84jEO01XLu
f0ASREH5xLQbVwZT1Wz2gaV2x9LSl6OdP5yHaWO2tWhHCut9g3DnBYmVbU6dZJ21
F+ka4Aka2loLgQ60FrDq3yZZCxdSfWdYnx0C6ynuR9CsZJh5BZPEHHo/TgS3I6uB
nCtiQkI3ZH7hUqKF0eOI5SFYbYlyoInqE5VQmjSn9aZDAO9kBqyYO87/AzThji/b
8h9e6dpM7TNj6J18gDzWzMz0XHePGc8bcEPlAnZacCUOKzSGbOM5w1Traw5/iuHx
zmWZ0lVwhsJV5E3v4y6BMpt4TQoBfzrKxYJC3c1Jw2J5NklRaLzG2IRhtn+q1AOv
DPXtaU22wRntYYGZfas10isjB738dlpbxX6+VRD3/z7dmsY9ISft4RJqbUzyluxw
BctMGRrkz55krGFMqmD4NnbGhuxsNuyBoQ0vdJtwnycnNUSQNui0FDFr1PwHlnpy
fwBTC/pa/w53+cZXoI+tWlqndRSh6EcHudODAFccSx/mH5XViSVL+RiWTwVw10nc
ir6MDc8tPanrEb+j5YhNrlqGzAq6UTpyZUX2c6lQ6oVuXJOF+g6ubnj+h7cu9zcU
4Vms/cK6wGDx9cD1VM3T5Uw0WPMTVsJ1DVVx7hx2gMrejxbjlJHGLDc0+4B607Gu
Z6BgOX24B8gT1Yqnak25
=XSEc
-----END PGP SIGNATURE-----

--IJpNTDwzlM2Ie8A6--