+ mm-mempolicy-silence-gcc-warning.patch added to -mm tree
Subsystems (2)
[email protected]
maintainerSubject: + mm-mempolicy-silence-gcc-warning.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 20 Nov 2013 14:15:45 -0800
The patch titled
Subject: mm, mempolicy: silence gcc warning
has been added to the -mm tree. Its filename is
mm-mempolicy-silence-gcc-warning.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-mempolicy-silence-gcc-warning.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-mempolicy-silence-gcc-warning.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: David Rientjes <[email protected]>
Subject: mm, mempolicy: silence gcc warning
Fengguang Wu reports that compiling mm/mempolicy.c results in a warning:
mm/mempolicy.c: In function 'mpol_to_str':
mm/mempolicy.c:2878:2: error: format not a string literal and no format arguments
Kees says this is because he is using -Wformat-security.
Silence the warning.
---
mm/mempolicy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/mempolicy.c renamed from mm/mempolicy.c~mm-mempolicy-silence-gcc-warning +1 -1
@@ -2950,7 +2950,7 @@ void mpol_to_str(char *buffer, int maxlereturn ; } - p +=snprintf (p, maxlen, policy_modes[mode]); + p +=snprintf (p, maxlen,"%s" , policy_modes[mode]);if (flags &MPOL_MODE_FLAGS ) { p +=snprintf (p, buffer + maxlen - p,"=" );
_
Patches currently in -mm which might be from [email protected] are
origin.patch
mm-mempolicy-silence-gcc-warning.patch mm-memcg-avoid-oom-notification-when-current-needs-access-to-memory-reserves.patch