Use #include "..." for our own headers, <...> for others
System headers should be included with <...>, our own headers with "...". Offenders tracked down with an ugly, brittle and probably buggy Perl script. Previous iteration was commit a9c94277f0. Delete inclusions of "string.h" and "strings.h" instead of fixing them to <string.h> and <strings.h>, because we always include these via osdep.h. Put the cleaned up system header includes first. While there, separate #include from file comment with exactly one blank line. Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20180201111846.21846-2-armbru@redhat.com>
This commit is contained in:
parent
637b047717
commit
d8e39b7062
@ -11,10 +11,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
|
#include <iscsi/iscsi.h>
|
||||||
|
#include <iscsi/scsi-lowlevel.h>
|
||||||
#include "contrib/libvhost-user/libvhost-user-glib.h"
|
#include "contrib/libvhost-user/libvhost-user-glib.h"
|
||||||
#include "standard-headers/linux/virtio_scsi.h"
|
#include "standard-headers/linux/virtio_scsi.h"
|
||||||
#include "iscsi/iscsi.h"
|
|
||||||
#include "iscsi/scsi-lowlevel.h"
|
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
* http://wiki.osdev.org/User:Quok/Silicon_Image_Datasheets
|
* http://wiki.osdev.org/User:Quok/Silicon_Image_Datasheets
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <qemu/osdep.h>
|
#include "qemu/osdep.h"
|
||||||
#include <hw/ide/pci.h>
|
#include "hw/ide/pci.h"
|
||||||
#include "trace.h"
|
#include "trace.h"
|
||||||
|
|
||||||
#define TYPE_SII3112_PCI "sii3112"
|
#define TYPE_SII3112_PCI "sii3112"
|
||||||
|
@ -10,10 +10,11 @@
|
|||||||
* or (at your option) any later version. See the COPYING file in the
|
* or (at your option) any later version. See the COPYING file in the
|
||||||
* top-level directory.
|
* top-level directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
|
#include <libgen.h>
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "hw/sysbus.h"
|
#include "hw/sysbus.h"
|
||||||
#include "libgen.h"
|
|
||||||
#include "hw/s390x/css.h"
|
#include "hw/s390x/css.h"
|
||||||
#include "hw/s390x/css-bridge.h"
|
#include "hw/s390x/css-bridge.h"
|
||||||
#include "hw/s390x/s390-ccw.h"
|
#include "hw/s390x/s390-ccw.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef HW_LOADER_FIT_H
|
#ifndef HW_LOADER_FIT_H
|
||||||
#define HW_LOADER_FIT_H
|
#define HW_LOADER_FIT_H
|
||||||
|
|
||||||
#include <exec/hwaddr.h>
|
#include "exec/hwaddr.h"
|
||||||
|
|
||||||
struct fit_loader_match {
|
struct fit_loader_match {
|
||||||
const char *compatible;
|
const char *compatible;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#ifndef REGISTERFIELDS_H
|
#ifndef REGISTERFIELDS_H
|
||||||
#define REGISTERFIELDS_H
|
#define REGISTERFIELDS_H
|
||||||
|
|
||||||
#include <qemu/bitops.h>
|
#include "qemu/bitops.h"
|
||||||
|
|
||||||
/* Define constants for a 32 bit register */
|
/* Define constants for a 32 bit register */
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#ifndef S390_STORAGE_ATTRIBUTES_H
|
#ifndef S390_STORAGE_ATTRIBUTES_H
|
||||||
#define S390_STORAGE_ATTRIBUTES_H
|
#define S390_STORAGE_ATTRIBUTES_H
|
||||||
|
|
||||||
#include <hw/qdev.h>
|
#include "hw/qdev.h"
|
||||||
#include "monitor/monitor.h"
|
#include "monitor/monitor.h"
|
||||||
|
|
||||||
#define TYPE_S390_STATTRIB "s390-storage_attributes"
|
#define TYPE_S390_STATTRIB "s390-storage_attributes"
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
#include "exec/ioport.h"
|
#include "exec/ioport.h"
|
||||||
|
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "strings.h"
|
|
||||||
#include "hax-i386.h"
|
#include "hax-i386.h"
|
||||||
#include "sysemu/accel.h"
|
#include "sysemu/accel.h"
|
||||||
#include "sysemu/sysemu.h"
|
#include "sysemu/sysemu.h"
|
||||||
|
@ -70,7 +70,6 @@
|
|||||||
#include "hw/i386/apic_internal.h"
|
#include "hw/i386/apic_internal.h"
|
||||||
#include "hw/boards.h"
|
#include "hw/boards.h"
|
||||||
#include "qemu/main-loop.h"
|
#include "qemu/main-loop.h"
|
||||||
#include "strings.h"
|
|
||||||
#include "sysemu/accel.h"
|
#include "sysemu/accel.h"
|
||||||
#include "sysemu/sysemu.h"
|
#include "sysemu/sysemu.h"
|
||||||
#include "target/i386/cpu.h"
|
#include "target/i386/cpu.h"
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "panic.h"
|
#include "panic.h"
|
||||||
#include "x86_decode.h"
|
#include "x86_decode.h"
|
||||||
#include "string.h"
|
|
||||||
#include "vmx.h"
|
#include "vmx.h"
|
||||||
#include "x86_mmu.h"
|
#include "x86_mmu.h"
|
||||||
#include "x86_descr.h"
|
#include "x86_descr.h"
|
||||||
|
@ -15,18 +15,16 @@
|
|||||||
* You should have received a copy of the GNU Lesser General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this program; if not, see <http://www.gnu.org/licenses/>.
|
* License along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "qemu/osdep.h"
|
|
||||||
#include "panic.h"
|
|
||||||
|
|
||||||
|
#include "qemu/osdep.h"
|
||||||
|
#include <memory.h>
|
||||||
|
#include "panic.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "x86.h"
|
#include "x86.h"
|
||||||
#include "x86_mmu.h"
|
#include "x86_mmu.h"
|
||||||
#include "string.h"
|
|
||||||
#include "vmcs.h"
|
#include "vmcs.h"
|
||||||
#include "vmx.h"
|
#include "vmx.h"
|
||||||
|
|
||||||
#include "memory.h"
|
|
||||||
#include "exec/address-spaces.h"
|
#include "exec/address-spaces.h"
|
||||||
|
|
||||||
#define pte_present(pte) (pte & PT_PRESENT)
|
#define pte_present(pte) (pte & PT_PRESENT)
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
#include "hw/i386/apic_internal.h"
|
#include "hw/i386/apic_internal.h"
|
||||||
#include "hw/boards.h"
|
#include "hw/boards.h"
|
||||||
#include "qemu/main-loop.h"
|
#include "qemu/main-loop.h"
|
||||||
#include "strings.h"
|
|
||||||
#include "sysemu/accel.h"
|
#include "sysemu/accel.h"
|
||||||
#include "sysemu/sysemu.h"
|
#include "sysemu/sysemu.h"
|
||||||
#include "target/i386/cpu.h"
|
#include "target/i386/cpu.h"
|
||||||
|
@ -9,12 +9,10 @@
|
|||||||
* This work is licensed under the terms of the GNU GPL, version 2 or (at
|
* This work is licensed under the terms of the GNU GPL, version 2 or (at
|
||||||
* your option) any later version. See the COPYING file in the top-level
|
* your option) any later version. See the COPYING file in the top-level
|
||||||
* directory.
|
* directory.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include "inttypes.h"
|
#include <stdio.h>
|
||||||
#include "stdio.h"
|
|
||||||
#include "cpu_features_def.h"
|
#include "cpu_features_def.h"
|
||||||
|
|
||||||
#define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
|
#define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
||||||
02110-1301, USA. */
|
02110-1301, USA. */
|
||||||
|
|
||||||
#include <xtensa-isa.h>
|
#include "xtensa-isa.h"
|
||||||
#include "xtensa-isa-internal.h"
|
#include "xtensa-isa-internal.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
|
|
||||||
#include <xtensa-isa.h>
|
#include "xtensa-isa.h"
|
||||||
#include "xtensa-isa-internal.h"
|
#include "xtensa-isa-internal.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
|
|
||||||
#include <xtensa-isa.h>
|
#include "xtensa-isa.h"
|
||||||
#include "xtensa-isa-internal.h"
|
#include "xtensa-isa-internal.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
||||||
02110-1301, USA. */
|
02110-1301, USA. */
|
||||||
|
|
||||||
#include <xtensa-isa.h>
|
#include "xtensa-isa.h"
|
||||||
#include "xtensa-isa-internal.h"
|
#include "xtensa-isa-internal.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
|
|
||||||
#include <xtensa-isa.h>
|
#include "xtensa-isa.h"
|
||||||
#include "xtensa-isa-internal.h"
|
#include "xtensa-isa-internal.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
#include <hw/xtensa/xtensa-isa.h>
|
#include "hw/xtensa/xtensa-isa.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user