From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82612C004C9 for ; Tue, 7 May 2019 22:59:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B2B820C01 for ; Tue, 7 May 2019 22:59:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726506AbfEGW7R (ORCPT ); Tue, 7 May 2019 18:59:17 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:53748 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726091AbfEGW7R (ORCPT ); Tue, 7 May 2019 18:59:17 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hO932-0004UC-H9; Tue, 07 May 2019 22:58:56 +0000 Date: Tue, 7 May 2019 23:58:56 +0100 From: Al Viro To: Yury Norov Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Breno Leitao , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Yury Norov Subject: Re: [PATCH] powerpc: restore current_thread_info() Message-ID: <20190507225856.GP23075@ZenIV.linux.org.uk> References: <20190507225121.18676-1-ynorov@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190507225121.18676-1-ynorov@marvell.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 07, 2019 at 03:51:21PM -0700, Yury Norov wrote: > Commit ed1cd6deb013 ("powerpc: Activate CONFIG_THREAD_INFO_IN_TASK") > removes the function current_thread_info(). It's wrong because the > function is used in non-arch code and is part of API. In include/linux/thread_info.h: #ifdef CONFIG_THREAD_INFO_IN_TASK /* * For CONFIG_THREAD_INFO_IN_TASK kernels we need for the * definition of current, but for !CONFIG_THREAD_INFO_IN_TASK kernels, * including can cause a circular dependency on some platforms. */ #include #define current_thread_info() ((struct thread_info *)current) #endif