From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752723AbdJTJgd (ORCPT ); Fri, 20 Oct 2017 05:36:33 -0400 Received: from foss.arm.com ([217.140.101.70]:37712 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751812AbdJTJgb (ORCPT ); Fri, 20 Oct 2017 05:36:31 -0400 Date: Fri, 20 Oct 2017 10:36:37 +0100 From: Will Deacon To: kbuild test robot Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, "Paul E. McKenney" Subject: Re: [rcu:rcu/alpha 1/19] arch/sparc/include/asm/ptrace.h:102:6: error: implicit declaration of function 'unlikely' Message-ID: <20171020093636.GB18282@arm.com> References: <201710200544.b2SdiflF%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201710200544.b2SdiflF%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 Hi Paul, On Fri, Oct 20, 2017 at 05:17:54AM +0800, kbuild test robot wrote: > In file included from arch/sparc/include/asm/processor_64.h:18:0, > from arch/sparc/include/asm/processor.h:4, > from include/linux/prefetch.h:14, > from drivers/net/ethernet/emulex/benet/be_main.c:18: > arch/sparc/include/asm/ptrace.h: In function 'regs_get_register': > >> arch/sparc/include/asm/ptrace.h:102:6: error: implicit declaration of function 'unlikely' [-Werror=implicit-function-declaration] > if (unlikely(offset >= MAX_REG_OFFSET)) > ^~~~~~~~ > cc1: some warnings being treated as errors I'm not sure why I didn't get these reports from my tree, but there's a fixup patch below. Thanks, Will --->8 >>From db5984f0878a013857299acd7e0fa406905d973c Mon Sep 17 00:00:00 2001 From: Will Deacon Date: Fri, 20 Oct 2017 10:21:18 +0100 Subject: [PATCH] sparc64: ptrace: Include linux/compiler.h for unlikely() Compiler.g is no longer implicitly included in asm/ptrace.h so pull it in explicitly to get a definition for the unlikely() macro. Reported-by: kbuild test robot Signed-off-by: Will Deacon --- arch/sparc/include/asm/ptrace.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sparc/include/asm/ptrace.h b/arch/sparc/include/asm/ptrace.h index d73428e4333c..b383484edcd3 100644 --- a/arch/sparc/include/asm/ptrace.h +++ b/arch/sparc/include/asm/ptrace.h @@ -6,6 +6,7 @@ #if defined(__sparc__) && defined(__arch64__) #ifndef __ASSEMBLY__ +#include #include #include -- 2.1.4