edac_device.c (e27e3dac651771fe3250f6305dee277bce29fc5d) | edac_device.c (c4192705fec85219086231a1c0fa61e8776e2c3b) |
---|---|
1 2/* 3 * edac_device.c 4 * (C) 2007 www.douglaskthompson.com 5 * 6 * This file may be distributed under the terms of the 7 * GNU General Public License. 8 * --- 250 unchanged lines hidden (view full) --- 259 } 260 261 list_add_tail_rcu(&edac_dev->link, insert_before); 262 return 0; 263 264fail0: 265 edac_printk(KERN_WARNING, EDAC_MC, 266 "%s (%s) %s %s already assigned %d\n", | 1 2/* 3 * edac_device.c 4 * (C) 2007 www.douglaskthompson.com 5 * 6 * This file may be distributed under the terms of the 7 * GNU General Public License. 8 * --- 250 unchanged lines hidden (view full) --- 259 } 260 261 list_add_tail_rcu(&edac_dev->link, insert_before); 262 return 0; 263 264fail0: 265 edac_printk(KERN_WARNING, EDAC_MC, 266 "%s (%s) %s %s already assigned %d\n", |
267 rover->dev->bus_id, dev_name(rover->dev), | 267 rover->dev->bus_id, dev_name(rover), |
268 rover->mod_name, rover->ctl_name, rover->dev_idx); 269 return 1; 270 271fail1: 272 edac_printk(KERN_WARNING, EDAC_MC, 273 "bug in low-level driver: attempt to assign\n" 274 " duplicate dev_idx %d in %s()\n", rover->dev_idx, __func__); 275 return 1; --- 210 unchanged lines hidden (view full) --- 486 } 487 488 489 /* Report action taken */ 490 edac_device_printk(edac_dev, KERN_INFO, 491 "Giving out device to module '%s' controller '%s': DEV '%s' (%s)\n", 492 edac_dev->mod_name, 493 edac_dev->ctl_name, | 268 rover->mod_name, rover->ctl_name, rover->dev_idx); 269 return 1; 270 271fail1: 272 edac_printk(KERN_WARNING, EDAC_MC, 273 "bug in low-level driver: attempt to assign\n" 274 " duplicate dev_idx %d in %s()\n", rover->dev_idx, __func__); 275 return 1; --- 210 unchanged lines hidden (view full) --- 486 } 487 488 489 /* Report action taken */ 490 edac_device_printk(edac_dev, KERN_INFO, 491 "Giving out device to module '%s' controller '%s': DEV '%s' (%s)\n", 492 edac_dev->mod_name, 493 edac_dev->ctl_name, |
494 dev_name(edac_dev->dev), | 494 dev_name(edac_dev), |
495 edac_op_state_toString(edac_dev) 496 ); 497 498 unlock_device_list(); 499 return 0; 500 501fail1: 502 /* Some error, so remove the entry from the lsit */ --- 45 unchanged lines hidden (view full) --- 548 549 unlock_device_list(); 550 551 edac_printk(KERN_INFO, EDAC_MC, 552 "Removed device %d for %s %s: DEV %s\n", 553 edac_dev->dev_idx, 554 edac_dev->mod_name, 555 edac_dev->ctl_name, | 495 edac_op_state_toString(edac_dev) 496 ); 497 498 unlock_device_list(); 499 return 0; 500 501fail1: 502 /* Some error, so remove the entry from the lsit */ --- 45 unchanged lines hidden (view full) --- 548 549 unlock_device_list(); 550 551 edac_printk(KERN_INFO, EDAC_MC, 552 "Removed device %d for %s %s: DEV %s\n", 553 edac_dev->dev_idx, 554 edac_dev->mod_name, 555 edac_dev->ctl_name, |
556 dev_name(edac_dev->dev)); | 556 dev_name(edac_dev)); |
557 558 return edac_dev; 559} 560EXPORT_SYMBOL_GPL(edac_device_del_device); 561 562 563static inline int edac_device_get_log_ce(struct edac_device_ctl_info *edac_dev) 564{ --- 105 unchanged lines hidden --- | 557 558 return edac_dev; 559} 560EXPORT_SYMBOL_GPL(edac_device_del_device); 561 562 563static inline int edac_device_get_log_ce(struct edac_device_ctl_info *edac_dev) 564{ --- 105 unchanged lines hidden --- |