diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2016-06-07 20:48:33 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-06-13 10:28:58 -0500 |
commit | 9661e783d830699a65f7d42e4b4a76e6923089eb (patch) | |
tree | eba17607e26652202c1950623b05802ee7b43ecd /include/linux/pci.h | |
parent | af8c34ce6ae32addda3788d54a7e340cad22516b (diff) | |
download | lwn-9661e783d830699a65f7d42e4b4a76e6923089eb.tar.gz lwn-9661e783d830699a65f7d42e4b4a76e6923089eb.zip |
PCI / PM: Enforce type casting for pci_power_t
When casting variables of type pci_power_t, a static analysis tool complains:
include/linux/pci.h:119:37: warning: cast from restricted pci_power_t
Enforce type casting to make the static analyzer happy.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index b67e4df20801..8d748345b158 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -116,7 +116,7 @@ extern const char *pci_power_names[]; static inline const char *pci_power_name(pci_power_t state) { - return pci_power_names[1 + (int) state]; + return pci_power_names[1 + (__force int) state]; } #define PCI_PM_D2_DELAY 200 |