Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751859AbdISMVY (ORCPT ); Tue, 19 Sep 2017 08:21:24 -0400 Received: from mxp02.htp-tel.de ([212.59.41.9]:41314 "EHLO mxpout02.htp-tel.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751773AbdISMVX (ORCPT ); Tue, 19 Sep 2017 08:21:23 -0400 To: "linux-kernel@vger.kernel.org" From: =?UTF-8?Q?Stefan_M=c3=a4tje?= Subject: linux-4.14-rc1/arch/x86/include/asm/uaccess.h: Missing include of Message-ID: <371328dc-0cd7-8747-e189-cfa7005d5555@esd.eu> Date: Tue, 19 Sep 2017 14:21:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mxpin02.htp-tel.de [172.19.12.5]); Tue, 19 Sep 2017 14:21:20 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1028 Lines: 31 Resend with changed subject: Hi, there is a change in Linus' mainline kernel for 4.14-rc1 (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/x86/include/asm/uaccess.h?id=6c51e67b64d169419fb13318035bb442f9176612) that changes the set_fs() macro into an inline function. This breaks the build of an out of kernel driver I maintain with this message: ./arch/x86/include/asm/uaccess.h: In function ‘set_fs’: ./arch/x86/include/asm/uaccess.h:31:9: error: dereferencing pointer to incomplete type set_fs() is referencing the "current" pointer which is of type "struct task_struct" declared in include/linux/sched.h. Before the change set_fs() was a macro. Because I don't use it it was of no concern for me. But now the compiler needs to compile the inline function set_fs() and fails. Should I add the needed myself in my code or will that be changed / fixed in the header by including the missing header. Thanks for any advice. Best regards, Stefan Mätje