mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
Merge tag 'v4.9.206' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.206 stable release
This commit is contained in:
@@ -50,7 +50,8 @@ typedef unsigned long (*genpool_algo_t)(unsigned long *map,
|
||||
unsigned long size,
|
||||
unsigned long start,
|
||||
unsigned int nr,
|
||||
void *data, struct gen_pool *pool);
|
||||
void *data, struct gen_pool *pool,
|
||||
unsigned long start_addr);
|
||||
|
||||
/*
|
||||
* General purpose special memory pool descriptor.
|
||||
@@ -130,24 +131,24 @@ extern void gen_pool_set_algo(struct gen_pool *pool, genpool_algo_t algo,
|
||||
|
||||
extern unsigned long gen_pool_first_fit(unsigned long *map, unsigned long size,
|
||||
unsigned long start, unsigned int nr, void *data,
|
||||
struct gen_pool *pool);
|
||||
struct gen_pool *pool, unsigned long start_addr);
|
||||
|
||||
extern unsigned long gen_pool_fixed_alloc(unsigned long *map,
|
||||
unsigned long size, unsigned long start, unsigned int nr,
|
||||
void *data, struct gen_pool *pool);
|
||||
void *data, struct gen_pool *pool, unsigned long start_addr);
|
||||
|
||||
extern unsigned long gen_pool_first_fit_align(unsigned long *map,
|
||||
unsigned long size, unsigned long start, unsigned int nr,
|
||||
void *data, struct gen_pool *pool);
|
||||
void *data, struct gen_pool *pool, unsigned long start_addr);
|
||||
|
||||
|
||||
extern unsigned long gen_pool_first_fit_order_align(unsigned long *map,
|
||||
unsigned long size, unsigned long start, unsigned int nr,
|
||||
void *data, struct gen_pool *pool);
|
||||
void *data, struct gen_pool *pool, unsigned long start_addr);
|
||||
|
||||
extern unsigned long gen_pool_best_fit(unsigned long *map, unsigned long size,
|
||||
unsigned long start, unsigned int nr, void *data,
|
||||
struct gen_pool *pool);
|
||||
struct gen_pool *pool, unsigned long start_addr);
|
||||
|
||||
|
||||
extern struct gen_pool *devm_gen_pool_create(struct device *dev,
|
||||
|
||||
@@ -430,7 +430,7 @@ static inline int gpiod_to_irq(const struct gpio_desc *desc)
|
||||
|
||||
static inline struct gpio_desc *gpio_to_desc(unsigned gpio)
|
||||
{
|
||||
return ERR_PTR(-EINVAL);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline int desc_to_gpio(const struct gpio_desc *desc)
|
||||
|
||||
@@ -3565,7 +3565,7 @@ static inline u32 netif_msg_init(int debug_value, int default_msg_enable_bits)
|
||||
if (debug_value == 0) /* no output */
|
||||
return 0;
|
||||
/* set low N bits */
|
||||
return (1 << debug_value) - 1;
|
||||
return (1U << debug_value) - 1;
|
||||
}
|
||||
|
||||
static inline void __netif_tx_lock(struct netdev_queue *txq, int cpu)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
struct reset_controller_dev;
|
||||
|
||||
/**
|
||||
* struct reset_control_ops
|
||||
* struct reset_control_ops - reset controller driver callbacks
|
||||
*
|
||||
* @reset: for self-deasserting resets, does all necessary
|
||||
* things to reset the device
|
||||
|
||||
@@ -335,14 +335,8 @@ extern unsigned long vm_total_pages;
|
||||
extern int node_reclaim_mode;
|
||||
extern int sysctl_min_unmapped_ratio;
|
||||
extern int sysctl_min_slab_ratio;
|
||||
extern int node_reclaim(struct pglist_data *, gfp_t, unsigned int);
|
||||
#else
|
||||
#define node_reclaim_mode 0
|
||||
static inline int node_reclaim(struct pglist_data *pgdat, gfp_t mask,
|
||||
unsigned int order)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
extern int page_evictable(struct page *page);
|
||||
|
||||
@@ -1202,6 +1202,9 @@ struct sctp_ep_common {
|
||||
/* What socket does this endpoint belong to? */
|
||||
struct sock *sk;
|
||||
|
||||
/* Cache netns and it won't change once set */
|
||||
struct net *net;
|
||||
|
||||
/* This is where we receive inbound chunks. */
|
||||
struct sctp_inq inqueue;
|
||||
|
||||
|
||||
@@ -1202,7 +1202,7 @@ static inline void sk_sockets_allocated_inc(struct sock *sk)
|
||||
percpu_counter_inc(sk->sk_prot->sockets_allocated);
|
||||
}
|
||||
|
||||
static inline int
|
||||
static inline u64
|
||||
sk_sockets_allocated_read_positive(struct sock *sk)
|
||||
{
|
||||
return percpu_counter_read_positive(sk->sk_prot->sockets_allocated);
|
||||
|
||||
Reference in New Issue
Block a user