[ovs-dev] [PATCH 2/2] datapath: Account for RHEL6.4 backports in compat layer

Thomas Graf tgraf at redhat.com
Tue Apr 23 21:27:26 UTC 2013


On 04/23/2013 10:42 PM, Jesse Gross wrote:
> On Fri, Apr 19, 2013 at 7:01 AM, Thomas Graf <tgraf at redhat.com> wrote:
>> diff --git a/datapath/linux/compat/include/asm/percpu.h b/datapath/linux/compat/include/asm/percpu.h
>> index 404b937..65bce08 100644
>> --- a/datapath/linux/compat/include/asm/percpu.h
>> +++ b/datapath/linux/compat/include/asm/percpu.h
>> @@ -3,7 +3,7 @@
>>
>>   #include_next <asm/percpu.h>
>>
>> -#ifndef this_cpu_ptr
>> +#if !defined this_cpu_ptr && !defined HAVE_THIS_CPU_PTR
>
> This one surprises me - I would expect that the check for the
> definition should already catch any backports. Can you describe what
> the issue is?

The reason for that is that RHEL defines this_cpu_ptr in a different
header file and not in asm/percpu.h. I found what I proposed to be
the easiest workaround for that.



More information about the dev mailing list