From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH] power/poweroff.c: mark variables with __initdata and __maybe_unused Date: Thu, 2 May 2019 20:22:50 +0200 Message-ID: <20190502182250.GA4845@amd> References: <20190502074305.GA6039@vostro> <20190502101500.GA23980@amd> <20190502175958.GA14955@vostro> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OgqxwSJOaUobr8KG" Return-path: Content-Disposition: inline In-Reply-To: <20190502175958.GA14955@vostro> Sender: linux-kernel-owner@vger.kernel.org To: Nikitas Angelinas Cc: "Rafael J. Wysocki" , Len Brown , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-pm@vger.kernel.org --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2019-05-02 10:59:58, Nikitas Angelinas wrote: > On Thu, May 02, 2019 at 12:15:00PM +0200, Pavel Machek wrote: > > On Thu 2019-05-02 00:43:05, Nikitas Angelinas wrote: > > > There is no need to keep sysrq_poweroff_op after initialization, so m= ark > > > it with __initdata. > >=20 > > Are you sure? > >=20 > > pavel@duo:/data/l/k$ grep -ri sysrq_key_op . | grep initdata > > pavel@duo:/data/l/k$ > >=20 > >=20 > > Pavel > >=20 > I am sorry about this. I completely missed the point of registering this > structure. Please ignore this patch. >=20 Yup. You can have Acked-by: for the other parts. Pavel > > > =20 > > > -static struct sysrq_key_op sysrq_poweroff_op =3D { > > > +static struct sysrq_key_op sysrq_poweroff_op __initdata =3D { > > > .handler =3D handle_poweroff, > > > .help_msg =3D "poweroff(o)", > > > .action_msg =3D "Power Off", > >=20 > > --=20 > > (english) http://www.livejournal.com/~pavelmachek > > (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses= /blog.html >=20 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --OgqxwSJOaUobr8KG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlzLNXoACgkQMOfwapXb+vKmjgCgnFC4NkPKTlbkBpxuDlHQPYfp TToAoKbW6WSTatCwlvhlp9pUbt/Obi4P =kXiy -----END PGP SIGNATURE----- --OgqxwSJOaUobr8KG--