lkml.org 
[lkml]   [2014]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] module: LLVMLinux: Remove unused function warning from __param_check macro
On 7 Mar 2014 at 16:52, Behan Webster wrote:

> On 03/07/14 14:56, PaX Team wrote:
> > why can't you have the attr on the definition itself:
> >
> > static inline __unused type *__check_##name(void) { return(p); }
> >
> >
> >
> "__unused" isn't defined anywhere I can find, except in:
>
> src/linux/drivers/net/ethernet/amd/declance.c:#define __unused
> __attribute__ ((unused))

oh i forgot about that, you'd of course place this #define
into the appropriate compiler*.h files so that other code
can make use of it in the future as well ;).



\
 
 \ /
  Last update: 2014-03-08 03:21    [W:0.102 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site