From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9E86C04AA8 for ; Thu, 2 May 2019 10:15:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C185720873 for ; Thu, 2 May 2019 10:15:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726505AbfEBKPE (ORCPT ); Thu, 2 May 2019 06:15:04 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:50591 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726324AbfEBKPD (ORCPT ); Thu, 2 May 2019 06:15:03 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 5591E80407; Thu, 2 May 2019 12:14:51 +0200 (CEST) Date: Thu, 2 May 2019 12:15:00 +0200 From: Pavel Machek To: Nikitas Angelinas Cc: "Rafael J. Wysocki" , Len Brown , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] power/poweroff.c: mark variables with __initdata and __maybe_unused Message-ID: <20190502101500.GA23980@amd> References: <20190502074305.GA6039@vostro> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline In-Reply-To: <20190502074305.GA6039@vostro> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2019-05-02 00:43:05, Nikitas Angelinas wrote: > There is no need to keep sysrq_poweroff_op after initialization, so mark > it with __initdata. Are you sure? pavel@duo:/data/l/k$ grep -ri sysrq_key_op . | grep initdata pavel@duo:/data/l/k$ 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 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --YZ5djTAD1cGYuMQK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlzKwyMACgkQMOfwapXb+vLMRgCfdk7iKvloiJkSvH+FPrpjTsra ZCcAn22sx6lE/WSXjd2YF0EmcFQamlbF =vw8d -----END PGP SIGNATURE----- --YZ5djTAD1cGYuMQK--