[Cbe-oss-dev] [patch 1/1] MARS/base: add api to get num mpus

Yuji Mano yuji.mano at am.sony.com
Wed May 27 04:05:51 EST 2009


Akira Tsukamoto wrote:
> Hi Yuji,
> 
> On Mon, 18 May 2009 17:32:52 -0700, 
> Yuji Mano <yuji.mano at am.sony.com> mentioned: 
>> + */
>> +uint32_t mars_context_get_num_mpus(struct mars_context *mars);
>> +
> 
> The above declaration and the definition bellow have 
> different return value, uint32_t <-> int.
> Shouldn't it have warnings from compiler?
> 
>> +
>> +int mars_context_get_num_mpus(struct mars_context *mars)
>> +{
>> +	int ret;
>> +
>> +	/* check function params */
>> +	if (!mars)
>> +		return 0;
>> +
>> +	return mars->mpu_context_count;
>> +}

Yes you're right. Sorry, it was corrected in my local sources but
I guess I forgot to refresh my patch before posting.
I'll repost the corrected patch.

Regards,
Yuji




More information about the cbe-oss-dev mailing list