From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751297AbbDUNva (ORCPT ); Tue, 21 Apr 2015 09:51:30 -0400 Received: from mga11.intel.com ([192.55.52.93]:9537 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751106AbbDUNv2 (ORCPT ); Tue, 21 Apr 2015 09:51:28 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,616,1422950400"; d="scan'208";a="683378915" Date: Tue, 21 Apr 2015 06:51:27 -0700 From: Andi Kleen To: Thomas Gleixner Cc: Andi Kleen , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86: Reset FPU on exec Message-ID: <20150421135127.GB13605@tassilo.jf.intel.com> References: <1429319214-27418-1-git-send-email-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 21, 2015 at 11:35:58AM +0200, Thomas Gleixner wrote: > On Fri, 17 Apr 2015, Andi Kleen wrote: > > > +void reset_fpu(void) > > +{ > > + drop_init_fpu(current); > > +} > > So we have a new function which is merily a wrapper around a non > existent function. I originally tried to use the inline function directly, but it's defined in "fpu-internal.h" and including it in asm/elf.h causing all kinds of issues. > > What's the exact purpose of this patch aside of breaking the build? Try reading the description? Also it builds fine here. -Andi -- ak@linux.intel.com -- Speaking for myself only