* [mmotm] adapt vmscan-unevictable-lru-scan-sysctl.patch to new sysfs API
@ 2008-07-14 11:01 KOSAKI Motohiro
0 siblings, 0 replies; only message in thread
From: KOSAKI Motohiro @ 2008-07-14 11:01 UTC (permalink / raw)
To: Hugh Dickins, Ingo Molnar, Andi Kleen, Greg Kroah-Hartman,
Lee Schermerhorn, Rik van Riel, linux-mm, Andrew Morton
Cc: kosaki.motohiro
Patch title: vmscan-unevictable-lru-scan-sysctl-add-sys_device-parameter.patch
Against: mmotm Jul 14
Applies after: vmscan-unevictable-lru-scan-sysctl-nommu-fix.patch
The second attribute parameter is missing in
read_scan_unevictable_node()/write_scan_unevictable_node().
which has been added recently.
mm/vmscan.c:2654: warning: initialization from incompatible pointer type
mm/vmscan.c:2654: warning: initialization from incompatible pointer type
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
CC: Andi Kleen <ak@linux.intel.com>
CC: Greg Kroah-Hartman <gregkh@suse.de>
CC: Lee Schermerhorn <lee.schermerhorn@hp.com>
CC: Rik van Riel <riel@redhat.com>
---
mm/vmscan.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Index: b/mm/vmscan.c
===================================================================
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2626,12 +2626,15 @@ int scan_unevictable_handler(struct ctl_
* a specified node's per zone unevictable lists for evictable pages.
*/
-static ssize_t read_scan_unevictable_node(struct sys_device *dev, char *buf)
+static ssize_t read_scan_unevictable_node(struct sys_device *dev,
+ struct sysdev_attribute *attr,
+ char *buf)
{
return sprintf(buf, "0\n"); /* always zero; should fit... */
}
static ssize_t write_scan_unevictable_node(struct sys_device *dev,
+ struct sysdev_attribute *attr,
const char *buf, size_t count)
{
struct zone *node_zones = NODE_DATA(dev->id)->node_zones;
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-14 11:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-14 11:01 [mmotm] adapt vmscan-unevictable-lru-scan-sysctl.patch to new sysfs API KOSAKI Motohiro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox