Re: [PATCH 11/22] aerdrv: remove magical ROOT_ERR_STATUS_MASKS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(2010/04/09 9:23), Kenji Kaneshige wrote:
> How about changing ROOT_ERR_STATUS_MASK as follows instead of removing it.
> 
> #define ROOT_ERR_STATUS_MASK    (PCI_ERR_ROOT_UNCOR_RCV |               \
>                                 PCI_ERR_ROOT_MULTI_UNCOR_RCV |         \
>                                 PCI_ERR_ROOT_COR_RCV |                 \
>                                 PCI_ERR_ROOT_MULTI_COR_RCV)

I did this change at first.
However this mask is used only once, and I thought it
would be painful for readers to force searching this macro
from kernel tree and to force having unmemorable information
"this is combination of 4 bits" that will never used again.
So I removed this alias and use bits directly.

I don't know which is preferred, changing or removing.
But IMHO renaming fuzzy ROOT_ERR_STATUS_MASK to something
like PCI_ERR_ROOT_ERR_RCV_MASK is also good if changing is
preferred.
How do you think?


Thanks,
H.Seto

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux