From patchwork Fri Jan 29 17:49:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 8165761 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BEECF9FE6C for ; Fri, 29 Jan 2016 17:58:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5988020395 for ; Fri, 29 Jan 2016 17:58:17 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 950C5201C0 for ; Fri, 29 Jan 2016 17:58:15 +0000 (UTC) Received: from localhost ([::1]:35858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPDJH-0001WC-1q for patchwork-qemu-devel@patchwork.kernel.org; Fri, 29 Jan 2016 12:58:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPDBR-0002xr-Ne for qemu-devel@nongnu.org; Fri, 29 Jan 2016 12:50:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPDBP-0001uq-Ha for qemu-devel@nongnu.org; Fri, 29 Jan 2016 12:50:09 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:59685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPDBP-0001uk-5I for qemu-devel@nongnu.org; Fri, 29 Jan 2016 12:50:07 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1aPDBN-0001Ql-LR; Fri, 29 Jan 2016 17:50:05 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Fri, 29 Jan 2016 17:49:51 +0000 Message-Id: <1454089805-5470-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1454089805-5470-1-git-send-email-peter.maydell@linaro.org> References: <1454089805-5470-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 2001:8b0:1d0::1 Cc: patches@linaro.org Subject: [Qemu-devel] [PATCH 01/15] ui: Clean up includes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- ui/console-gl.c | 1 + ui/console.c | 1 + ui/curses.c | 1 + ui/cursor.c | 1 + ui/egl-context.c | 1 + ui/egl-helpers.c | 9 +-------- ui/gtk-egl.c | 1 + ui/gtk-gl-area.c | 1 + ui/gtk.c | 1 + ui/input-keymap.c | 1 + ui/input-legacy.c | 2 +- ui/input.c | 1 + ui/keymaps.c | 1 + ui/qemu-pixman.c | 1 + ui/sdl.c | 1 + ui/sdl2-2d.c | 1 + ui/sdl2-gl.c | 1 + ui/sdl2-input.c | 1 + ui/sdl2.c | 1 + ui/sdl_zoom.c | 4 +--- ui/shader.c | 1 + ui/spice-core.c | 1 + ui/spice-display.c | 1 + ui/spice-input.c | 5 +---- ui/vnc-auth-sasl.c | 1 + ui/vnc-auth-vencrypt.c | 1 + ui/vnc-enc-hextile.c | 1 + ui/vnc-enc-tight.c | 3 +-- ui/vnc-enc-zlib.c | 1 + ui/vnc-enc-zrle-template.c | 2 +- ui/vnc-enc-zrle.c | 1 + ui/vnc-enc-zywrle-template.c | 1 + ui/vnc-jobs.c | 1 + ui/vnc-palette.c | 2 +- ui/vnc-ws.c | 1 + ui/vnc.c | 2 +- ui/x_keymap.c | 1 + 37 files changed, 37 insertions(+), 21 deletions(-) diff --git a/ui/console-gl.c b/ui/console-gl.c index baf397b..74b1bed 100644 --- a/ui/console-gl.c +++ b/ui/console-gl.c @@ -24,6 +24,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" #include "ui/shader.h" diff --git a/ui/console.c b/ui/console.c index fe950c6..309e10a 100644 --- a/ui/console.c +++ b/ui/console.c @@ -21,6 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" #include "hw/qdev-core.h" diff --git a/ui/curses.c b/ui/curses.c index 274e09b..b475589 100644 --- a/ui/curses.c +++ b/ui/curses.c @@ -21,6 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include #ifndef _WIN32 diff --git a/ui/cursor.c b/ui/cursor.c index 2b8dd3f..a276e01 100644 --- a/ui/cursor.c +++ b/ui/cursor.c @@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" diff --git a/ui/egl-context.c b/ui/egl-context.c index 40102e3..3a02b68 100644 --- a/ui/egl-context.c +++ b/ui/egl-context.c @@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/egl-context.h" diff --git a/ui/egl-helpers.c b/ui/egl-helpers.c index 87d77af..4c83834 100644 --- a/ui/egl-helpers.c +++ b/ui/egl-helpers.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "qemu/osdep.h" #include #include "ui/egl-helpers.h" diff --git a/ui/gtk-egl.c b/ui/gtk-egl.c index 500c42c..431457c 100644 --- a/ui/gtk-egl.c +++ b/ui/gtk-egl.c @@ -11,6 +11,7 @@ * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "trace.h" diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c index dec3edb..b86ff3c 100644 --- a/ui/gtk-gl-area.c +++ b/ui/gtk-gl-area.c @@ -7,6 +7,7 @@ * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "trace.h" diff --git a/ui/gtk.c b/ui/gtk.c index ce7018e..a4f5399 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -34,6 +34,7 @@ #define GETTEXT_PACKAGE "qemu" #define LOCALEDIR "po" +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" diff --git a/ui/input-keymap.c b/ui/input-keymap.c index 63d71d2..fd2c09d 100644 --- a/ui/input-keymap.c +++ b/ui/input-keymap.c @@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "ui/keymaps.h" #include "ui/input.h" diff --git a/ui/input-legacy.c b/ui/input-legacy.c index 35dfc27..093f3d1 100644 --- a/ui/input-legacy.c +++ b/ui/input-legacy.c @@ -22,9 +22,9 @@ * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "sysemu/sysemu.h" #include "ui/console.h" -#include "qapi/error.h" #include "qmp-commands.h" #include "qapi-types.h" #include "ui/keymaps.h" diff --git a/ui/input.c b/ui/input.c index 006667b..bdcb974 100644 --- a/ui/input.c +++ b/ui/input.c @@ -1,3 +1,4 @@ +#include "qemu/osdep.h" #include "hw/qdev.h" #include "sysemu/sysemu.h" #include "qapi-types.h" diff --git a/ui/keymaps.c b/ui/keymaps.c index 1b9ba3f..8899a0b 100644 --- a/ui/keymaps.c +++ b/ui/keymaps.c @@ -22,6 +22,7 @@ * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "keymaps.h" #include "sysemu/sysemu.h" diff --git a/ui/qemu-pixman.c b/ui/qemu-pixman.c index 4116e15..c9f8dce 100644 --- a/ui/qemu-pixman.c +++ b/ui/qemu-pixman.c @@ -3,6 +3,7 @@ * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" diff --git a/ui/sdl.c b/ui/sdl.c index c837436..72d6250 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -25,6 +25,7 @@ /* Avoid compiler warning because macro is redefined in SDL_syswm.h. */ #undef WIN32_LEAN_AND_MEAN +#include "qemu/osdep.h" #include #include diff --git a/ui/sdl2-2d.c b/ui/sdl2-2d.c index 191ee3b..9593006 100644 --- a/ui/sdl2-2d.c +++ b/ui/sdl2-2d.c @@ -23,6 +23,7 @@ */ /* Ported SDL 1.2 code to 2.0 by Dave Airlie. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" #include "ui/input.h" diff --git a/ui/sdl2-gl.c b/ui/sdl2-gl.c index 2bb3d06..a324eca 100644 --- a/ui/sdl2-gl.c +++ b/ui/sdl2-gl.c @@ -25,6 +25,7 @@ * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" #include "ui/input.h" diff --git a/ui/sdl2-input.c b/ui/sdl2-input.c index ac5dc94..6e315ae 100644 --- a/ui/sdl2-input.c +++ b/ui/sdl2-input.c @@ -23,6 +23,7 @@ */ /* Ported SDL 1.2 code to 2.0 by Dave Airlie. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" #include "ui/input.h" diff --git a/ui/sdl2.c b/ui/sdl2.c index 46270f4..fa09a4c 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -23,6 +23,7 @@ */ /* Ported SDL 1.2 code to 2.0 by Dave Airlie. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/console.h" #include "ui/input.h" diff --git a/ui/sdl_zoom.c b/ui/sdl_zoom.c index 2625c45..72622c2 100644 --- a/ui/sdl_zoom.c +++ b/ui/sdl_zoom.c @@ -11,11 +11,9 @@ * */ -#include "sdl_zoom.h" #include "qemu/osdep.h" +#include "sdl_zoom.h" #include -#include -#include static void sdl_zoom_rgb16(SDL_Surface *src, SDL_Surface *dst, int smooth, SDL_Rect *dst_rect); diff --git a/ui/shader.c b/ui/shader.c index 0588655..9264009 100644 --- a/ui/shader.c +++ b/ui/shader.c @@ -24,6 +24,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/shader.h" diff --git a/ui/spice-core.c b/ui/spice-core.c index 8f27768..4dbd99a 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -15,6 +15,7 @@ * along with this program; if not, see . */ +#include "qemu/osdep.h" #include #include diff --git a/ui/spice-display.c b/ui/spice-display.c index 0489131..8a5b325 100644 --- a/ui/spice-display.c +++ b/ui/spice-display.c @@ -15,6 +15,7 @@ * along with this program; if not, see . */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "ui/qemu-spice.h" #include "qemu/timer.h" diff --git a/ui/spice-input.c b/ui/spice-input.c index 2b3b9ed..72e4063 100644 --- a/ui/spice-input.c +++ b/ui/spice-input.c @@ -15,10 +15,7 @@ * along with this program; if not, see . */ -#include -#include -#include -#include +#include "qemu/osdep.h" #include #include diff --git a/ui/vnc-auth-sasl.c b/ui/vnc-auth-sasl.c index de8abc9..13a59f5 100644 --- a/ui/vnc-auth-sasl.c +++ b/ui/vnc-auth-sasl.c @@ -22,6 +22,7 @@ * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "vnc.h" /* Max amount of data we send/recv for SASL steps to prevent DOS */ diff --git a/ui/vnc-auth-vencrypt.c b/ui/vnc-auth-vencrypt.c index 093dd2f..8f3bb11 100644 --- a/ui/vnc-auth-vencrypt.c +++ b/ui/vnc-auth-vencrypt.c @@ -24,6 +24,7 @@ * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "vnc.h" #include "qemu/main-loop.h" diff --git a/ui/vnc-enc-hextile.c b/ui/vnc-enc-hextile.c index 2e768fd..4215bd7 100644 --- a/ui/vnc-enc-hextile.c +++ b/ui/vnc-enc-hextile.c @@ -24,6 +24,7 @@ * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "vnc.h" static void hextile_enc_cord(uint8_t *ptr, int x, int y, int w, int h) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 9a9ddf2..e5cba0e 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-tight.c @@ -26,7 +26,7 @@ * THE SOFTWARE. */ -#include "config-host.h" +#include "qemu/osdep.h" /* This needs to be before jpeglib.h line because of conflict with INT32 definitions between jmorecfg.h (included by jpeglib.h) and @@ -40,7 +40,6 @@ #include #endif #ifdef CONFIG_VNC_JPEG -#include #include #endif diff --git a/ui/vnc-enc-zlib.c b/ui/vnc-enc-zlib.c index d1b97f2..33e9df2 100644 --- a/ui/vnc-enc-zlib.c +++ b/ui/vnc-enc-zlib.c @@ -24,6 +24,7 @@ * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "vnc.h" #define ZALLOC_ALIGNMENT 16 diff --git a/ui/vnc-enc-zrle-template.c b/ui/vnc-enc-zrle-template.c index 70ae624..abf6b86 100644 --- a/ui/vnc-enc-zrle-template.c +++ b/ui/vnc-enc-zrle-template.c @@ -22,7 +22,7 @@ */ -#include +#include "qemu/osdep.h" #undef ZRLE_ENDIAN_SUFFIX diff --git a/ui/vnc-enc-zrle.c b/ui/vnc-enc-zrle.c index ed3b484..5489870 100644 --- a/ui/vnc-enc-zrle.c +++ b/ui/vnc-enc-zrle.c @@ -26,6 +26,7 @@ * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "vnc.h" #include "vnc-enc-zrle.h" diff --git a/ui/vnc-enc-zywrle-template.c b/ui/vnc-enc-zywrle-template.c index 561f7bf..b446380 100644 --- a/ui/vnc-enc-zywrle-template.c +++ b/ui/vnc-enc-zywrle-template.c @@ -100,6 +100,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #endif #define ZYWRLE_QUANTIZE +#include "qemu/osdep.h" #include "vnc-enc-zywrle.h" #ifndef ZRLE_COMPACT_PIXEL diff --git a/ui/vnc-jobs.c b/ui/vnc-jobs.c index 546635a..98ca978 100644 --- a/ui/vnc-jobs.c +++ b/ui/vnc-jobs.c @@ -26,6 +26,7 @@ */ +#include "qemu/osdep.h" #include "vnc.h" #include "vnc-jobs.h" #include "qemu/sockets.h" diff --git a/ui/vnc-palette.c b/ui/vnc-palette.c index c130dee..3b89d1a 100644 --- a/ui/vnc-palette.c +++ b/ui/vnc-palette.c @@ -26,9 +26,9 @@ * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "vnc-palette.h" #include -#include static VncPaletteEntry *palette_find(const VncPalette *palette, uint32_t color, unsigned int hash) diff --git a/ui/vnc-ws.c b/ui/vnc-ws.c index 8018233..1d3ecc2 100644 --- a/ui/vnc-ws.c +++ b/ui/vnc-ws.c @@ -18,6 +18,7 @@ * along with this software; if not, see . */ +#include "qemu/osdep.h" #include "vnc.h" #include "io/channel-websock.h" diff --git a/ui/vnc.c b/ui/vnc.c index 339f8c3..b6bbea5 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -24,6 +24,7 @@ * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "vnc.h" #include "vnc-jobs.h" #include "trace.h" @@ -37,7 +38,6 @@ #include "qapi/qmp/qerror.h" #include "qapi/qmp/types.h" #include "qmp-commands.h" -#include "qemu/osdep.h" #include "ui/input.h" #include "qapi-event.h" #include "crypto/hash.h" diff --git a/ui/x_keymap.c b/ui/x_keymap.c index 1a77317..2788485 100644 --- a/ui/x_keymap.c +++ b/ui/x_keymap.c @@ -21,6 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "x_keymap.h"