PCI: endpoint: Add "volatile" to pci_epf_test_reg
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 18 Aug 2017 14:57:57 +0000 (20:27 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Aug 2017 21:00:37 +0000 (16:00 -0500)
commit09232c7acbd451c6da555ffdebad82661bf3d0be
treec19cb366c046bc887db4075f3ec6b3c9a0c86a39
parent52c9285d47459cf241e144c7d8ef15941ba1b181
PCI: endpoint: Add "volatile" to pci_epf_test_reg

struct pci_epf_test_reg is the MEMSPACE of pci-epf-test function driver
that will be accessed by the "host" for programming the pci-epf-test
device. So this structure shouldn't be subjected to compiler optimization
in pci_epf_test_cmd_handler() since the values can be changed by code
outside the scope of current code at any time.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/endpoint/functions/pci-epf-test.c