hw/net: Clean up includes

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 <peter.maydell@linaro.org>
Message-id: 1453832250-766-19-git-send-email-peter.maydell@linaro.org
This commit is contained in:
Peter Maydell 2016-01-26 18:17:11 +00:00
parent fbc0412709
commit e8d4046559
31 changed files with 31 additions and 5 deletions

View File

@ -17,6 +17,7 @@
* with this program; if not, see <http://www.gnu.org/licenses/>. * with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qemu/osdep.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "hw/devices.h" #include "hw/devices.h"
#include "net/net.h" #include "net/net.h"

View File

@ -25,6 +25,7 @@
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/pci/pci.h" #include "hw/pci/pci.h"
#include "net/net.h" #include "net/net.h"

View File

@ -40,7 +40,7 @@
* * Wake-on-LAN is not implemented. * * Wake-on-LAN is not implemented.
*/ */
#include <stddef.h> /* offsetof */ #include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/pci/pci.h" #include "hw/pci/pci.h"
#include "net/net.h" #include "net/net.h"

View File

@ -22,7 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include <stdio.h> #include "qemu/osdep.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "net/net.h" #include "net/net.h"
#include "hw/cris/etraxfs.h" #include "hw/cris/etraxfs.h"

View File

@ -26,6 +26,7 @@
* This implementation doesn't include ring priority, TCP/IP Off-Load, QoS. * This implementation doesn't include ring priority, TCP/IP Off-Load, QoS.
*/ */
#include "qemu/osdep.h"
#include "sysemu/sysemu.h" #include "sysemu/sysemu.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "trace.h" #include "trace.h"

View File

@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "etsec.h" #include "etsec.h"
#include "registers.h" #include "registers.h"

View File

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "registers.h" #include "registers.h"
const eTSEC_Register_Definition eTSEC_registers_def[] = { const eTSEC_Register_Definition eTSEC_registers_def[] = {

View File

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "net/checksum.h" #include "net/checksum.h"
#include "etsec.h" #include "etsec.h"

View File

@ -10,6 +10,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "qemu/osdep.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "net/net.h" #include "net/net.h"
#include "hw/devices.h" #include "hw/devices.h"

View File

@ -35,6 +35,7 @@
* http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt * http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt
*/ */
#include "qemu/osdep.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "net/net.h" #include "net/net.h"
#include "qemu/timer.h" #include "qemu/timer.h"

View File

@ -5,6 +5,7 @@
* *
* This code is licensed under the GPL * This code is licensed under the GPL
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "net/net.h" #include "net/net.h"
#include "hw/m68k/mcf.h" #include "hw/m68k/mcf.h"

View File

@ -1,3 +1,4 @@
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "net/net.h" #include "net/net.h"
#include "trace.h" #include "trace.h"

View File

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/i386/pc.h" #include "hw/i386/pc.h"
#include "hw/isa/isa.h" #include "hw/isa/isa.h"

View File

@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/pci/pci.h" #include "hw/pci/pci.h"
#include "net/net.h" #include "net/net.h"

View File

@ -31,6 +31,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "net/net.h" #include "net/net.h"

View File

@ -27,6 +27,7 @@
* AMD Publication# 19436 Rev:E Amendment/0 Issue Date: June 2000 * AMD Publication# 19436 Rev:E Amendment/0 Issue Date: June 2000
*/ */
#include "qemu/osdep.h"
#include "hw/pci/pci.h" #include "hw/pci/pci.h"
#include "net/net.h" #include "net/net.h"
#include "hw/loader.h" #include "hw/loader.h"

View File

@ -35,6 +35,7 @@
* http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt * http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt
*/ */
#include "qemu/osdep.h"
#include "hw/qdev.h" #include "hw/qdev.h"
#include "net/net.h" #include "net/net.h"
#include "qemu/timer.h" #include "qemu/timer.h"

View File

@ -15,6 +15,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "qmp-commands.h" #include "qmp-commands.h"
#include "qapi/qmp/qerror.h" #include "qapi/qmp/qerror.h"

View File

@ -15,6 +15,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/pci/pci.h" #include "hw/pci/pci.h"
#include "hw/pci/msix.h" #include "hw/pci/msix.h"

View File

@ -14,6 +14,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "qemu/osdep.h"
#include "net/net.h" #include "net/net.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/pci/pci.h" #include "hw/pci/pci.h"

View File

@ -14,6 +14,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "qemu/osdep.h"
#include "net/clients.h" #include "net/clients.h"
#include "rocker.h" #include "rocker.h"

View File

@ -14,6 +14,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "qemu/osdep.h"
#include "net/eth.h" #include "net/eth.h"
#include "qemu/iov.h" #include "qemu/iov.h"
#include "qemu/timer.h" #include "qemu/timer.h"

View File

@ -14,6 +14,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "qemu/osdep.h"
#include "qemu/iov.h" #include "qemu/iov.h"
#include "rocker.h" #include "rocker.h"

View File

@ -49,6 +49,7 @@
*/ */
/* For crc32 */ /* For crc32 */
#include "qemu/osdep.h"
#include <zlib.h> #include <zlib.h>
#include "hw/hw.h" #include "hw/hw.h"

View File

@ -7,6 +7,7 @@
* This code is licensed under the GPL * This code is licensed under the GPL
*/ */
#include "qemu/osdep.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "net/net.h" #include "net/net.h"
#include "hw/devices.h" #include "hw/devices.h"

View File

@ -13,6 +13,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "qemu/osdep.h"
#include "net/net.h" #include "net/net.h"
#include "net/tap.h" #include "net/tap.h"
#include "net/vhost-user.h" #include "net/vhost-user.h"
@ -21,19 +22,16 @@
#include "net/vhost_net.h" #include "net/vhost_net.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "config.h"
#ifdef CONFIG_VHOST_NET #ifdef CONFIG_VHOST_NET
#include <linux/vhost.h> #include <linux/vhost.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <linux/kvm.h> #include <linux/kvm.h>
#include <fcntl.h>
#include <netpacket/packet.h> #include <netpacket/packet.h>
#include <net/ethernet.h> #include <net/ethernet.h>
#include <net/if.h> #include <net/if.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <stdio.h>
#include "standard-headers/linux/virtio_ring.h" #include "standard-headers/linux/virtio_ring.h"
#include "hw/virtio/vhost.h" #include "hw/virtio/vhost.h"

View File

@ -15,6 +15,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/pci/pci.h" #include "hw/pci/pci.h"
#include "net/net.h" #include "net/net.h"

View File

@ -15,6 +15,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "vmxnet_rx_pkt.h" #include "vmxnet_rx_pkt.h"
#include "net/eth.h" #include "net/eth.h"
#include "qemu-common.h" #include "qemu-common.h"

View File

@ -15,6 +15,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "vmxnet_tx_pkt.h" #include "vmxnet_tx_pkt.h"
#include "net/eth.h" #include "net/eth.h"

View File

@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "qemu/log.h" #include "qemu/log.h"
#include "net/net.h" #include "net/net.h"

View File

@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "net/net.h" #include "net/net.h"