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

Akira Tsukamoto akirat at rd.scei.sony.co.jp
Mon May 25 14:50:33 EST 2009


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;
> +}
> 
> _______________________________________________
> cbe-oss-dev mailing list
> cbe-oss-dev at ozlabs.org
> https://ozlabs.org/mailman/listinfo/cbe-oss-dev

regards,

Akira
-- 
Akira Tsukamoto
Sony Computer Entertainment Inc. 
Distributed OS Development Dept. 
Japan




More information about the cbe-oss-dev mailing list