Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3441046imu; Sun, 11 Nov 2018 15:09:50 -0800 (PST) X-Google-Smtp-Source: AJdET5c0ZfDxT5hzP39F9aHws3ixURrkSwe2L/VB7Zoy+JkXRCRWqoOSRBP+Hr1GVCnSKJQe874W X-Received: by 2002:a62:6d83:: with SMTP id i125-v6mr18111834pfc.184.1541977790575; Sun, 11 Nov 2018 15:09:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541977790; cv=none; d=google.com; s=arc-20160816; b=ChUnaA19U4sHzieh155bJlmntQvL36z2NFqHQNE04N8BChav/e5YSfObn/UC+q372k uNmK60LYpGcB5A9ZtM8ZeU2+gM2/b2b6Cztz1sEpy4QJBnl6XJ1h3lW5NnBXDmGOUSys cQG4zAaTmkS6nTV9DAVLlc+a63igCXcrNfVJpmDAvhIMTasRsDAKpwVIpmwLSgZFtBpE +vOo3zwBBcWxrmrOFJRKDz12W5NlVbjlhgZPIitVCLXHNFFrs9oNm/t70Rkv/clj8M9h PHaIugFWnltnSflXHGu2zfl+QsuE6t4V1vmr2Fy5dxiRWUDzHwCJUCyyVYyV9oqR1Tvx lieg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=F9ttMTjDStZs0+0Mh+Bv9tQmbFiosRrPvWNOATFVVmM=; b=lzIT1IrO2l+3Fta16L3VBgAK/aVuFK2yBBPBVjsNsKW6HS4rzUWHhULB1Xoq1+6gVl 2eeOu1urb4YPoAyTph9kbiNwZKkVSBb4o+mB7BW4h35YY9fFvJPvzFVScfsBh08jQPag plFUMYnEz77pkqvODOIRlfBV7DkGmYi8lf0S+WB+TFQI3jiGZKLDZ8D21hs2HtT4MLl9 99vXPdjXe5koBRs/379dV33bTwEEodDIgEui5zTnxHzC5SmV1MKNR3sCxQYlYMylDeGN z9KF0AP6CYijkHPeoKjWwH9Id96ZnVkwnM+kGHJhiE79DLdTr3Oo+lTKRuYJG1OCq4La 590Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U8hAcdlZ; 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 i20-v6si13001986pgk.562.2018.11.11.15.09.35; Sun, 11 Nov 2018 15:09:50 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=U8hAcdlZ; 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 S2390530AbeKLI6Y (ORCPT + 99 others); Mon, 12 Nov 2018 03:58:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:50044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390260AbeKLIWG (ORCPT ); Mon, 12 Nov 2018 03:22:06 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 99CE02245E; Sun, 11 Nov 2018 22:32:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975529; bh=BuqZv1Y+lfbXJPeSzshdSOH/YJYRrP1551yU6MMUv0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U8hAcdlZGWp27VlqZnQr/iKBEBNkZFs9/gOnaf3SLUVtuRF5xTcx7nD+Xr7lcbC2h JBCOX/Td1/TZ6HPc3Rj79hGn2nTu5hOXrLBshJ1iVJQXaApZxq5sO3bKoO5/cQtIur r0Jvd9GCTQsg+yRpEAibXXE8rZ29UZRVk/zCws+w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sebastian Andrzej Siewior , Andy Lutomirski , Borislav Petkov , Dave Hansen , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Sasha Levin Subject: [PATCH 4.14 035/222] x86/fpu: Remove second definition of fpu in __fpu__restore_sig() Date: Sun, 11 Nov 2018 14:22:12 -0800 Message-Id: <20181111221651.347421507@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Sebastian Andrzej Siewior [ Upstream commit 6aa676761d4c1acfa31320e55fa1f83f3fcbbc7a ] Commit: c5bedc6847c3b ("x86/fpu: Get rid of PF_USED_MATH usage, convert it to fpu->fpstate_active") introduced the 'fpu' variable at top of __restore_xstate_sig(), which now shadows the other definition: arch/x86/kernel/fpu/signal.c:318:28: warning: symbol 'fpu' shadows an earlier one arch/x86/kernel/fpu/signal.c:271:20: originally declared here Remove the shadowed definition of 'fpu', as the two definitions are the same. Signed-off-by: Sebastian Andrzej Siewior Reviewed-by: Andy Lutomirski Cc: Borislav Petkov Cc: Dave Hansen Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Fixes: c5bedc6847c3b ("x86/fpu: Get rid of PF_USED_MATH usage, convert it to fpu->fpstate_active") Link: http://lkml.kernel.org/r/20181016202525.29437-3-bigeasy@linutronix.de Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/fpu/signal.c | 1 - 1 file changed, 1 deletion(-) --- a/arch/x86/kernel/fpu/signal.c +++ b/arch/x86/kernel/fpu/signal.c @@ -314,7 +314,6 @@ static int __fpu__restore_sig(void __use * thread's fpu state, reconstruct fxstate from the fsave * header. Validate and sanitize the copied state. */ - struct fpu *fpu = &tsk->thread.fpu; struct user_i387_ia32_struct env; int err = 0;