Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754048AbcCMQAa (ORCPT ); Sun, 13 Mar 2016 12:00:30 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:59679 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbcCMQA3 (ORCPT ); Sun, 13 Mar 2016 12:00:29 -0400 Date: Sun, 13 Mar 2016 16:00:16 +0000 From: Russell King - ARM Linux To: kbuild test robot Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, Thomas Gleixner Subject: Re: include/linux/kprobes.h:361:2: error: invalid use of undefined type 'struct kprobe_ctlblk' Message-ID: <20160313160016.GS19428@n2100.arm.linux.org.uk> References: <201603131629.FpeiMSQK%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201603131629.FpeiMSQK%fengguang.wu@intel.com> 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 Content-Length: 994 Lines: 31 On Sun, Mar 13, 2016 at 04:37:14PM +0800, kbuild test robot wrote: > Hi Russell, > > FYI, the error/warning still remains. Sorry, I've no clue about this. From what I can see, kprobes.h is correct. #ifdef CONFIG_KPROBES DECLARE_PER_CPU(struct kprobe *, current_kprobe); DECLARE_PER_CPU(struct kprobe_ctlblk, kprobe_ctlblk); ... static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void) { return this_cpu_ptr(&kprobe_ctlblk); } The only way I can see that kprobe_ctlblk would be undefined is if MN10300 were doing something totally weird with DECLARE_PER_CPU(). Since I know precisely nothing about MN10300, and it doesn't seem to touch the definition of DECLARE_PER_CPU(), I'm at a total loss to understand how this error can occur. Some help would be nice - as right now I have absolutely no idea on this. -- RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.