diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/atmel-ssc.h | 1 | ||||
| -rw-r--r-- | include/linux/compiler-gcc4.h | 7 | ||||
| -rw-r--r-- | include/linux/compiler.h | 4 | ||||
| -rw-r--r-- | include/linux/dcache.h | 2 | ||||
| -rw-r--r-- | include/linux/i2c-pnx.h | 1 | ||||
| -rw-r--r-- | include/linux/kernel.h | 2 | ||||
| -rw-r--r-- | include/linux/kobject.h | 2 | ||||
| -rw-r--r-- | include/linux/mISDNhw.h | 2 | ||||
| -rw-r--r-- | include/linux/memory.h | 2 | ||||
| -rw-r--r-- | include/linux/mfd/core.h | 4 | ||||
| -rw-r--r-- | include/linux/mfd/tps65217.h | 12 | ||||
| -rw-r--r-- | include/linux/micrel_phy.h | 19 | ||||
| -rw-r--r-- | include/linux/mlx4/device.h | 13 | ||||
| -rw-r--r-- | include/linux/nfs_fs.h | 5 | ||||
| -rw-r--r-- | include/linux/nfs_xdr.h | 2 | ||||
| -rw-r--r-- | include/linux/perf_event.h | 6 | ||||
| -rw-r--r-- | include/linux/sched.h | 1 | ||||
| -rw-r--r-- | include/linux/security.h | 1 | ||||
| -rw-r--r-- | include/linux/sunrpc/xprt.h | 3 | ||||
| -rw-r--r-- | include/linux/xfrm.h | 2 | 
20 files changed, 72 insertions, 19 deletions
diff --git a/include/linux/atmel-ssc.h b/include/linux/atmel-ssc.h index 06023393fba..4eb31752e2b 100644 --- a/include/linux/atmel-ssc.h +++ b/include/linux/atmel-ssc.h @@ -3,6 +3,7 @@  #include <linux/platform_device.h>  #include <linux/list.h> +#include <linux/io.h>  struct ssc_device {  	struct list_head	list; diff --git a/include/linux/compiler-gcc4.h b/include/linux/compiler-gcc4.h index 2f4079175af..934bc34d5f9 100644 --- a/include/linux/compiler-gcc4.h +++ b/include/linux/compiler-gcc4.h @@ -49,6 +49,13 @@  #endif  #endif +#if __GNUC_MINOR__ >= 6 +/* + * Tell the optimizer that something else uses this function or variable. + */ +#define __visible __attribute__((externally_visible)) +#endif +  #if __GNUC_MINOR__ > 0  #define __compiletime_object_size(obj) __builtin_object_size(obj, 0)  #endif diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 923d093c9ce..f430e4162f4 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -278,6 +278,10 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);  # define __section(S) __attribute__ ((__section__(#S)))  #endif +#ifndef __visible +#define __visible +#endif +  /* Are two types/vars the same type (ignoring qualifiers)? */  #ifndef __same_type  # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) diff --git a/include/linux/dcache.h b/include/linux/dcache.h index caa34e50537..59200795482 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -206,6 +206,8 @@ struct dentry_operations {  #define DCACHE_MANAGED_DENTRY \  	(DCACHE_MOUNTED|DCACHE_NEED_AUTOMOUNT|DCACHE_MANAGE_TRANSIT) +#define DCACHE_DENTRY_KILLED	0x100000 +  extern seqlock_t rename_lock;  static inline int dname_external(struct dentry *dentry) diff --git a/include/linux/i2c-pnx.h b/include/linux/i2c-pnx.h index 1bc74afe7a3..49ed17fdf05 100644 --- a/include/linux/i2c-pnx.h +++ b/include/linux/i2c-pnx.h @@ -22,6 +22,7 @@ struct i2c_pnx_mif {  	struct timer_list	timer;		/* Timeout */  	u8 *			buf;		/* Data buffer */  	int			len;		/* Length of data buffer */ +	int			order;		/* RX Bytes to order via TX */  };  struct i2c_pnx_algo_data { diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 594b419b7d2..2451f1f7a1d 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -91,7 +91,7 @@  {							\  	typeof(x) __x = x;				\  	typeof(divisor) __d = divisor;			\ -	(((typeof(x))-1) >= 0 || (__x) >= 0) ?		\ +	(((typeof(x))-1) > 0 || (__x) > 0) ?		\  		(((__x) + ((__d) / 2)) / (__d)) :	\  		(((__x) - ((__d) / 2)) / (__d));	\  }							\ diff --git a/include/linux/kobject.h b/include/linux/kobject.h index fc615a97e2d..1e57449395b 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h @@ -224,7 +224,7 @@ static inline int kobject_uevent_env(struct kobject *kobj,  static inline __printf(2, 3)  int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...) -{ return 0; } +{ return -ENOMEM; }  static inline int kobject_action_type(const char *buf, size_t count,  				      enum kobject_action *type) diff --git a/include/linux/mISDNhw.h b/include/linux/mISDNhw.h index d0752eca9b4..9d96d5d4dfe 100644 --- a/include/linux/mISDNhw.h +++ b/include/linux/mISDNhw.h @@ -183,7 +183,7 @@ extern int	mISDN_initbchannel(struct bchannel *, unsigned short,  				   unsigned short);  extern int	mISDN_freedchannel(struct dchannel *);  extern void	mISDN_clear_bchannel(struct bchannel *); -extern int	mISDN_freebchannel(struct bchannel *); +extern void	mISDN_freebchannel(struct bchannel *);  extern int	mISDN_ctrl_bchannel(struct bchannel *, struct mISDN_ctrl_req *);  extern void	queue_ch_frame(struct mISDNchannel *, u_int,  			int, struct sk_buff *); diff --git a/include/linux/memory.h b/include/linux/memory.h index 1ac7f6e405f..ff9a9f8e0ed 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h @@ -19,7 +19,7 @@  #include <linux/compiler.h>  #include <linux/mutex.h> -#define MIN_MEMORY_BLOCK_SIZE     (1 << SECTION_SIZE_BITS) +#define MIN_MEMORY_BLOCK_SIZE     (1UL << SECTION_SIZE_BITS)  struct memory_block {  	unsigned long start_section_nr; diff --git a/include/linux/mfd/core.h b/include/linux/mfd/core.h index 3a8435a8058..cebe97ee98b 100644 --- a/include/linux/mfd/core.h +++ b/include/linux/mfd/core.h @@ -16,6 +16,8 @@  #include <linux/platform_device.h> +struct irq_domain; +  /*   * This struct describes the MFD part ("cell").   * After registration the copy of this structure will become the platform data @@ -98,7 +100,7 @@ static inline const struct mfd_cell *mfd_get_cell(struct platform_device *pdev)  extern int mfd_add_devices(struct device *parent, int id,  			   struct mfd_cell *cells, int n_devs,  			   struct resource *mem_base, -			   int irq_base); +			   int irq_base, struct irq_domain *irq_domain);  extern void mfd_remove_devices(struct device *parent); diff --git a/include/linux/mfd/tps65217.h b/include/linux/mfd/tps65217.h index 12c06870829..7cd83d826ed 100644 --- a/include/linux/mfd/tps65217.h +++ b/include/linux/mfd/tps65217.h @@ -22,6 +22,9 @@  #include <linux/regulator/driver.h>  #include <linux/regulator/machine.h> +/* TPS chip id list */ +#define TPS65217			0xF0 +  /* I2C ID for TPS65217 part */  #define TPS65217_I2C_ID			0x24 @@ -248,13 +251,11 @@ struct tps_info {  struct tps65217 {  	struct device *dev;  	struct tps65217_board *pdata; +	unsigned int id;  	struct regulator_desc desc[TPS65217_NUM_REGULATOR];  	struct regulator_dev *rdev[TPS65217_NUM_REGULATOR];  	struct tps_info *info[TPS65217_NUM_REGULATOR];  	struct regmap *regmap; - -	/* Client devices */ -	struct platform_device *regulator_pdev[TPS65217_NUM_REGULATOR];  };  static inline struct tps65217 *dev_to_tps65217(struct device *dev) @@ -262,6 +263,11 @@ static inline struct tps65217 *dev_to_tps65217(struct device *dev)  	return dev_get_drvdata(dev);  } +static inline int tps65217_chip_id(struct tps65217 *tps65217) +{ +	return tps65217->id; +} +  int tps65217_reg_read(struct tps65217 *tps, unsigned int reg,  					unsigned int *val);  int tps65217_reg_write(struct tps65217 *tps, unsigned int reg, diff --git a/include/linux/micrel_phy.h b/include/linux/micrel_phy.h index 61f0905bdc4..de201203bc7 100644 --- a/include/linux/micrel_phy.h +++ b/include/linux/micrel_phy.h @@ -1,3 +1,15 @@ +/* + * include/linux/micrel_phy.h + * + * Micrel PHY IDs + * + * This program is free software; you can redistribute  it and/or modify it + * under  the terms of  the GNU General  Public License as published by the + * Free Software Foundation;  either version 2 of the  License, or (at your + * option) any later version. + * + */ +  #ifndef _MICREL_PHY_H  #define _MICREL_PHY_H @@ -5,10 +17,11 @@  #define PHY_ID_KSZ9021		0x00221610  #define PHY_ID_KS8737		0x00221720 -#define PHY_ID_KS8041		0x00221510 -#define PHY_ID_KS8051		0x00221550 +#define PHY_ID_KSZ8021		0x00221555 +#define PHY_ID_KSZ8041		0x00221510 +#define PHY_ID_KSZ8051		0x00221550  /* both for ks8001 Rev. A/B, and for ks8721 Rev 3. */ -#define PHY_ID_KS8001		0x0022161A +#define PHY_ID_KSZ8001		0x0022161A  /* struct phy_device dev_flags definitions */  #define MICREL_PHY_50MHZ_CLK	0x00000001 diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index bd6c9fcdf2d..6e1b0f973a0 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -796,6 +796,19 @@ enum mlx4_net_trans_rule_id {  	MLX4_NET_TRANS_RULE_NUM, /* should be last */  }; +extern const u16 __sw_id_hw[]; + +static inline int map_hw_to_sw_id(u16 header_id) +{ + +	int i; +	for (i = 0; i < MLX4_NET_TRANS_RULE_NUM; i++) { +		if (header_id == __sw_id_hw[i]) +			return i; +	} +	return -EINVAL; +} +  enum mlx4_net_trans_promisc_mode {  	MLX4_FS_PROMISC_NONE = 0,  	MLX4_FS_PROMISC_UPLINK, diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 1f8fc7f9bcd..4b03f56e280 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h @@ -265,11 +265,6 @@ static inline const struct nfs_rpc_ops *NFS_PROTO(const struct inode *inode)  	return NFS_SERVER(inode)->nfs_client->rpc_ops;  } -static inline __be32 *NFS_COOKIEVERF(const struct inode *inode) -{ -	return NFS_I(inode)->cookieverf; -} -  static inline unsigned NFS_MINATTRTIMEO(const struct inode *inode)  {  	struct nfs_server *nfss = NFS_SERVER(inode); diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index ac7c8ae254f..be9cf3c7e79 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h @@ -652,7 +652,7 @@ struct nfs_getaclargs {  };  /* getxattr ACL interface flags */ -#define NFS4_ACL_LEN_REQUEST	0x0001	/* zero length getxattr buffer */ +#define NFS4_ACL_TRUNC		0x0001	/* ACL was truncated */  struct nfs_getaclres {  	size_t				acl_len;  	size_t				acl_data_offset; diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 7602ccb3f40..bdb41612bfe 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -274,6 +274,8 @@ struct perf_event_attr {  	__u64	branch_sample_type; /* enum branch_sample_type */  }; +#define perf_flags(attr)	(*(&(attr)->read_format + 1)) +  /*   * Ioctls that can be done on a perf event fd:   */ @@ -926,7 +928,7 @@ struct perf_event {  	struct hw_perf_event		hw;  	struct perf_event_context	*ctx; -	struct file			*filp; +	atomic_long_t			refcount;  	/*  	 * These accumulate total time (in nanoseconds) that children @@ -1296,6 +1298,7 @@ extern int perf_swevent_get_recursion_context(void);  extern void perf_swevent_put_recursion_context(int rctx);  extern void perf_event_enable(struct perf_event *event);  extern void perf_event_disable(struct perf_event *event); +extern int __perf_event_disable(void *info);  extern void perf_event_task_tick(void);  #else  static inline void @@ -1334,6 +1337,7 @@ static inline int  perf_swevent_get_recursion_context(void)		{ return -1; }  static inline void perf_swevent_put_recursion_context(int rctx)		{ }  static inline void perf_event_enable(struct perf_event *event)		{ }  static inline void perf_event_disable(struct perf_event *event)		{ } +static inline int __perf_event_disable(void *info)			{ return -1; }  static inline void perf_event_task_tick(void)				{ }  #endif diff --git a/include/linux/sched.h b/include/linux/sched.h index b8c86648a2f..23bddac4bad 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -954,7 +954,6 @@ struct sched_domain {  	unsigned int smt_gain;  	int flags;			/* See SD_* */  	int level; -	int idle_buddy;			/* cpu assigned to select_idle_sibling() */  	/* Runtime fields. */  	unsigned long last_balance;	/* init to jiffies. units in jiffies */ diff --git a/include/linux/security.h b/include/linux/security.h index 3dea6a9d568..d143b8e0195 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -118,6 +118,7 @@ void reset_security_ops(void);  extern unsigned long mmap_min_addr;  extern unsigned long dac_mmap_min_addr;  #else +#define mmap_min_addr		0UL  #define dac_mmap_min_addr	0UL  #endif diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index cff40aa7db6..bf8c49ff753 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h @@ -114,6 +114,7 @@ struct rpc_xprt_ops {  	void		(*set_buffer_size)(struct rpc_xprt *xprt, size_t sndsize, size_t rcvsize);  	int		(*reserve_xprt)(struct rpc_xprt *xprt, struct rpc_task *task);  	void		(*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task); +	void		(*alloc_slot)(struct rpc_xprt *xprt, struct rpc_task *task);  	void		(*rpcbind)(struct rpc_task *task);  	void		(*set_port)(struct rpc_xprt *xprt, unsigned short port);  	void		(*connect)(struct rpc_task *task); @@ -281,6 +282,8 @@ void			xprt_connect(struct rpc_task *task);  void			xprt_reserve(struct rpc_task *task);  int			xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task);  int			xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task); +void			xprt_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task); +void			xprt_lock_and_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task);  int			xprt_prepare_transmit(struct rpc_task *task);  void			xprt_transmit(struct rpc_task *task);  void			xprt_end_transmit(struct rpc_task *task); diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h index 22e61fdf75a..28e493b5b94 100644 --- a/include/linux/xfrm.h +++ b/include/linux/xfrm.h @@ -84,6 +84,8 @@ struct xfrm_replay_state {  	__u32	bitmap;  }; +#define XFRMA_REPLAY_ESN_MAX	4096 +  struct xfrm_replay_state_esn {  	unsigned int	bmp_len;  	__u32		oseq;  |