Thread (1 message) 1 message, 1 author, 2024-11-05

Re: [PATCH v2 05/10] sysfs: treewide: constify attribute callback of bin_is_visible()

From: "Martin K. Petersen" <martin.petersen@oracle.com>
Date: 2024-11-05 01:26:52
Also in: amd-gfx, dri-devel, linux-alpha, linux-cxl, linux-hyperv, linux-pci, linux-rdma, linux-scsi, linux-usb, lkml, platform-driver-x86

Thomas,
The is_bin_visible() callbacks should not modify the struct
bin_attribute passed as argument. Enforce this by marking the argument
as const.

As there are not many callback implementers perform this change
throughout the tree at once.
For scsi:

Acked-by: Martin K. Petersen <martin.petersen@oracle.com>

-- 
Martin K. Petersen	Oracle Linux Engineering
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help