From patchwork Tue Oct 23 12:44:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 1630271 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id DD2A0DF283 for ; Tue, 23 Oct 2012 12:44:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755725Ab2JWMof (ORCPT ); Tue, 23 Oct 2012 08:44:35 -0400 Received: from mga02.intel.com ([134.134.136.20]:53548 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753399Ab2JWMof (ORCPT ); Tue, 23 Oct 2012 08:44:35 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 23 Oct 2012 05:44:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,634,1344236400"; d="scan'208";a="231097124" Received: from unknown (HELO wfg-t420.sh.intel.com) ([10.255.21.82]) by orsmga002.jf.intel.com with ESMTP; 23 Oct 2012 05:44:33 -0700 Received: from wfg by wfg-t420.sh.intel.com with local (Exim 4.77) (envelope-from ) id 1TQdqR-0004b8-KA; Tue, 23 Oct 2012 20:44:31 +0800 Date: Tue, 23 Oct 2012 20:44:31 +0800 From: Fengguang Wu To: "Song, Youquan" Cc: "linux-pm@vger.kernel.org" , Rik van Riel , "Wysocki, Rafael J" Subject: Re: drivers/cpuidle/governors/menu.c:268:2: warning: comparison of distinct pointer types lacks a cast Message-ID: <20121023124431.GA17286@localhost> References: <508610e6.lZq8SVXFvwZCcvw6%fengguang.wu@intel.com> <70A3B115BE79814398B8E4E7C4AE18EE138DCD@SHSMSX101.ccr.corp.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <70A3B115BE79814398B8E4E7C4AE18EE138DCD@SHSMSX101.ccr.corp.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Youquan, On Tue, Oct 23, 2012 at 07:23:00PM +0800, Song, Youquan wrote: > Hi Fengguang, > > Sorry. I built the kernel at 32bit OS RHEL6 i686 without any complain about it. > Are you built it for sh architecture? by "make ARCH=sh sh7785lcr_32bit_defconfig", I do not know this architecture at all. Who can help me on it? No worry. This is tested to remove the following warnings. drivers/cpuidle/governors/menu.c: In function 'get_typical_interval': drivers/cpuidle/governors/menu.c:268:2: warning: comparison of distinct pointer types lacks a cast [enabled by default] drivers/cpuidle/governors/menu.c:277:2: warning: comparison of distinct pointer types lacks a cast [enabled by default] --- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors/menu.c index 26d5667..2efee27 100644 --- a/drivers/cpuidle/governors/menu.c +++ b/drivers/cpuidle/governors/menu.c @@ -248,7 +248,7 @@ static enum hrtimer_restart menu_hrtimer_notify(struct hrtimer *hrtimer) static u32 get_typical_interval(struct menu_device *data) { int i = 0, divisor = 0; - int64_t max = 0, avg = 0, stddev = 0; + uint64_t max = 0, avg = 0, stddev = 0; int64_t thresh = LLONG_MAX; /* Discard outliers above this value. */ unsigned int ret = 0;