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

ibmraid: fix writeable attribute with no store method

https://bugzilla.kernel.org/show_bug.cgi?id=81311

[ 0.603157] WARNING: at drivers/base/core.c:601
device_create_file+0x8d/0xa0()
[ 0.603158] Attribute adapter_id: write permission without 'store'
[ 0.603159] Modules linked in: i915(+) i2c_algo_bit drm_kms_helper drm
mpt2sas(+) pmcraid(+) raid_class scsi_transport_sas i2c_core video

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Alan and committed by
Jiri Kosina
5a0ccb6b 231821d4

+1 -1
+1 -1
drivers/scsi/pmcraid.c
··· 4292 4292 static struct device_attribute pmcraid_adapter_id_attr = { 4293 4293 .attr = { 4294 4294 .name = "adapter_id", 4295 - .mode = S_IRUGO | S_IWUSR, 4295 + .mode = S_IRUGO, 4296 4296 }, 4297 4297 .show = pmcraid_show_adapter_id, 4298 4298 };