[Cbe-oss-dev] [PATCH 2/2] MARS: kernel scheduler fix overwrite queue block

Geoff Levand geoffrey.levand at am.sony.com
Tue Aug 19 07:26:35 EST 2008


Yuji Mano wrote:
> --- a/src/mpu/kernel/mars_kernel_scheduler.c
> +++ b/src/mpu/kernel/mars_kernel_scheduler.c
> @@ -51,7 +51,17 @@ uint64_t workload_ea;
>  int reserve_workload(void);
>  void release_workload(void);
>  
> -static int search_block(struct mars_workload_queue_block *block)
> +static inline void get_block(int block, struct mars_workload_queue_block *dst)

The use of inline here has no meaning, and should be removed.  gcc is clever
enough to chose which static functions to inline.

Please submit a patch to fix all these.

-Geoff




More information about the cbe-oss-dev mailing list