Received: by 10.213.65.68 with SMTP id h4csp427560imn; Tue, 13 Mar 2018 08:44:09 -0700 (PDT) X-Google-Smtp-Source: AG47ELvWImKXEYB6J6THNB1lmSjkkPkvsv7A24zUeuascsUEnqit90qaC7Nantpq5lNbDvgqOPWx X-Received: by 10.98.33.204 with SMTP id o73mr1077837pfj.54.1520955849569; Tue, 13 Mar 2018 08:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520955849; cv=none; d=google.com; s=arc-20160816; b=II1Ew6/8Kyx5CKyjJVT8OcNKj5cjyxq+l454+HvbWEBg8Ud6gG8GsDC3ZgdWc32s5z 18uDqm+MS5NY94XVsH0d23gHo8N4jchO/AdodPiqrNShu2x2o0FMLQMwda0QWfAcFmpv 6ry0dWiI1dkHR2h1KyhgUyBiPP7y3QZE9LJ8Cn1rePHfDbN/CGs4R7Umfzq0iaKnyMuF GmpXj1yow0qqujUWv0uxkfy9WqdzPRpZu4DV4oyVBzlObNMe5ldYILy+4ItpMlbsVF9c yEG0PfXyKWM9TMRzN88yF1D1Y/t21LO4aFPRk0UwfkcgknAKnYZA+LC3kkV+R+A2yDGm 2w0w== 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=zYKgMXooVifRP8Q1x4BaAZIBaQA2zU6oNYSVDolI6HU=; b=myxyKBBR3PX2sc8DTD0qyT4DybtXrNqfQnO2cg//jx3TwQPViY3Ti3h5DP1lqDH9RR Py7gnCLTjabcTffavIIcH/qwY/mxXEkVJvOOqQ5UySvr3Q3N+YXa96s5ibTNUPHn8hnS GrtbkvaBRu7M7HVf/VkDlLn6VlJvrP3/nj4VhppwCdbmnYS4m1q+LJ9zgmVcu2WhFGp8 aTI9QhQxpcRFk+kVqllr4PtnP0qL7GDyUaVyP0ne2kxmWR8+2pELvCO35/akbvw+8eq5 7G/MBRLHdCoL5884mz20hnPD2i2VgAiJFlK8DE55ASw8Ls3yNhbm4usdPsF/jdoit32C UoUg== 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 80si342316pfn.73.2018.03.13.08.43.55; Tue, 13 Mar 2018 08:44:09 -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 S934944AbeCMPk7 (ORCPT + 99 others); Tue, 13 Mar 2018 11:40:59 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36344 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934300AbeCMPk4 (ORCPT ); Tue, 13 Mar 2018 11:40:56 -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 B2FE7116E; Tue, 13 Mar 2018 15:40:44 +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.14 121/140] x86/LDT: Avoid warning in 32-bit builds with older gcc Date: Tue, 13 Mar 2018 16:25:24 +0100 Message-Id: <20180313152506.315282732@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@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.14-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 }