Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932854AbbBILAQ (ORCPT ); Mon, 9 Feb 2015 06:00:16 -0500 Received: from v032797.home.net.pl ([89.161.177.31]:57857 "HELO v032797.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932339AbbBILAO (ORCPT ); Mon, 9 Feb 2015 06:00:14 -0500 Message-ID: <54D8934B.6040709@elproma.com.pl> Date: Mon, 09 Feb 2015 12:00:27 +0100 From: =?UTF-8?B?SmFudXN6IFXFvHlja2k=?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "Jon Medhurst (Tixy)" CC: Russell King , "David A. Long" , Masami Hiramatsu , Wang Nan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: arm: kprobe compilation error References: <54D38982.6000100@elproma.com.pl> <1423475079.2864.49.camel@linaro.org> In-Reply-To: <1423475079.2864.49.camel@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1262 Lines: 37 W dniu 2015-02-09 o 10:44, Jon Medhurst (Tixy) pisze: > Hi Janusz > > On Thu, 2015-02-05 at 16:17 +0100, Janusz Użycki wrote: >> I got the compilation error on next-20150204: >> > [...] >> In file included from arch/arm/probes/kprobes/core.c:37: >> arch/arm/probes/kprobes/core.h:43: error: '[*]' not allowed in other >> than a declaration > [...] >> gcc version 4.2.4 > Thanks for reporting this, is it OK if I add to a patch to fix this a > line saying "Reported-by: Janusz Użycki "? sure > > Whilst the extra '*' looks like an obvious typo, it's interesting that > your error message implies that it's allowed in some situations and that > the version of GCC that I use (4.9.1) doesn't complain about it. > If it's valid C, I've no idea what that syntax that might represent. > I've not find such extension in C11 but likely gcc's team knows the answer. It also compiles using gcc 4.8.3. However I thing more people use older compilers for different platforms. best regards Janusz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/