Received: by 10.213.65.68 with SMTP id h4csp273524imn; Wed, 21 Mar 2018 18:35:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELva+JUTuE5z1QoXoTeMPkiADNYD0dVJ801nd/pycYMCWYk4vKFb5zDGF5YVWu9ucAHOy2+x X-Received: by 2002:a17:902:d90b:: with SMTP id c11-v6mr23377466plz.200.1521682522368; Wed, 21 Mar 2018 18:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521682522; cv=none; d=google.com; s=arc-20160816; b=dWq8omePgm/opbh4pR2hZ77PsDL15Tqt2Yv3k2KXfgldWiqe60lFqa9Xm74qPGRH5/ DB6cwzsB7bxaY/kXTDAiZUWAVCo5ZRNRXuW4OJGqQbYtLkfHxaS4f3kHoAj4jclAx1uV 265ykVA2qdz8UX1+LvFtwUsp5Az5vCnZleR6kTzkj2MhHGk++cPGOv5XHggI53azbyu2 5b3LdU7zdU0wwRGZMSzLiOQqnIj0M3KHDf2nTm8SmFJI5pGQsEE4GzwQxHyIAa7MgeFm gIJH87E54rOEaTn0DUpRESx2GADORL1e2BeYsUUAAPnfV1tI4Rj9khNPmH7LoOxq1OtP Z8xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from:arc-authentication-results; bh=kAnfOqXifM2V2NR+Uxk6nbkUGvQN42WucP1ocM5lbJI=; b=SvDGr0qp46pbuUinYZPdviL0Nn0q4bFqT6gFOJY+F6w54ZQv4imRl/U7zgMn8Sr1y0 DWBAmHYAMMPm8aZTOKz2A3EKHFBxK2LsvR/7615JcHE2+o2SJ23orqgP4IxUb3ZsTrl+ 5tzT6sdrV6cNjxhPi76DHp1giv6ryGhs7oQojmiK+PQIC7PxcptDRVmldkge3Ba3BHvb 0R60mJxcRYZJiyg9P3dVK6AdcPc6GVuK7P4St4/KX1eaPs3gPiylUH8hYhsk9wnaJD10 E29wwUoxjxOS9RjI9J3+fYQ1RtSEDllXAitDlWVUsRoaM6A0n08w7AAK8bjZiUaubHab +RGQ== 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 b5-v6si3479365pli.442.2018.03.21.18.35.08; Wed, 21 Mar 2018 18:35:22 -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 S1754037AbeCVBeR (ORCPT + 99 others); Wed, 21 Mar 2018 21:34:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:46196 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752309AbeCVBeQ (ORCPT ); Wed, 21 Mar 2018 21:34:16 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4EA38AD25; Thu, 22 Mar 2018 01:34:15 +0000 (UTC) From: NeilBrown To: James Hogan Date: Thu, 22 Mar 2018 12:34:06 +1100 Cc: John Crispin , Ralf Baechle , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: ralink: remove ralink_halt() In-Reply-To: <20180321235249.GC13126@saruman> References: <87370v9mkg.fsf@notabene.neil.brown.name> <20180321235249.GC13126@saruman> Message-ID: <87po3w7v1t.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, Mar 21 2018, James Hogan wrote: > On Tue, Mar 20, 2018 at 07:29:51PM +1100, NeilBrown wrote: >>=20 >> ralink_halt() does nothing that machine_halt() >> doesn't already do, so it adds no value. >>=20 >> It actually causes incorrect behaviour due to the >> "unreachable()" at the end. This tell the compiler that the >> end of the function will never be reached, which isn't true. >> The compiler responds by not adding a 'return' instruction, >> so control simply moves on to whatever bytes come afterwards >> in memory. In my tested, that was the ralink_restart() >> function. This means that an attempt to 'halt' the machine >> would actually cause a reboot. >>=20 >> So remove ralink_halt() so that a 'halt' really does halt. >>=20 >> Signed-off-by: NeilBrown > > Thanks, I've cosmetically tweaked the commit message (mainly reflow to > 72 characters) and added: > > Fixes: c06e836ada59 ("MIPS: ralink: adds reset code") > Cc: # 3.9+ > > and applied for 4.16. > > BTW, I'm intrigued to know if there's a particular reason you don't > author / sign-off as "Neil Brown"? Its supposed to be real names, though > "NeilBrown" is hardly difficult to figure out so I don't actually > object. I started using NeilBrown way back when I was an undergrad student and it stuck. When you grow up as a Brown, you know your name isn't going to make you unique. e.g. I'm not an author of "Red Hat Linux System Administration Unleashed" (he has a space in his name!!). So I chose a different way to make my name distinctive. Yes, it isn't technically compliant - you are the second person to comment in the nearly twenty years I've been working on Linux :-) Thanks, NeilBrown --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlqzCA8ACgkQOeye3VZi gbl4NA/+M5iS2J3edM0UUHOPt+1VoIpL6IYc9fyMFN8IrT1XBwui3rRFCjsJUUpM Uv356aQByjNgcCSkvqzb/yXbsvEPS67byGjbiFY+C1xuotcNGLmcBupbUw74N3JY DgM1nsnj0oPYls0n1qmy/S9QSlPD0yU1YoTVzy5uZzg0a+qN8iBU1yBqL1yJnkaM le1lizpXEqHm7uYjyasAsLBzSPVGcdW/tBWJnpiKEGNKovI8qt1tNhne6Ai5ZfH8 kHn/W0mRz+xCXKxQ4bY1J050O4ivoFQoxmQVgEKZ73PMlZuc45PQiu/Psj1B8jSR /O9AxD2A5lMJGktyFSjbFhq92rAifPM6ym8G1ggpwmBiHUjqIcvBHov78S76JDiD TV7OwKpW3oo54I5UOcXVxf4uORBFIkg4X30ZjKb/hl0rhrTXib6SIm8KMkvm8xlr LiI8e8uGlTXee5oxj5AVa9kj6MCs0Mld0XtG83vi0ZWGowELgZMbaX81OChSPFzo VlK+0+vQzLEFc3Jt8rB6UIwYkwro+Ysf2OTkD2/fs5M7N316upGvTLPYaTqmnIDr iCr6nZQTaZVivtBfJ7aiudT+1JlpjSAYOaf1GnyDFYHIgy1tyKh/1X+5J/6DWFW3 4YhFBb2qdKvt0LebMXl6cmO3VY6mJC9VrohGaW9zaOH3E9b/Otc= =Zx1e -----END PGP SIGNATURE----- --=-=-=--