Received: by 10.213.65.68 with SMTP id h4csp459396imn; Tue, 13 Mar 2018 09:44:00 -0700 (PDT) X-Google-Smtp-Source: AG47ELu57IHOgKdc/lWsTdfEN1Wwogf1fxx9y25S1dbEDbhS8DHgvKuA81Ip7J++JbG2CrSdxd0F X-Received: by 10.101.82.69 with SMTP id q5mr985954pgp.259.1520959440359; Tue, 13 Mar 2018 09:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520959440; cv=none; d=google.com; s=arc-20160816; b=Ym4KWVtqvIXu6b1QhKeydpEXFGv5niuC22dGK2m9+CVafpIrxDeFnxYb/+lE51YJ1a UK4zdjnrnaYPYS+VoACn9TvbKDeHlpQdgbOW+XOhmkRLQVcrh6JZmX8JK8QxlBfiO+8W 0ki4WU2e+1K+RiaVZk/dhMQsTYytMzPinv9Pi7S5R35XOGiL7xaKLA6o0nUCkQj+lM+Q L4MJX6Xv8VDVb4NAJv401Xy7xJTUuR9Jx0yFW8g9HGFeWdhuiXvrFB4iNsCrBzSTpTHL tG1at/OGLM9SVGatZVM5iRc+zfpG1cn+OYHz2notAnhij1qezuowSEIt/ehAz7mOXpLN eW7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ukRKcFprn+4V8+DJGRWFlTQ7imqJ0N6vKtkGavP7bkg=; b=EkWIkpAG3pAhqXyf6O8OK7oB7IwzA8PGhU0qHYwEScEEv+9Irdv90zHnb7Zmdh44Xz 9eX4zOxXko8oelLpSmuBgbKp8QGNmB/LdqkEKpZ6PfRU6m4PuWNMd3mgfIpKREzYB0ra kc0hB1GUdPmxnhrS+hD7Q6uPUigiIZKpagrUbuecNz9JsRHBexF5apBUwb7bWLD0ZxHb HOGUxTgU1su4cOkGTIb9ZUBYYBldvAf+goFJmIsfZubVKvxVOSAtZ0rotOqb7DZ5JDkg iMHpUB1OoXcSZ4hk99k8yegtiPi2zd02HowHmejOJfqOUM2KgSJ/pRtsQ3WXUzXBwwo5 vTRw== 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 e12-v6si306175plj.126.2018.03.13.09.43.45; Tue, 13 Mar 2018 09:44:00 -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 S933361AbeCMPbi (ORCPT + 99 others); Tue, 13 Mar 2018 11:31:38 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59326 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933324AbeCMPbe (ORCPT ); Tue, 13 Mar 2018 11:31:34 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 88AA111ED; Tue, 13 Mar 2018 15:31:33 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jan Beulich , Thomas Gleixner , Andy Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , "H. Peter Anvin" , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , Ingo Molnar Subject: [PATCH 4.15 087/146] x86/LDT: Avoid warning in 32-bit builds with older gcc Date: Tue, 13 Mar 2018 16:24:14 +0100 Message-Id: <20180313152327.476871213@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jan Beulich commit f2f18b16c779978ece4a04f304a92ff9ac8fbce5 upstream. BUG() doesn't always imply "no return", and hence should be followed by a return statement even if that's obviously (to a human) unreachable. Signed-off-by: Jan Beulich Acked-by: Thomas Gleixner Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/5A8AF2AA02000078001A91E9@prv-mh.provo.novell.com Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/mmu_context.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/x86/include/asm/mmu_context.h +++ b/arch/x86/include/asm/mmu_context.h @@ -74,6 +74,7 @@ static inline void *ldt_slot_va(int slot return (void *)(LDT_BASE_ADDR + LDT_SLOT_STRIDE * slot); #else BUG(); + return (void *)fix_to_virt(FIX_HOLE); #endif }