From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751882AbeAAVgO (ORCPT + 1 other); Mon, 1 Jan 2018 16:36:14 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:36950 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751487AbeAAVgN (ORCPT ); Mon, 1 Jan 2018 16:36:13 -0500 X-Google-Smtp-Source: ACJfBou41CCKIhjlvHTj676CVw7D7qmn8O+VkWBVtf+O8fnNACHH0KMWhIg/+b5JeHBAZGfh8cUnVw== Date: Mon, 1 Jan 2018 11:36:08 -1000 From: Joey Pabalinas To: x86@kernel.org Cc: hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, linux-kernel@vger.kernel.org, Joey Pabalinas Subject: [PATCH] arch/x86: add __noreturn __cold to fortify_panic() Message-ID: <20180101213608.3enfuk7noaui4ull@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3zzx75tivzvnchk2" Content-Disposition: inline User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: --3zzx75tivzvnchk2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Definition of `fortify_panic()` doesn't match the declaration in include/linux/string.h. Add the missing __noreturn __cold attributes to `fortify_panic()`. Signed-off-by: Joey Pabalinas --- arch/x86/boot/compressed/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/mis= c.c index 98761a1576ceb5c21b..707cf3f339e37f7f8c 100644 --- a/arch/x86/boot/compressed/misc.c +++ b/arch/x86/boot/compressed/misc.c @@ -428,7 +428,7 @@ asmlinkage __visible void *extract_kernel(void *rmode, = memptr heap, return output; } =20 -void fortify_panic(const char *name) +void __noreturn __cold fortify_panic(const char *name) { error("detected buffer overflow"); } --=20 2.15.1 --3zzx75tivzvnchk2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKlZXrihdNOcUPZTNruvLfWhyVBkFAlpKqcgACgkQruvLfWhy VBkkVA/7B4oO7PVWbEMSVuFjlDI3aIj5JGR2jnOmWkbobiYyfVgjQdyEQ3nRXFlG ZCyaSHEARKwJxTKVqxDqQujINvFth8BTw5mghmLVDw7l28uN7cZ01G+bVmiIwvPT muBQ/UoXyUrel1a/poTLZb760zBDmupKCLnpFpxy9poGn+H8yuaq1+6cmdJ01zwX 56JF95I8I4CW6tjH7aVAC4HXIH7FO+iqWONVKaXuq9tKdETdPhJo8peJiZPxAZBB YSW5YO2U1UI1qi8VoCvt0o2ghzT4d2GcmvdmxwHl6x0SrIWcqNSMRdEBHFsTCuSs 36iZdjeZyOCYrEvTiDo1NtS+sialE1pSskNI1pmsnC6aT10IkOvPf5dKd7khqqif eLmAmuiaXu+zrQxS9bUojrCAQSV6/ubTDdddLVfugceh1hlQLZs50j00QsmzcMwF 0eCprQ+cIH+9UXR8sZCLokl98/+CVRL5USBMHSgNIL22OItd6v5Ma+bAYkHRYwPU xodd33f1dqB4UDLr6QspU5ltr6uERcIPOI/hJvDm76NUcwcf+vkc7eUbuwZFChDb fLyY6hEevISxIdtFTA+GLoDZRCWHhUngFFeFQuhAsZytXf8VWE6xGdrTAx+xDD9u 8bnDbKGZNfh5AtpiAM3oJKKaH80P5l+yLCqlH1zTeOC1Ix1mM4I= =A6GS -----END PGP SIGNATURE----- --3zzx75tivzvnchk2--