diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drmP.h | 3 | ||||
-rw-r--r-- | include/drm/drm_fb_helper.h | 15 | ||||
-rw-r--r-- | include/linux/audit.h | 48 | ||||
-rw-r--r-- | include/linux/cpuidle.h | 2 | ||||
-rw-r--r-- | include/linux/ftrace.h | 4 | ||||
-rw-r--r-- | include/linux/ftrace_event.h | 1 | ||||
-rw-r--r-- | include/linux/mlx4/qp.h | 29 | ||||
-rw-r--r-- | include/linux/pci_ids.h | 6 | ||||
-rw-r--r-- | include/linux/sched.h | 1 | ||||
-rw-r--r-- | include/linux/spi/spi.h | 4 | ||||
-rw-r--r-- | include/linux/tty.h | 6 | ||||
-rw-r--r-- | include/net/sock.h | 12 | ||||
-rw-r--r-- | include/scsi/libsas.h | 4 | ||||
-rw-r--r-- | include/scsi/osd_protocol.h | 2 | ||||
-rw-r--r-- | include/scsi/sas.h | 22 | ||||
-rw-r--r-- | include/scsi/sas_ata.h | 4 | ||||
-rw-r--r-- | include/scsi/scsi_device.h | 16 | ||||
-rw-r--r-- | include/scsi/scsi_transport_iscsi.h | 8 | ||||
-rw-r--r-- | include/scsi/scsi_transport_sas.h | 7 | ||||
-rw-r--r-- | include/uapi/linux/audit.h | 4 |
20 files changed, 131 insertions, 67 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 61196592152e..63d17ee9eb48 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -316,6 +316,7 @@ struct drm_ioctl_desc { | |||
316 | int flags; | 316 | int flags; |
317 | drm_ioctl_t *func; | 317 | drm_ioctl_t *func; |
318 | unsigned int cmd_drv; | 318 | unsigned int cmd_drv; |
319 | const char *name; | ||
319 | }; | 320 | }; |
320 | 321 | ||
321 | /** | 322 | /** |
@@ -324,7 +325,7 @@ struct drm_ioctl_desc { | |||
324 | */ | 325 | */ |
325 | 326 | ||
326 | #define DRM_IOCTL_DEF_DRV(ioctl, _func, _flags) \ | 327 | #define DRM_IOCTL_DEF_DRV(ioctl, _func, _flags) \ |
327 | [DRM_IOCTL_NR(DRM_##ioctl)] = {.cmd = DRM_##ioctl, .func = _func, .flags = _flags, .cmd_drv = DRM_IOCTL_##ioctl} | 328 | [DRM_IOCTL_NR(DRM_##ioctl)] = {.cmd = DRM_##ioctl, .func = _func, .flags = _flags, .cmd_drv = DRM_IOCTL_##ioctl, .name = #ioctl} |
328 | 329 | ||
329 | struct drm_magic_entry { | 330 | struct drm_magic_entry { |
330 | struct list_head head; | 331 | struct list_head head; |
diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h index 8230b46fdd73..471f276ce8f7 100644 --- a/include/drm/drm_fb_helper.h +++ b/include/drm/drm_fb_helper.h | |||
@@ -50,13 +50,14 @@ struct drm_fb_helper_surface_size { | |||
50 | 50 | ||
51 | /** | 51 | /** |
52 | * struct drm_fb_helper_funcs - driver callbacks for the fbdev emulation library | 52 | * struct drm_fb_helper_funcs - driver callbacks for the fbdev emulation library |
53 | * @gamma_set: - Set the given gamma lut register on the given crtc. | 53 | * @gamma_set: Set the given gamma lut register on the given crtc. |
54 | * @gamma_get: - Read the given gamma lut register on the given crtc, used to | 54 | * @gamma_get: Read the given gamma lut register on the given crtc, used to |
55 | * save the current lut when force-restoring the fbdev for e.g. | 55 | * save the current lut when force-restoring the fbdev for e.g. |
56 | * kdbg. | 56 | * kdbg. |
57 | * @fb_probe: - Driver callback to allocate and initialize the fbdev info | 57 | * @fb_probe: Driver callback to allocate and initialize the fbdev info |
58 | * structure. Futhermore it also needs to allocate the drm | 58 | * structure. Futhermore it also needs to allocate the drm |
59 | * framebuffer used to back the fbdev. | 59 | * framebuffer used to back the fbdev. |
60 | * @initial_config: Setup an initial fbdev display configuration | ||
60 | * | 61 | * |
61 | * Driver callbacks used by the fbdev emulation helper library. | 62 | * Driver callbacks used by the fbdev emulation helper library. |
62 | */ | 63 | */ |
diff --git a/include/linux/audit.h b/include/linux/audit.h index 5a6d718adf34..b20b03852f21 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -84,8 +84,13 @@ extern int audit_classify_arch(int arch); | |||
84 | #define AUDIT_TYPE_CHILD_DELETE 3 /* a child being deleted */ | 84 | #define AUDIT_TYPE_CHILD_DELETE 3 /* a child being deleted */ |
85 | #define AUDIT_TYPE_CHILD_CREATE 4 /* a child being created */ | 85 | #define AUDIT_TYPE_CHILD_CREATE 4 /* a child being created */ |
86 | 86 | ||
87 | /* maximized args number that audit_socketcall can process */ | ||
88 | #define AUDITSC_ARGS 6 | ||
89 | |||
87 | struct filename; | 90 | struct filename; |
88 | 91 | ||
92 | extern void audit_log_session_info(struct audit_buffer *ab); | ||
93 | |||
89 | #ifdef CONFIG_AUDITSYSCALL | 94 | #ifdef CONFIG_AUDITSYSCALL |
90 | /* These are defined in auditsc.c */ | 95 | /* These are defined in auditsc.c */ |
91 | /* Public API */ | 96 | /* Public API */ |
@@ -120,7 +125,7 @@ static inline void audit_syscall_entry(int arch, int major, unsigned long a0, | |||
120 | unsigned long a1, unsigned long a2, | 125 | unsigned long a1, unsigned long a2, |
121 | unsigned long a3) | 126 | unsigned long a3) |
122 | { | 127 | { |
123 | if (unlikely(!audit_dummy_context())) | 128 | if (unlikely(current->audit_context)) |
124 | __audit_syscall_entry(arch, major, a0, a1, a2, a3); | 129 | __audit_syscall_entry(arch, major, a0, a1, a2, a3); |
125 | } | 130 | } |
126 | static inline void audit_syscall_exit(void *pt_regs) | 131 | static inline void audit_syscall_exit(void *pt_regs) |
@@ -185,12 +190,10 @@ static inline int audit_get_sessionid(struct task_struct *tsk) | |||
185 | return tsk->sessionid; | 190 | return tsk->sessionid; |
186 | } | 191 | } |
187 | 192 | ||
188 | extern void audit_log_task_context(struct audit_buffer *ab); | ||
189 | extern void audit_log_task_info(struct audit_buffer *ab, struct task_struct *tsk); | ||
190 | extern void __audit_ipc_obj(struct kern_ipc_perm *ipcp); | 193 | extern void __audit_ipc_obj(struct kern_ipc_perm *ipcp); |
191 | extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode); | 194 | extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode); |
192 | extern int __audit_bprm(struct linux_binprm *bprm); | 195 | extern int __audit_bprm(struct linux_binprm *bprm); |
193 | extern void __audit_socketcall(int nargs, unsigned long *args); | 196 | extern int __audit_socketcall(int nargs, unsigned long *args); |
194 | extern int __audit_sockaddr(int len, void *addr); | 197 | extern int __audit_sockaddr(int len, void *addr); |
195 | extern void __audit_fd_pair(int fd1, int fd2); | 198 | extern void __audit_fd_pair(int fd1, int fd2); |
196 | extern void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr); | 199 | extern void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr); |
@@ -224,10 +227,11 @@ static inline int audit_bprm(struct linux_binprm *bprm) | |||
224 | return __audit_bprm(bprm); | 227 | return __audit_bprm(bprm); |
225 | return 0; | 228 | return 0; |
226 | } | 229 | } |
227 | static inline void audit_socketcall(int nargs, unsigned long *args) | 230 | static inline int audit_socketcall(int nargs, unsigned long *args) |
228 | { | 231 | { |
229 | if (unlikely(!audit_dummy_context())) | 232 | if (unlikely(!audit_dummy_context())) |
230 | __audit_socketcall(nargs, args); | 233 | return __audit_socketcall(nargs, args); |
234 | return 0; | ||
231 | } | 235 | } |
232 | static inline int audit_sockaddr(int len, void *addr) | 236 | static inline int audit_sockaddr(int len, void *addr) |
233 | { | 237 | { |
@@ -340,11 +344,6 @@ static inline int audit_get_sessionid(struct task_struct *tsk) | |||
340 | { | 344 | { |
341 | return -1; | 345 | return -1; |
342 | } | 346 | } |
343 | static inline void audit_log_task_context(struct audit_buffer *ab) | ||
344 | { } | ||
345 | static inline void audit_log_task_info(struct audit_buffer *ab, | ||
346 | struct task_struct *tsk) | ||
347 | { } | ||
348 | static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) | 347 | static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) |
349 | { } | 348 | { } |
350 | static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, | 349 | static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, |
@@ -354,8 +353,10 @@ static inline int audit_bprm(struct linux_binprm *bprm) | |||
354 | { | 353 | { |
355 | return 0; | 354 | return 0; |
356 | } | 355 | } |
357 | static inline void audit_socketcall(int nargs, unsigned long *args) | 356 | static inline int audit_socketcall(int nargs, unsigned long *args) |
358 | { } | 357 | { |
358 | return 0; | ||
359 | } | ||
359 | static inline void audit_fd_pair(int fd1, int fd2) | 360 | static inline void audit_fd_pair(int fd1, int fd2) |
360 | { } | 361 | { } |
361 | static inline int audit_sockaddr(int len, void *addr) | 362 | static inline int audit_sockaddr(int len, void *addr) |
@@ -390,6 +391,11 @@ static inline void audit_ptrace(struct task_struct *t) | |||
390 | #define audit_signals 0 | 391 | #define audit_signals 0 |
391 | #endif /* CONFIG_AUDITSYSCALL */ | 392 | #endif /* CONFIG_AUDITSYSCALL */ |
392 | 393 | ||
394 | static inline bool audit_loginuid_set(struct task_struct *tsk) | ||
395 | { | ||
396 | return uid_valid(audit_get_loginuid(tsk)); | ||
397 | } | ||
398 | |||
393 | #ifdef CONFIG_AUDIT | 399 | #ifdef CONFIG_AUDIT |
394 | /* These are defined in audit.c */ | 400 | /* These are defined in audit.c */ |
395 | /* Public API */ | 401 | /* Public API */ |
@@ -429,14 +435,17 @@ static inline void audit_log_secctx(struct audit_buffer *ab, u32 secid) | |||
429 | { } | 435 | { } |
430 | #endif | 436 | #endif |
431 | 437 | ||
438 | extern int audit_log_task_context(struct audit_buffer *ab); | ||
439 | extern void audit_log_task_info(struct audit_buffer *ab, | ||
440 | struct task_struct *tsk); | ||
441 | |||
432 | extern int audit_update_lsm_rules(void); | 442 | extern int audit_update_lsm_rules(void); |
433 | 443 | ||
434 | /* Private API (for audit.c only) */ | 444 | /* Private API (for audit.c only) */ |
435 | extern int audit_filter_user(void); | 445 | extern int audit_filter_user(int type); |
436 | extern int audit_filter_type(int type); | 446 | extern int audit_filter_type(int type); |
437 | extern int audit_receive_filter(int type, int pid, int seq, | 447 | extern int audit_receive_filter(int type, int pid, int seq, |
438 | void *data, size_t datasz, kuid_t loginuid, | 448 | void *data, size_t datasz); |
439 | u32 sessionid, u32 sid); | ||
440 | extern int audit_enabled; | 449 | extern int audit_enabled; |
441 | #else /* CONFIG_AUDIT */ | 450 | #else /* CONFIG_AUDIT */ |
442 | static inline __printf(4, 5) | 451 | static inline __printf(4, 5) |
@@ -476,6 +485,13 @@ static inline void audit_log_link_denied(const char *string, | |||
476 | { } | 485 | { } |
477 | static inline void audit_log_secctx(struct audit_buffer *ab, u32 secid) | 486 | static inline void audit_log_secctx(struct audit_buffer *ab, u32 secid) |
478 | { } | 487 | { } |
488 | static inline int audit_log_task_context(struct audit_buffer *ab) | ||
489 | { | ||
490 | return 0; | ||
491 | } | ||
492 | static inline void audit_log_task_info(struct audit_buffer *ab, | ||
493 | struct task_struct *tsk) | ||
494 | { } | ||
479 | #define audit_enabled 0 | 495 | #define audit_enabled 0 |
480 | #endif /* CONFIG_AUDIT */ | 496 | #endif /* CONFIG_AUDIT */ |
481 | static inline void audit_log_string(struct audit_buffer *ab, const char *buf) | 497 | static inline void audit_log_string(struct audit_buffer *ab, const char *buf) |
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 3c86faa59798..8f0406230a0a 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <linux/completion.h> | 17 | #include <linux/completion.h> |
18 | #include <linux/hrtimer.h> | 18 | #include <linux/hrtimer.h> |
19 | 19 | ||
20 | #define CPUIDLE_STATE_MAX 8 | 20 | #define CPUIDLE_STATE_MAX 10 |
21 | #define CPUIDLE_NAME_LEN 16 | 21 | #define CPUIDLE_NAME_LEN 16 |
22 | #define CPUIDLE_DESC_LEN 32 | 22 | #define CPUIDLE_DESC_LEN 32 |
23 | 23 | ||
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index f83e17a40e8b..99d0fbcbaf79 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -90,6 +90,8 @@ typedef void (*ftrace_func_t)(unsigned long ip, unsigned long parent_ip, | |||
90 | * not set this, then the ftrace infrastructure will add recursion | 90 | * not set this, then the ftrace infrastructure will add recursion |
91 | * protection for the caller. | 91 | * protection for the caller. |
92 | * STUB - The ftrace_ops is just a place holder. | 92 | * STUB - The ftrace_ops is just a place holder. |
93 | * INITIALIZED - The ftrace_ops has already been initialized (first use time | ||
94 | * register_ftrace_function() is called, it will initialized the ops) | ||
93 | */ | 95 | */ |
94 | enum { | 96 | enum { |
95 | FTRACE_OPS_FL_ENABLED = 1 << 0, | 97 | FTRACE_OPS_FL_ENABLED = 1 << 0, |
@@ -100,6 +102,7 @@ enum { | |||
100 | FTRACE_OPS_FL_SAVE_REGS_IF_SUPPORTED = 1 << 5, | 102 | FTRACE_OPS_FL_SAVE_REGS_IF_SUPPORTED = 1 << 5, |
101 | FTRACE_OPS_FL_RECURSION_SAFE = 1 << 6, | 103 | FTRACE_OPS_FL_RECURSION_SAFE = 1 << 6, |
102 | FTRACE_OPS_FL_STUB = 1 << 7, | 104 | FTRACE_OPS_FL_STUB = 1 << 7, |
105 | FTRACE_OPS_FL_INITIALIZED = 1 << 8, | ||
103 | }; | 106 | }; |
104 | 107 | ||
105 | struct ftrace_ops { | 108 | struct ftrace_ops { |
@@ -110,6 +113,7 @@ struct ftrace_ops { | |||
110 | #ifdef CONFIG_DYNAMIC_FTRACE | 113 | #ifdef CONFIG_DYNAMIC_FTRACE |
111 | struct ftrace_hash *notrace_hash; | 114 | struct ftrace_hash *notrace_hash; |
112 | struct ftrace_hash *filter_hash; | 115 | struct ftrace_hash *filter_hash; |
116 | struct mutex regex_lock; | ||
113 | #endif | 117 | #endif |
114 | }; | 118 | }; |
115 | 119 | ||
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index 34e00fb49bec..4372658c73ae 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
@@ -293,6 +293,7 @@ struct ftrace_event_file { | |||
293 | * caching and such. Which is mostly OK ;-) | 293 | * caching and such. Which is mostly OK ;-) |
294 | */ | 294 | */ |
295 | unsigned long flags; | 295 | unsigned long flags; |
296 | atomic_t sm_ref; /* soft-mode reference counter */ | ||
296 | }; | 297 | }; |
297 | 298 | ||
298 | #define __TRACE_EVENT_FLAGS(name, value) \ | 299 | #define __TRACE_EVENT_FLAGS(name, value) \ |
diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h index 67f46ad6920a..352eec9df1b8 100644 --- a/include/linux/mlx4/qp.h +++ b/include/linux/mlx4/qp.h | |||
@@ -126,7 +126,7 @@ struct mlx4_rss_context { | |||
126 | 126 | ||
127 | struct mlx4_qp_path { | 127 | struct mlx4_qp_path { |
128 | u8 fl; | 128 | u8 fl; |
129 | u8 reserved1[1]; | 129 | u8 vlan_control; |
130 | u8 disable_pkey_check; | 130 | u8 disable_pkey_check; |
131 | u8 pkey_index; | 131 | u8 pkey_index; |
132 | u8 counter_index; | 132 | u8 counter_index; |
@@ -141,11 +141,32 @@ struct mlx4_qp_path { | |||
141 | u8 sched_queue; | 141 | u8 sched_queue; |
142 | u8 vlan_index; | 142 | u8 vlan_index; |
143 | u8 feup; | 143 | u8 feup; |
144 | u8 reserved3; | 144 | u8 fvl_rx; |
145 | u8 reserved4[2]; | 145 | u8 reserved4[2]; |
146 | u8 dmac[6]; | 146 | u8 dmac[6]; |
147 | }; | 147 | }; |
148 | 148 | ||
149 | enum { /* fl */ | ||
150 | MLX4_FL_CV = 1 << 6, | ||
151 | MLX4_FL_ETH_HIDE_CQE_VLAN = 1 << 2 | ||
152 | }; | ||
153 | enum { /* vlan_control */ | ||
154 | MLX4_VLAN_CTRL_ETH_TX_BLOCK_TAGGED = 1 << 6, | ||
155 | MLX4_VLAN_CTRL_ETH_RX_BLOCK_TAGGED = 1 << 2, | ||
156 | MLX4_VLAN_CTRL_ETH_RX_BLOCK_PRIO_TAGGED = 1 << 1, /* 802.1p priority tag */ | ||
157 | MLX4_VLAN_CTRL_ETH_RX_BLOCK_UNTAGGED = 1 << 0 | ||
158 | }; | ||
159 | |||
160 | enum { /* feup */ | ||
161 | MLX4_FEUP_FORCE_ETH_UP = 1 << 6, /* force Eth UP */ | ||
162 | MLX4_FSM_FORCE_ETH_SRC_MAC = 1 << 5, /* force Source MAC */ | ||
163 | MLX4_FVL_FORCE_ETH_VLAN = 1 << 3 /* force Eth vlan */ | ||
164 | }; | ||
165 | |||
166 | enum { /* fvl_rx */ | ||
167 | MLX4_FVL_RX_FORCE_ETH_VLAN = 1 << 0 /* enforce Eth rx vlan */ | ||
168 | }; | ||
169 | |||
149 | struct mlx4_qp_context { | 170 | struct mlx4_qp_context { |
150 | __be32 flags; | 171 | __be32 flags; |
151 | __be32 pd; | 172 | __be32 pd; |
@@ -185,6 +206,10 @@ struct mlx4_qp_context { | |||
185 | u32 reserved5[10]; | 206 | u32 reserved5[10]; |
186 | }; | 207 | }; |
187 | 208 | ||
209 | enum { /* param3 */ | ||
210 | MLX4_STRIP_VLAN = 1 << 30 | ||
211 | }; | ||
212 | |||
188 | /* Which firmware version adds support for NEC (NoErrorCompletion) bit */ | 213 | /* Which firmware version adds support for NEC (NoErrorCompletion) bit */ |
189 | #define MLX4_FW_VER_WQE_CTRL_NEC mlx4_fw_ver(2, 2, 232) | 214 | #define MLX4_FW_VER_WQE_CTRL_NEC mlx4_fw_ver(2, 2, 232) |
190 | 215 | ||
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 2b85c521f737..c12916248469 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
@@ -2147,11 +2147,13 @@ | |||
2147 | #define PCI_DEVICE_ID_TIGON3_5705M_2 0x165e | 2147 | #define PCI_DEVICE_ID_TIGON3_5705M_2 0x165e |
2148 | #define PCI_DEVICE_ID_NX2_57712 0x1662 | 2148 | #define PCI_DEVICE_ID_NX2_57712 0x1662 |
2149 | #define PCI_DEVICE_ID_NX2_57712E 0x1663 | 2149 | #define PCI_DEVICE_ID_NX2_57712E 0x1663 |
2150 | #define PCI_DEVICE_ID_NX2_57712_MF 0x1663 | ||
2150 | #define PCI_DEVICE_ID_TIGON3_5714 0x1668 | 2151 | #define PCI_DEVICE_ID_TIGON3_5714 0x1668 |
2151 | #define PCI_DEVICE_ID_TIGON3_5714S 0x1669 | 2152 | #define PCI_DEVICE_ID_TIGON3_5714S 0x1669 |
2152 | #define PCI_DEVICE_ID_TIGON3_5780 0x166a | 2153 | #define PCI_DEVICE_ID_TIGON3_5780 0x166a |
2153 | #define PCI_DEVICE_ID_TIGON3_5780S 0x166b | 2154 | #define PCI_DEVICE_ID_TIGON3_5780S 0x166b |
2154 | #define PCI_DEVICE_ID_TIGON3_5705F 0x166e | 2155 | #define PCI_DEVICE_ID_TIGON3_5705F 0x166e |
2156 | #define PCI_DEVICE_ID_NX2_57712_VF 0x166f | ||
2155 | #define PCI_DEVICE_ID_TIGON3_5754M 0x1672 | 2157 | #define PCI_DEVICE_ID_TIGON3_5754M 0x1672 |
2156 | #define PCI_DEVICE_ID_TIGON3_5755M 0x1673 | 2158 | #define PCI_DEVICE_ID_TIGON3_5755M 0x1673 |
2157 | #define PCI_DEVICE_ID_TIGON3_5756 0x1674 | 2159 | #define PCI_DEVICE_ID_TIGON3_5756 0x1674 |
@@ -2177,13 +2179,15 @@ | |||
2177 | #define PCI_DEVICE_ID_TIGON3_5787 0x169b | 2179 | #define PCI_DEVICE_ID_TIGON3_5787 0x169b |
2178 | #define PCI_DEVICE_ID_TIGON3_5788 0x169c | 2180 | #define PCI_DEVICE_ID_TIGON3_5788 0x169c |
2179 | #define PCI_DEVICE_ID_TIGON3_5789 0x169d | 2181 | #define PCI_DEVICE_ID_TIGON3_5789 0x169d |
2182 | #define PCI_DEVICE_ID_NX2_57840_4_10 0x16a1 | ||
2183 | #define PCI_DEVICE_ID_NX2_57840_2_20 0x16a2 | ||
2184 | #define PCI_DEVICE_ID_NX2_57840_MF 0x16a4 | ||
2180 | #define PCI_DEVICE_ID_NX2_57800_MF 0x16a5 | 2185 | #define PCI_DEVICE_ID_NX2_57800_MF 0x16a5 |
2181 | #define PCI_DEVICE_ID_TIGON3_5702X 0x16a6 | 2186 | #define PCI_DEVICE_ID_TIGON3_5702X 0x16a6 |
2182 | #define PCI_DEVICE_ID_TIGON3_5703X 0x16a7 | 2187 | #define PCI_DEVICE_ID_TIGON3_5703X 0x16a7 |
2183 | #define PCI_DEVICE_ID_TIGON3_5704S 0x16a8 | 2188 | #define PCI_DEVICE_ID_TIGON3_5704S 0x16a8 |
2184 | #define PCI_DEVICE_ID_NX2_57800_VF 0x16a9 | 2189 | #define PCI_DEVICE_ID_NX2_57800_VF 0x16a9 |
2185 | #define PCI_DEVICE_ID_NX2_5706S 0x16aa | 2190 | #define PCI_DEVICE_ID_NX2_5706S 0x16aa |
2186 | #define PCI_DEVICE_ID_NX2_57840_MF 0x16a4 | ||
2187 | #define PCI_DEVICE_ID_NX2_5708S 0x16ac | 2191 | #define PCI_DEVICE_ID_NX2_5708S 0x16ac |
2188 | #define PCI_DEVICE_ID_NX2_57840_VF 0x16ad | 2192 | #define PCI_DEVICE_ID_NX2_57840_VF 0x16ad |
2189 | #define PCI_DEVICE_ID_NX2_57810_MF 0x16ae | 2193 | #define PCI_DEVICE_ID_NX2_57810_MF 0x16ae |
diff --git a/include/linux/sched.h b/include/linux/sched.h index caa8f4d0186b..178a8d909f14 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -593,6 +593,7 @@ struct signal_struct { | |||
593 | #endif | 593 | #endif |
594 | #ifdef CONFIG_AUDIT | 594 | #ifdef CONFIG_AUDIT |
595 | unsigned audit_tty; | 595 | unsigned audit_tty; |
596 | unsigned audit_tty_log_passwd; | ||
596 | struct tty_audit_buf *tty_audit_buf; | 597 | struct tty_audit_buf *tty_audit_buf; |
597 | #endif | 598 | #endif |
598 | #ifdef CONFIG_CGROUPS | 599 | #ifdef CONFIG_CGROUPS |
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 733eb5ee31c5..6ff26c8db7b9 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
@@ -57,7 +57,7 @@ extern struct bus_type spi_bus_type; | |||
57 | * @modalias: Name of the driver to use with this device, or an alias | 57 | * @modalias: Name of the driver to use with this device, or an alias |
58 | * for that name. This appears in the sysfs "modalias" attribute | 58 | * for that name. This appears in the sysfs "modalias" attribute |
59 | * for driver coldplugging, and in uevents used for hotplugging | 59 | * for driver coldplugging, and in uevents used for hotplugging |
60 | * @cs_gpio: gpio number of the chipselect line (optional, -EINVAL when | 60 | * @cs_gpio: gpio number of the chipselect line (optional, -ENOENT when |
61 | * when not using a GPIO line) | 61 | * when not using a GPIO line) |
62 | * | 62 | * |
63 | * A @spi_device is used to interchange data between an SPI slave | 63 | * A @spi_device is used to interchange data between an SPI slave |
@@ -266,7 +266,7 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv) | |||
266 | * queue so the subsystem notifies the driver that it may relax the | 266 | * queue so the subsystem notifies the driver that it may relax the |
267 | * hardware by issuing this call | 267 | * hardware by issuing this call |
268 | * @cs_gpios: Array of GPIOs to use as chip select lines; one per CS | 268 | * @cs_gpios: Array of GPIOs to use as chip select lines; one per CS |
269 | * number. Any individual value may be -EINVAL for CS lines that | 269 | * number. Any individual value may be -ENOENT for CS lines that |
270 | * are not GPIOs (driven by the SPI controller itself). | 270 | * are not GPIOs (driven by the SPI controller itself). |
271 | * | 271 | * |
272 | * Each SPI master controller can communicate with one or more @spi_device | 272 | * Each SPI master controller can communicate with one or more @spi_device |
diff --git a/include/linux/tty.h b/include/linux/tty.h index 7e92bd86a808..8780bd2a272a 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -575,8 +575,7 @@ extern void tty_audit_exit(void); | |||
575 | extern void tty_audit_fork(struct signal_struct *sig); | 575 | extern void tty_audit_fork(struct signal_struct *sig); |
576 | extern void tty_audit_tiocsti(struct tty_struct *tty, char ch); | 576 | extern void tty_audit_tiocsti(struct tty_struct *tty, char ch); |
577 | extern void tty_audit_push(struct tty_struct *tty); | 577 | extern void tty_audit_push(struct tty_struct *tty); |
578 | extern int tty_audit_push_task(struct task_struct *tsk, | 578 | extern int tty_audit_push_current(void); |
579 | kuid_t loginuid, u32 sessionid); | ||
580 | #else | 579 | #else |
581 | static inline void tty_audit_add_data(struct tty_struct *tty, | 580 | static inline void tty_audit_add_data(struct tty_struct *tty, |
582 | unsigned char *data, size_t size, unsigned icanon) | 581 | unsigned char *data, size_t size, unsigned icanon) |
@@ -594,8 +593,7 @@ static inline void tty_audit_fork(struct signal_struct *sig) | |||
594 | static inline void tty_audit_push(struct tty_struct *tty) | 593 | static inline void tty_audit_push(struct tty_struct *tty) |
595 | { | 594 | { |
596 | } | 595 | } |
597 | static inline int tty_audit_push_task(struct task_struct *tsk, | 596 | static inline int tty_audit_push_current(void) |
598 | kuid_t loginuid, u32 sessionid) | ||
599 | { | 597 | { |
600 | return 0; | 598 | return 0; |
601 | } | 599 | } |
diff --git a/include/net/sock.h b/include/net/sock.h index 5c97b0fc5623..66772cf8c3c5 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -866,6 +866,18 @@ struct inet_hashinfo; | |||
866 | struct raw_hashinfo; | 866 | struct raw_hashinfo; |
867 | struct module; | 867 | struct module; |
868 | 868 | ||
869 | /* | ||
870 | * caches using SLAB_DESTROY_BY_RCU should let .next pointer from nulls nodes | ||
871 | * un-modified. Special care is taken when initializing object to zero. | ||
872 | */ | ||
873 | static inline void sk_prot_clear_nulls(struct sock *sk, int size) | ||
874 | { | ||
875 | if (offsetof(struct sock, sk_node.next) != 0) | ||
876 | memset(sk, 0, offsetof(struct sock, sk_node.next)); | ||
877 | memset(&sk->sk_node.pprev, 0, | ||
878 | size - offsetof(struct sock, sk_node.pprev)); | ||
879 | } | ||
880 | |||
869 | /* Networking protocol blocks we attach to sockets. | 881 | /* Networking protocol blocks we attach to sockets. |
870 | * socket layer -> transport layer interface | 882 | * socket layer -> transport layer interface |
871 | * transport -> network interface is defined by struct inet_proto | 883 | * transport -> network interface is defined by struct inet_proto |
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index ef937b56f9b5..e2c1e66d58ae 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h | |||
@@ -118,7 +118,7 @@ struct ex_phy { | |||
118 | 118 | ||
119 | enum ex_phy_state phy_state; | 119 | enum ex_phy_state phy_state; |
120 | 120 | ||
121 | enum sas_dev_type attached_dev_type; | 121 | enum sas_device_type attached_dev_type; |
122 | enum sas_linkrate linkrate; | 122 | enum sas_linkrate linkrate; |
123 | 123 | ||
124 | u8 attached_sata_host:1; | 124 | u8 attached_sata_host:1; |
@@ -195,7 +195,7 @@ enum { | |||
195 | 195 | ||
196 | struct domain_device { | 196 | struct domain_device { |
197 | spinlock_t done_lock; | 197 | spinlock_t done_lock; |
198 | enum sas_dev_type dev_type; | 198 | enum sas_device_type dev_type; |
199 | 199 | ||
200 | enum sas_linkrate linkrate; | 200 | enum sas_linkrate linkrate; |
201 | enum sas_linkrate min_linkrate; | 201 | enum sas_linkrate min_linkrate; |
diff --git a/include/scsi/osd_protocol.h b/include/scsi/osd_protocol.h index a6026da25f3e..25ac6283b9c7 100644 --- a/include/scsi/osd_protocol.h +++ b/include/scsi/osd_protocol.h | |||
@@ -107,7 +107,7 @@ enum osd_attributes_mode { | |||
107 | * int exponent: 04; | 107 | * int exponent: 04; |
108 | * } | 108 | * } |
109 | */ | 109 | */ |
110 | typedef __be32 __bitwise osd_cdb_offset; | 110 | typedef __be32 osd_cdb_offset; |
111 | 111 | ||
112 | enum { | 112 | enum { |
113 | OSD_OFFSET_UNUSED = 0xFFFFFFFF, | 113 | OSD_OFFSET_UNUSED = 0xFFFFFFFF, |
diff --git a/include/scsi/sas.h b/include/scsi/sas.h index be3eb0bf1ac0..0d2607d12387 100644 --- a/include/scsi/sas.h +++ b/include/scsi/sas.h | |||
@@ -90,16 +90,18 @@ enum sas_oob_mode { | |||
90 | }; | 90 | }; |
91 | 91 | ||
92 | /* See sas_discover.c if you plan on changing these */ | 92 | /* See sas_discover.c if you plan on changing these */ |
93 | enum sas_dev_type { | 93 | enum sas_device_type { |
94 | NO_DEVICE = 0, /* protocol */ | 94 | /* these are SAS protocol defined (attached device type field) */ |
95 | SAS_END_DEV = 1, /* protocol */ | 95 | SAS_PHY_UNUSED = 0, |
96 | EDGE_DEV = 2, /* protocol */ | 96 | SAS_END_DEVICE = 1, |
97 | FANOUT_DEV = 3, /* protocol */ | 97 | SAS_EDGE_EXPANDER_DEVICE = 2, |
98 | SAS_HA = 4, | 98 | SAS_FANOUT_EXPANDER_DEVICE = 3, |
99 | SATA_DEV = 5, | 99 | /* these are internal to libsas */ |
100 | SATA_PM = 7, | 100 | SAS_HA = 4, |
101 | SATA_PM_PORT= 8, | 101 | SAS_SATA_DEV = 5, |
102 | SATA_PENDING = 9, | 102 | SAS_SATA_PM = 7, |
103 | SAS_SATA_PM_PORT = 8, | ||
104 | SAS_SATA_PENDING = 9, | ||
103 | }; | 105 | }; |
104 | 106 | ||
105 | enum sas_protocol { | 107 | enum sas_protocol { |
diff --git a/include/scsi/sas_ata.h b/include/scsi/sas_ata.h index ff71a5654684..00f41aeeecf5 100644 --- a/include/scsi/sas_ata.h +++ b/include/scsi/sas_ata.h | |||
@@ -32,8 +32,8 @@ | |||
32 | 32 | ||
33 | static inline int dev_is_sata(struct domain_device *dev) | 33 | static inline int dev_is_sata(struct domain_device *dev) |
34 | { | 34 | { |
35 | return dev->dev_type == SATA_DEV || dev->dev_type == SATA_PM || | 35 | return dev->dev_type == SAS_SATA_DEV || dev->dev_type == SAS_SATA_PM || |
36 | dev->dev_type == SATA_PM_PORT || dev->dev_type == SATA_PENDING; | 36 | dev->dev_type == SAS_SATA_PM_PORT || dev->dev_type == SAS_SATA_PENDING; |
37 | } | 37 | } |
38 | 38 | ||
39 | int sas_get_ata_info(struct domain_device *dev, struct ex_phy *phy); | 39 | int sas_get_ata_info(struct domain_device *dev, struct ex_phy *phy); |
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index a7f9cba275e9..cc645876d147 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
@@ -394,10 +394,18 @@ extern int scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, | |||
394 | int data_direction, void *buffer, unsigned bufflen, | 394 | int data_direction, void *buffer, unsigned bufflen, |
395 | unsigned char *sense, int timeout, int retries, | 395 | unsigned char *sense, int timeout, int retries, |
396 | int flag, int *resid); | 396 | int flag, int *resid); |
397 | extern int scsi_execute_req(struct scsi_device *sdev, const unsigned char *cmd, | 397 | extern int scsi_execute_req_flags(struct scsi_device *sdev, |
398 | int data_direction, void *buffer, unsigned bufflen, | 398 | const unsigned char *cmd, int data_direction, void *buffer, |
399 | struct scsi_sense_hdr *, int timeout, int retries, | 399 | unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout, |
400 | int *resid); | 400 | int retries, int *resid, int flags); |
401 | static inline int scsi_execute_req(struct scsi_device *sdev, | ||
402 | const unsigned char *cmd, int data_direction, void *buffer, | ||
403 | unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout, | ||
404 | int retries, int *resid) | ||
405 | { | ||
406 | return scsi_execute_req_flags(sdev, cmd, data_direction, buffer, | ||
407 | bufflen, sshdr, timeout, retries, resid, 0); | ||
408 | } | ||
401 | extern void sdev_disable_disk_events(struct scsi_device *sdev); | 409 | extern void sdev_disable_disk_events(struct scsi_device *sdev); |
402 | extern void sdev_enable_disk_events(struct scsi_device *sdev); | 410 | extern void sdev_enable_disk_events(struct scsi_device *sdev); |
403 | 411 | ||
diff --git a/include/scsi/scsi_transport_iscsi.h b/include/scsi/scsi_transport_iscsi.h index 4a58cca2ecc1..d0f1602985e7 100644 --- a/include/scsi/scsi_transport_iscsi.h +++ b/include/scsi/scsi_transport_iscsi.h | |||
@@ -471,14 +471,10 @@ iscsi_destroy_flashnode_sess(struct iscsi_bus_flash_session *fnode_sess); | |||
471 | extern void iscsi_destroy_all_flashnode(struct Scsi_Host *shost); | 471 | extern void iscsi_destroy_all_flashnode(struct Scsi_Host *shost); |
472 | extern int iscsi_flashnode_bus_match(struct device *dev, | 472 | extern int iscsi_flashnode_bus_match(struct device *dev, |
473 | struct device_driver *drv); | 473 | struct device_driver *drv); |
474 | extern int iscsi_is_flashnode_conn_dev(struct device *dev, void *data); | ||
475 | |||
476 | extern struct device * | 474 | extern struct device * |
477 | iscsi_find_flashnode_sess(struct Scsi_Host *shost, void *data, | 475 | iscsi_find_flashnode_sess(struct Scsi_Host *shost, void *data, |
478 | int (*fn)(struct device *dev, void *data)); | 476 | int (*fn)(struct device *dev, void *data)); |
479 | |||
480 | extern struct device * | 477 | extern struct device * |
481 | iscsi_find_flashnode_conn(struct iscsi_bus_flash_session *fnode_sess, | 478 | iscsi_find_flashnode_conn(struct iscsi_bus_flash_session *fnode_sess); |
482 | void *data, | 479 | |
483 | int (*fn)(struct device *dev, void *data)); | ||
484 | #endif | 480 | #endif |
diff --git a/include/scsi/scsi_transport_sas.h b/include/scsi/scsi_transport_sas.h index 9b8e08879cfc..0bd71e2702e3 100644 --- a/include/scsi/scsi_transport_sas.h +++ b/include/scsi/scsi_transport_sas.h | |||
@@ -10,13 +10,6 @@ struct scsi_transport_template; | |||
10 | struct sas_rphy; | 10 | struct sas_rphy; |
11 | struct request; | 11 | struct request; |
12 | 12 | ||
13 | enum sas_device_type { | ||
14 | SAS_PHY_UNUSED = 0, | ||
15 | SAS_END_DEVICE = 1, | ||
16 | SAS_EDGE_EXPANDER_DEVICE = 2, | ||
17 | SAS_FANOUT_EXPANDER_DEVICE = 3, | ||
18 | }; | ||
19 | |||
20 | static inline int sas_protocol_ata(enum sas_protocol proto) | 13 | static inline int sas_protocol_ata(enum sas_protocol proto) |
21 | { | 14 | { |
22 | return ((proto & SAS_PROTOCOL_SATA) || | 15 | return ((proto & SAS_PROTOCOL_SATA) || |
diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h index 9f096f1c0907..75cef3fd97ad 100644 --- a/include/uapi/linux/audit.h +++ b/include/uapi/linux/audit.h | |||
@@ -246,6 +246,7 @@ | |||
246 | #define AUDIT_OBJ_TYPE 21 | 246 | #define AUDIT_OBJ_TYPE 21 |
247 | #define AUDIT_OBJ_LEV_LOW 22 | 247 | #define AUDIT_OBJ_LEV_LOW 22 |
248 | #define AUDIT_OBJ_LEV_HIGH 23 | 248 | #define AUDIT_OBJ_LEV_HIGH 23 |
249 | #define AUDIT_LOGINUID_SET 24 | ||
249 | 250 | ||
250 | /* These are ONLY useful when checking | 251 | /* These are ONLY useful when checking |
251 | * at syscall exit time (AUDIT_AT_EXIT). */ | 252 | * at syscall exit time (AUDIT_AT_EXIT). */ |
@@ -369,7 +370,8 @@ struct audit_status { | |||
369 | }; | 370 | }; |
370 | 371 | ||
371 | struct audit_tty_status { | 372 | struct audit_tty_status { |
372 | __u32 enabled; /* 1 = enabled, 0 = disabled */ | 373 | __u32 enabled; /* 1 = enabled, 0 = disabled */ |
374 | __u32 log_passwd; /* 1 = enabled, 0 = disabled */ | ||
373 | }; | 375 | }; |
374 | 376 | ||
375 | /* audit_rule_data supports filter rules with both integer and string | 377 | /* audit_rule_data supports filter rules with both integer and string |