From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935524AbdCJKlG (ORCPT ); Fri, 10 Mar 2017 05:41:06 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:55266 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934752AbdCJKlC (ORCPT ); Fri, 10 Mar 2017 05:41:02 -0500 Date: Fri, 10 Mar 2017 11:40:46 +0100 (CET) From: Thomas Gleixner To: Corcodel Marian cc: Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: Incomplete type on task_pt_regs . In-Reply-To: <36b0ef31-f731-b8b4-2b5e-c38836ba1124@marian1000.go.ro> Message-ID: References: <36b0ef31-f731-b8b4-2b5e-c38836ba1124@marian1000.go.ro> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-671471794-1489142446=:3681" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-671471794-1489142446=:3681 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Marian, On Thu, 9 Mar 2017, Corcodel Marian wrote: > Try to remove suppres errors on compiler. > > Run make > > Bellow is error message from compiler: > > ./arch/x86/include/asm/processor.h:594:51: error: dereferencing pointer to > incomplete type ‘struct task_struct’ > #define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.sp0 - 1) > ^ > arch/x86/init/compat.c:27:8: note: in expansion of macro ‘task_pt_regs’ > sp = task_pt_regs(current)->sp; This is pretty useless because you miss to provide the information how that compile errors are exposed: - .config file - compiler version - source tree (branch, SHA1 of head commit) - Source file which exposes the failure Thanks, tglx --8323329-671471794-1489142446=:3681--