Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755274AbcJMNGa (ORCPT ); Thu, 13 Oct 2016 09:06:30 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:39084 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753296AbcJMNGW (ORCPT ); Thu, 13 Oct 2016 09:06:22 -0400 From: Heiko Carstens To: Andy Lutomirski , Peter Zijlstra , Linus Torvalds , Ingo Molnar , "H . Peter Anvin" Cc: Mark Rutland , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Schwidefsky Subject: [PATCH 2/3] sched/preempt: include asm/current.h Date: Thu, 13 Oct 2016 13:57:11 +0200 X-Mailer: git-send-email 2.8.4 In-Reply-To: <20161013115712.29517-1-heiko.carstens@de.ibm.com> References: <20161013115712.29517-1-heiko.carstens@de.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16101311-0028-0000-0000-0000022F9AB3 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16101311-0029-0000-0000-000020CAB0D3 Message-Id: <20161013115712.29517-3-heiko.carstens@de.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-13_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1610130206 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 782 Lines: 26 The generic preempt code needs to include . Otherwise compilation fails if THREAD_INFO_IN_TASK is selected and the generic preempt code is used: ./include/linux/thread_info.h:17:54: error: 'current' undeclared (first use in this function) #define current_thread_info() ((struct thread_info *)current) Signed-off-by: Heiko Carstens --- include/asm-generic/preempt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/asm-generic/preempt.h b/include/asm-generic/preempt.h index c1cde3577551..66fcd6cd7fc6 100644 --- a/include/asm-generic/preempt.h +++ b/include/asm-generic/preempt.h @@ -2,6 +2,7 @@ #define __ASM_PREEMPT_H #include +#include #define PREEMPT_ENABLED (0) -- 2.8.4