From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752190AbbKQNYd (ORCPT ); Tue, 17 Nov 2015 08:24:33 -0500 Received: from foss.arm.com ([217.140.101.70]:56809 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913AbbKQNYc (ORCPT ); Tue, 17 Nov 2015 08:24:32 -0500 Date: Tue, 17 Nov 2015 13:24:28 +0000 From: Catalin Marinas To: Arnd Bergmann Cc: Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM64: do not include ptrace.h from compat.h Message-ID: <20151117132428.GI6556@e104818-lin.cambridge.arm.com> References: <4870233.DUFZXD30Rq@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4870233.DUFZXD30Rq@wuerfel> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 16, 2015 at 05:32:15PM +0100, Arnd Bergmann wrote: > including ptrace.h brings a definition of BITS_PER_PAGE into device > drivers and cause a build warning in allmodconfig builds: > > drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined > #define BITS_PER_PAGE (1UL << (PAGE_SHIFT + 3)) > > This uses a slightly different way to express current_pt_regs() > that avoids the use of the header and gets away with the already > included asm/ptrace.h. > > Signed-off-by: Arnd Bergmann Applied. Thanks. -- Catalin