Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

EDAC: Remove arbitrary limit on number of channels

Currently set to "6", but the reset of the code will dynamically
allocate as needed. We need to go to "8" today, but drop the check
completely to save doing this again when we need even larger numbers.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Acked-by: Aristeu Rozanski <aris@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Tony Luck and committed by
Mauro Carvalho Chehab
c44696ff c65b99f0

-5
-5
drivers/edac/edac_mc_sysfs.c
··· 307 307 * 308 308 */ 309 309 310 - #define EDAC_NR_CHANNELS 6 311 - 312 310 DEVICE_CHANNEL(ch0_dimm_label, S_IRUGO | S_IWUSR, 313 311 channel_dimm_label_show, channel_dimm_label_store, 0); 314 312 DEVICE_CHANNEL(ch1_dimm_label, S_IRUGO | S_IWUSR, ··· 401 403 static int edac_create_csrow_object(struct mem_ctl_info *mci, 402 404 struct csrow_info *csrow, int index) 403 405 { 404 - if (csrow->nr_channels > EDAC_NR_CHANNELS) 405 - return -ENODEV; 406 - 407 406 csrow->dev.type = &csrow_attr_type; 408 407 csrow->dev.bus = mci->bus; 409 408 csrow->dev.groups = csrow_dev_groups;