lkml.org 
[lkml]   [2009]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] Fix BUILD_BUG_ON in fs/compat_ioctl.c to build with gcc 4.5 snapshot
Date
On Sunday 20 December 2009, Andi Kleen wrote:
> ===================================================================
> --- linux-2.6.33-rc1-ak.orig/fs/compat_ioctl.c
> +++ linux-2.6.33-rc1-ak/fs/compat_ioctl.c
> @@ -1649,8 +1649,10 @@ static int compat_ioctl_check_table(unsi
> {
> int i;
> const int max = ARRAY_SIZE(ioctl_pointer) - 1;
> + extern void __ioctl_pointer_too_large(void);
>
> - BUILD_BUG_ON(max >= (1 << 16));
> + if (max >= (1 << 16))
> + __ioctl_pointer_too_large();
>
> /* guess initial offset into table, assuming a
> normalized distribution */

Acked-by: Arnd Bergmann <arnd@arndb.de>


\
 
 \ /
  Last update: 2009-12-21 17:51    [W:0.103 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site