Re: [BUG] percpu misaligned allocation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Richard Kennedy
Date: Friday, March 19, 2010 - 8:48 am

On 19/03/10 03:02, David Miller wrote:

Couldn't you use a union?

For example if you have
union test {
	long t;
	char buffer[50];
};
gcc will then do the right thing.

on x86_64 sizeof(union test) = 56
but on x86_32 it's only 52.

regards
Richard

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[BUG] percpu misaligned allocation, Frederic Weisbecker, (Wed Mar 17, 9:49 pm)
Re: [BUG] percpu misaligned allocation, David Miller, (Wed Mar 17, 11:26 pm)
Re: [BUG] percpu misaligned allocation, David Miller, (Wed Mar 17, 11:28 pm)
Re: [BUG] percpu misaligned allocation, Li Zefan, (Wed Mar 17, 11:36 pm)
Re: [BUG] percpu misaligned allocation, Li Zefan, (Wed Mar 17, 11:39 pm)
Re: [BUG] percpu misaligned allocation, Tejun Heo, (Thu Mar 18, 2:30 am)
Re: [BUG] percpu misaligned allocation, Frederic Weisbecker, (Thu Mar 18, 9:56 am)
Re: [BUG] percpu misaligned allocation, Frederic Weisbecker, (Thu Mar 18, 12:50 pm)
Re: [BUG] percpu misaligned allocation, David Miller, (Thu Mar 18, 5:54 pm)
Re: [BUG] percpu misaligned allocation, Frederic Weisbecker, (Thu Mar 18, 6:31 pm)
Re: [BUG] percpu misaligned allocation, Tejun Heo, (Thu Mar 18, 6:51 pm)
Re: [BUG] percpu misaligned allocation, David Miller, (Thu Mar 18, 6:57 pm)
Re: [BUG] percpu misaligned allocation, Tejun Heo, (Thu Mar 18, 7:18 pm)
Re: [BUG] percpu misaligned allocation, Frederic Weisbecker, (Thu Mar 18, 7:30 pm)
Re: [BUG] percpu misaligned allocation, David Miller, (Thu Mar 18, 8:02 pm)
Re: [BUG] percpu misaligned allocation, Richard Kennedy, (Fri Mar 19, 8:48 am)
Re: [BUG] percpu misaligned allocation, Maciej Rutecki, (Wed Mar 24, 1:54 pm)