mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
xfrm: constify mark argument of xfrm_find_acq()
The mark argument is read only, so constify it. Also make dummy_mark in af_key const -- only used as dummy argument for this very function. Signed-off-by: Mathias Krause <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Herbert Xu <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
This commit is contained in:
parent
5ca5461c3e
commit
e473fcb472
3 changed files with 9 additions and 7 deletions
|
|
@ -45,7 +45,7 @@ struct netns_pfkey {
|
|||
static DEFINE_MUTEX(pfkey_mutex);
|
||||
|
||||
#define DUMMY_MARK 0
|
||||
static struct xfrm_mark dummy_mark = {0, 0};
|
||||
static const struct xfrm_mark dummy_mark = {0, 0};
|
||||
struct pfkey_sock {
|
||||
/* struct sock must be the first member of struct pfkey_sock */
|
||||
struct sock sk;
|
||||
|
|
|
|||
Loading…
Reference in a new issue