Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] missing include in infiniband

use of IS_ERR/PTR_ERR in infiniband/core/agent.c, without a portable
chain of includes pulling err.h (breaks on a bunch of platforms).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Al Viro and committed by
Linus Torvalds
2d3c0b7b 4b4a5eae

+1
+1
drivers/infiniband/core/agent.h
··· 39 39 #ifndef __AGENT_H_ 40 40 #define __AGENT_H_ 41 41 42 + #include <linux/err.h> 42 43 #include <rdma/ib_mad.h> 43 44 44 45 extern int ib_agent_port_open(struct ib_device *device, int port_num);