lkml.org 
[lkml]   [2014]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [tip:sched/core] sched: Rework sched_domain topology definition
On 16 May 2014 11:57, James Hogan <james.hogan@imgtec.com> wrote:
> Hi Vincent,
>

[snip]

>
>
>> diff --git a/include/linux/sched.h b/include/linux/sched.h
>> index 2a4298f..656b035 100644
>> --- a/include/linux/sched.h
>> +++ b/include/linux/sched.h
>> @@ -985,6 +1006,38 @@ void free_sched_domains(cpumask_var_t doms[], unsigned int ndoms);
>>
>> bool cpus_share_cache(int this_cpu, int that_cpu);
>>
>> +typedef const struct cpumask *(*sched_domain_mask_f)(int cpu);
>> +typedef const int (*sched_domain_flags_f)(void);
>
> I just noticed, since May 9th, linux-next (ARCH=metag, gcc 4.2.4, with
> meta2_smp_defconfig) is showing loads of warnings due to the above
> line:
>
> include/linux/sched.h +1010 : warning: type qualifiers ignored on
> function return type
>
> Looks to me that the const serves no purpose in this context and could
> be removed.

Hi James,

Ok, i'm going to have a look a it. I haven't seen such warning during
my test but my configuration was different (ARCH=ARM gcc 4.7.1)

Thanks,
Vincent

>
> Cheers
> James


\
 
 \ /
  Last update: 2014-05-18 10:41    [W:0.118 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site