Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752645AbdIRSrl (ORCPT ); Mon, 18 Sep 2017 14:47:41 -0400 Received: from mxp01.htp-tel.de ([212.59.41.8]:46955 "EHLO mxpout01.htp-tel.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752304AbdIRSrj (ORCPT ); Mon, 18 Sep 2017 14:47:39 -0400 X-Greylist: delayed 917 seconds by postgrey-1.27 at vger.kernel.org; Mon, 18 Sep 2017 14:47:39 EDT From: =?UTF-8?Q?Stefan_M=c3=a4tje?= Subject: Change of set_fs() in uaccess.h breaks this header being self contained for x86 (4.14-rc1) To: "linux-kernel@vger.kernel.org" Message-ID: Date: Mon, 18 Sep 2017 20:32:19 +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 (mxpin01.htp-tel.de [172.19.12.4]); Mon, 18 Sep 2017 20:32:20 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 984 Lines: 28 Hi, there is a change in Linus' mainline kernel (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