Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753724AbbDHNLi (ORCPT ); Wed, 8 Apr 2015 09:11:38 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:13269 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751479AbbDHNLh (ORCPT ); Wed, 8 Apr 2015 09:11:37 -0400 Message-ID: <552528D7.90109@huawei.com> Date: Wed, 8 Apr 2015 21:10:47 +0800 From: Yunlong Song User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Arnaldo Carvalho de Melo CC: , , , , Subject: Re: [PATCH] perf record: Conditionally define CLOCK_MONOTONIC_RAW for older OSes References: <1428465748-14476-1-git-send-email-yunlong.song@huawei.com> <20150408130308.GA5403@kernel.org> In-Reply-To: <20150408130308.GA5403@kernel.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.111.74.205] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1164 Lines: 33 On 2015/4/8 21:03, Arnaldo Carvalho de Melo wrote: > Em Wed, Apr 08, 2015 at 12:02:28PM +0800, Yunlong Song escreveu: >> Commit 31a9883106cc ("perf record: Add clockid parameter") used >> CLOCK_MONOTONIC_RAW in the struct clockid_map clockids[], but the >> CLOCK_MONOTONIC_RAW macro is not defined in older releases (e.g., SLES >> 11 SP2), thus there is a building error when making perf: >> >> builtin-record.c:738: error: ‘CLOCK_MONOTONIC_RAW’ undeclared here (not in a function) >> make[2]: *** [builtin-record.o] Error 1 >> make[2]: *** Waiting for unfinished jobs.... >> LD bench/perf-in.o >> LD tests/perf-in.o >> make[1]: *** [perf-in.o] Error 2 >> make: *** [all] Error 2 >> >> So define this macro if it is not defined. > > Since I am fixing that pull request batch, I am folding this patch into > Peter's original, adding credit to you, ok? > > - Arnaldo OK. -- Thanks, Yunlong Song -- 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/