Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7526721yba; Thu, 2 May 2019 11:24:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3FrSChCrMwdsxuc+ZB09wfJxWbjAwxk28S5txBysJoUAA/wcCAVrYtk/mg34wzYm30nA2 X-Received: by 2002:a17:902:6ac6:: with SMTP id i6mr5277584plt.313.1556821486138; Thu, 02 May 2019 11:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556821486; cv=none; d=google.com; s=arc-20160816; b=cqon248YoLkcFm7okc1NK0z4zQpxw9SG1cvxn4t4LwPNhSpKb2WmoCskSqA4arn8ZH AMVYWU6tF2tDiSsws8JyJ4E4CxdxSbwtzTxcG5axsUYbs4ydoPqmV+qpcwlu7sRJA6Jf nllwotvjGJcNsM62K7Lfq6cTpwV3KCZUyeZFdwcehPn8Cu6JCO3YsxTIDnr6xnozGNzZ eKGVVTgLGXwzTde9jEN4roLsEs5FOi80E2zdXg4b8d/6GB5/Kts0ffRhBbWftFdn2uFD uY/K5qcyg/HVvWXO4uhZhzwKyogJ4lniFPy/2GoF42YkfYe7Egx1SUsNXC7S67c7NZgZ aiig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=KU37UBVt4x4t8UHU4rtb7IvQIwdRBZCwvF4kQO8QfW8=; b=LoBhvGYHr6Q14g40iiZsg4YW3+5Qcvqwohik+CAZZtP5du5Zur61PGXKudmOFDjlJD Es0SMb2SoXFXwPwdTcI5F0zxHf2P9OCPNVV6zs6uc5gLyKmle40VJu66a3VUQxWasXyU QBzLSuNDfSzZW599UTbm3Lj5cbGW6MaDrTNrt72RQMOhswk8o8s+uj6v3GPD9XVavFUc F3JCN8rlVTSseWfBwlhF0fmTa/8Ot1QbnwjcHTKqRaF89ZMWkBqs7YYiVKegJHHcOAib pwghM4wVyL8E0dTnUtQDvHqJSYYrbNqa/kcdl816osNSi70+874wl/lQ+kokePJMvPdK 6hxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17si46683750pfj.38.2019.05.02.11.24.29; Thu, 02 May 2019 11:24:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726255AbfEBSWx (ORCPT + 99 others); Thu, 2 May 2019 14:22:53 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:57862 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbfEBSWw (ORCPT ); Thu, 2 May 2019 14:22:52 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id A790E802ED; Thu, 2 May 2019 20:22:40 +0200 (CEST) Date: Thu, 2 May 2019 20:22:50 +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: <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" Content-Disposition: inline In-Reply-To: <20190502175958.GA14955@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 --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--