tty: tty_port_get() breaks build

From: Alexander Beregalov
Date: Sun Dec 20 2009 - 07:48:20 EST


Hi

Commit is 568aafc62
tty: tty_port: Add a kref object to the tty port

include/linux/tty.h:469: error: '______f' is static but declared in
inline function 'tty_port_get' which is not static

tty_port_get() looks as

extern inline __attribute__((always_inline)) struct tty_port
*tty_port_get(struct tty_port *port)
{
if (__builtin_constant_p(((port))) ? !!((port)) : ({ int ______r;
static struct ftrace_branch_data __attribute__((__aligned__(4)))
__attribute__((section("_ftrace_branch"))) ______f = { .func =
__func__, .file = "include/linux/tty.h", .line = 469, }; ______r =
!!((port)); ______f.miss_hit[______r]++; ______r; }))
kref_get(&port->kref);
return port;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/