Skip to content

Commit

Permalink
hw/scsi: Clean up includes
Browse files Browse the repository at this point in the history
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell <[email protected]>
Message-id: [email protected]
  • Loading branch information
pm215 committed Jan 29, 2016
1 parent 97d5408 commit a4ab479
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions hw/scsi/esp-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "hw/pci/pci.h"
#include "hw/nvram/eeprom93xx.h"
#include "hw/scsi/esp.h"
Expand Down
1 change: 1 addition & 0 deletions hw/scsi/esp.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "hw/scsi/esp.h"
#include "trace.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/scsi/lsi53c895a.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* as well-behaved operating systems will not try to use them.
*/

#include <assert.h>
#include "qemu/osdep.h"

#include "hw/hw.h"
#include "hw/pci/pci.h"
Expand Down
1 change: 1 addition & 0 deletions hw/scsi/megasas.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/

#include "qemu/osdep.h"
#include "hw/hw.h"
#include "hw/pci/pci.h"
#include "sysemu/dma.h"
Expand Down
1 change: 1 addition & 0 deletions hw/scsi/scsi-bus.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/hw.h"
#include "qemu/error-report.h"
#include "hw/scsi/scsi.h"
Expand Down
1 change: 1 addition & 0 deletions hw/scsi/scsi-disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ do { printf("scsi-disk: " fmt , ## __VA_ARGS__); } while (0)
#define DPRINTF(fmt, ...) do {} while(0)
#endif

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/error-report.h"
#include "hw/scsi/scsi.h"
Expand Down
5 changes: 1 addition & 4 deletions hw/scsi/scsi-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/error-report.h"
#include "hw/scsi/scsi.h"
Expand All @@ -31,10 +32,6 @@ do { printf("scsi-generic: " fmt , ## __VA_ARGS__); } while (0)
#define BADF(fmt, ...) \
do { fprintf(stderr, "scsi-generic: " fmt , ## __VA_ARGS__); } while (0)

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <scsi/sg.h>
#include "block/scsi.h"

Expand Down
2 changes: 1 addition & 1 deletion hw/scsi/vhost-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*
*/

#include "qemu/osdep.h"
#include <sys/ioctl.h>
#include "config.h"
#include "qemu/error-report.h"
#include "qemu/queue.h"
#include "monitor/monitor.h"
Expand Down
1 change: 1 addition & 0 deletions hw/scsi/vmw_pvscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*
*/

#include "qemu/osdep.h"
#include "hw/scsi/scsi.h"
#include <block/scsi.h>
#include "hw/pci/msi.h"
Expand Down

0 comments on commit a4ab479

Please sign in to comment.