mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-21 12:43:18 +00:00
[XFRM]: fix sparse gfp nocast warnings
Fix implicit nocast warnings in xfrm code: net/xfrm/xfrm_policy.c:232:47: warning: implicit cast to nocast type Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3d2aef6689
commit
83fa3400eb
@ -875,7 +875,7 @@ static inline int xfrm_dst_lookup(struct xfrm_dst **dst, struct flowi *fl, unsig
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct xfrm_policy *xfrm_policy_alloc(int gfp);
|
struct xfrm_policy *xfrm_policy_alloc(unsigned int __nocast gfp);
|
||||||
extern int xfrm_policy_walk(int (*func)(struct xfrm_policy *, int, int, void*), void *);
|
extern int xfrm_policy_walk(int (*func)(struct xfrm_policy *, int, int, void*), void *);
|
||||||
int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl);
|
int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl);
|
||||||
struct xfrm_policy *xfrm_policy_bysel(int dir, struct xfrm_selector *sel,
|
struct xfrm_policy *xfrm_policy_bysel(int dir, struct xfrm_selector *sel,
|
||||||
|
@ -225,7 +225,7 @@ expired:
|
|||||||
* SPD calls.
|
* SPD calls.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct xfrm_policy *xfrm_policy_alloc(int gfp)
|
struct xfrm_policy *xfrm_policy_alloc(unsigned int __nocast gfp)
|
||||||
{
|
{
|
||||||
struct xfrm_policy *policy;
|
struct xfrm_policy *policy;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user