From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752111AbdHHJll (ORCPT ); Tue, 8 Aug 2017 05:41:41 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:58938 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751464AbdHHJlj (ORCPT ); Tue, 8 Aug 2017 05:41:39 -0400 Subject: Re: [PATCH v4 3/6] coresight: of: Use of_cpu_node_to_id helper To: kbuild test robot References: <201708081748.bujrMOmJ%fengguang.wu@intel.com> Cc: kbuild-all@01.org, linux-arm-kernel@lists.infradead.org, will.deacon@arm.com, marc.zyngier@arm.com, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh@kernel.org, frowand.list@gmail.com, mathieu.poirier@linaro.org, peterz@infradead.org, Leo Yan From: Suzuki K Poulose Message-ID: <5460b978-e624-6b38-fe3d-6427eed3ebd7@arm.com> Date: Tue, 8 Aug 2017 10:41:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <201708081748.bujrMOmJ%fengguang.wu@intel.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/08/17 10:18, kbuild test robot wrote: > Hi Suzuki, > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.13-rc4 next-20170807] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://github.com/0day-ci/linux/commits/Suzuki-K-Poulose/perf-Support-for-ARM-DynamIQ-Shared-Unit-PMU/20170808-124822 > config: arm-allmodconfig (attached as .config) > compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 > reproduce: > wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > make.cross ARCH=arm > > Note: the linux-review/Suzuki-K-Poulose/perf-Support-for-ARM-DynamIQ-Shared-Unit-PMU/20170808-124822 HEAD 5757d34d451ed5a1452526b27b0f36664a8f2007 builds fine. > It only hurts bisectibility. > > All errors (new ones prefixed by >>): > > drivers//hwtracing/coresight/of_coresight.c: In function 'of_coresight_get_cpu': >>> drivers//hwtracing/coresight/of_coresight.c:117:19: error: expected ';' before numeric constant > return (cpu < 0) 0 : cpu; > ^ > > vim +117 drivers//hwtracing/coresight/of_coresight.c > > 103 > 104 int of_coresight_get_cpu(const struct device_node *node) > 105 { > 106 int cpu; > 107 struct device_node *dn; > 108 > 109 dn = of_parse_phandle(node, "cpu", 0); > 110 /* Affinity defaults to CPU0 */ > 111 if (!dn) > 112 return 0; > 113 cpu = of_cpu_node_to_id(dn); > 114 of_node_put(dn); > 115 > 116 /* Affinity to CPU0 if no cpu nodes are found */ > > 117 return (cpu < 0) 0 : cpu; > 118 } > 119 EXPORT_SYMBOL_GPL(of_coresight_get_cpu); > 120 > Thanks for the bug report, I will respin the series with a fix for this. Suzuki