diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-06 14:42:52 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-06 14:42:52 -0500 |
commit | ff4b8a57f0aaa2882d444ca44b2b9b333d22a4df (patch) | |
tree | d851c923f85566572112d4c0f884cff388a3cc05 /mm/vmscan.c | |
parent | 805a6af8dba5dfdd35ec35dc52ec0122400b2610 (diff) | |
parent | ea04018e6bc5ddb2f0466c0e5b986bd4901b7e8e (diff) |
Merge branch 'driver-core-next' into Linux 3.2
This resolves the conflict in the arch/arm/mach-s3c64xx/s3c6400.c file,
and it fixes the build error in the arch/x86/kernel/microcode_core.c
file, that the merge did not catch.
The microcode_core.c patch was provided by Stephen Rothwell
<sfr@canb.auug.org.au> who was invaluable in the merge issues involved
with the large sysdev removal process in the driver-core tree.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index f54a05b7a61d..11adc890ce30 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -3475,16 +3475,16 @@ int scan_unevictable_handler(struct ctl_table *table, int write, | |||
3475 | * a specified node's per zone unevictable lists for evictable pages. | 3475 | * a specified node's per zone unevictable lists for evictable pages. |
3476 | */ | 3476 | */ |
3477 | 3477 | ||
3478 | static ssize_t read_scan_unevictable_node(struct sys_device *dev, | 3478 | static ssize_t read_scan_unevictable_node(struct device *dev, |
3479 | struct sysdev_attribute *attr, | 3479 | struct device_attribute *attr, |
3480 | char *buf) | 3480 | char *buf) |
3481 | { | 3481 | { |
3482 | warn_scan_unevictable_pages(); | 3482 | warn_scan_unevictable_pages(); |
3483 | return sprintf(buf, "0\n"); /* always zero; should fit... */ | 3483 | return sprintf(buf, "0\n"); /* always zero; should fit... */ |
3484 | } | 3484 | } |
3485 | 3485 | ||
3486 | static ssize_t write_scan_unevictable_node(struct sys_device *dev, | 3486 | static ssize_t write_scan_unevictable_node(struct device *dev, |
3487 | struct sysdev_attribute *attr, | 3487 | struct device_attribute *attr, |
3488 | const char *buf, size_t count) | 3488 | const char *buf, size_t count) |
3489 | { | 3489 | { |
3490 | warn_scan_unevictable_pages(); | 3490 | warn_scan_unevictable_pages(); |
@@ -3492,17 +3492,17 @@ static ssize_t write_scan_unevictable_node(struct sys_device *dev, | |||
3492 | } | 3492 | } |
3493 | 3493 | ||
3494 | 3494 | ||
3495 | static SYSDEV_ATTR(scan_unevictable_pages, S_IRUGO | S_IWUSR, | 3495 | static DEVICE_ATTR(scan_unevictable_pages, S_IRUGO | S_IWUSR, |
3496 | read_scan_unevictable_node, | 3496 | read_scan_unevictable_node, |
3497 | write_scan_unevictable_node); | 3497 | write_scan_unevictable_node); |
3498 | 3498 | ||
3499 | int scan_unevictable_register_node(struct node *node) | 3499 | int scan_unevictable_register_node(struct node *node) |
3500 | { | 3500 | { |
3501 | return sysdev_create_file(&node->sysdev, &attr_scan_unevictable_pages); | 3501 | return device_create_file(&node->dev, &dev_attr_scan_unevictable_pages); |
3502 | } | 3502 | } |
3503 | 3503 | ||
3504 | void scan_unevictable_unregister_node(struct node *node) | 3504 | void scan_unevictable_unregister_node(struct node *node) |
3505 | { | 3505 | { |
3506 | sysdev_remove_file(&node->sysdev, &attr_scan_unevictable_pages); | 3506 | device_remove_file(&node->dev, &dev_attr_scan_unevictable_pages); |
3507 | } | 3507 | } |
3508 | #endif | 3508 | #endif |