From patchwork Tue Jul 18 06:09:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 789907 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=208.118.235.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qXtbfgtP"; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 3xBVS90qjzz9s06 for ; Tue, 18 Jul 2017 16:22:01 +1000 (AEST) Received: from localhost ([::1]:54251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXLtO-0001uU-Vm for incoming@patchwork.ozlabs.org; Tue, 18 Jul 2017 02:21:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXLsL-0001Ww-Vy for qemu-devel@nongnu.org; Tue, 18 Jul 2017 02:20:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXLsL-0000dU-8q for qemu-devel@nongnu.org; Tue, 18 Jul 2017 02:20:53 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:34589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXLsJ-0000a1-C4; Tue, 18 Jul 2017 02:20:51 -0400 Received: by mail-qk0-x243.google.com with SMTP id q66so1365268qki.1; Mon, 17 Jul 2017 23:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ALUcJEnLx6GpYjVKA72XwHdQGiS6UFG9CQsUGsJUkV8=; b=qXtbfgtPHXcaptP5qkdM6gBIALPC/5G3S3U/bxqs/tINNDyKv2tTVl/QZ+wyjt7mTU JTa/89M8uHvuIf6Eg6PjVkxN99iZObuLuBqy0je34J4iyir3OhXJpMLEYS30yoFA608d uYSWC9TKEzCN1iSyzksWL1wVN6DLFQo3OZ3cJN+IdDqP77D9t6A2Jmq1FvDsBy8r7R+k s2XbsngAoLYbJE+y07Vnw9OgxdclF4NoIbOp8f3p1xqqFi7mkH+wAlDidf9kVatDohYa 2VUzolbxa1zghw5LKIywl0XefHjPZZ/ACZT4b7lQaeJFRDUOZdprhG1Y+mfrwkNSvT+q E59g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ALUcJEnLx6GpYjVKA72XwHdQGiS6UFG9CQsUGsJUkV8=; b=rT4jlHoLDdkvwNOW5xv4S1bx+hLoMQNptglKnmoeCedgDM20NH+wWEroKJom1jeNyR Tbg6VplGaCf6BvFGh+jK43W7Bj85F4T0xAJxUevH9+nnHJG84gr3Xg0nJaOBIgBu+hkx WSojqvMMvDWLGLSHFb+87XhV7RwECVEbE1lRbWioGGdG0crB8zszuqmvWlRGpsJGL91G JvSAN9gFp+AbFYegDLHgqwm+Sd3FvmvgOpLT4ksvtCsdlWKAn8JwZ95xs6UnuI0LayJt Hjje3d4d8jldSQjb+SYfLAFWWJslAfv20G/J1+hFkyGci329HIn6Pfm1uEDGKas9eRwU 9iRw== X-Gm-Message-State: AIVw112G3YkNs9VdNaxLaaQxKKhqknD/gDimE6/HGhUM2Ers/Uj6XjWK Hkbg2B/NI/DDRd2mLY4+pg== X-Received: by 10.55.20.211 with SMTP id 80mr108383qku.94.1500358850615; Mon, 17 Jul 2017 23:20:50 -0700 (PDT) Received: from yoga.offpageads.com ([138.117.48.223]) by smtp.gmail.com with ESMTPSA id l31sm1099862qtc.64.2017.07.17.23.20.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 23:20:50 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org, Gerd Hoffmann Date: Tue, 18 Jul 2017 03:09:44 -0300 Message-Id: <20170718061005.29518-9-f4bug@amsat.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170718061005.29518-1-f4bug@amsat.org> References: <20170718061005.29518-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::243 Subject: [Qemu-devel] [PATCH 08/29] ui: use QEMU_IS_ALIGNED macro X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci Signed-off-by: Philippe Mathieu-Daudé --- ui/console-gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/console-gl.c b/ui/console-gl.c index 5165e21646..83ad31d223 100644 --- a/ui/console-gl.c +++ b/ui/console-gl.c @@ -80,7 +80,7 @@ void surface_gl_create_texture(ConsoleGLState *gls, DisplaySurface *surface) { assert(gls); - assert(surface_stride(surface) % surface_bytes_per_pixel(surface) == 0); + assert(QEMU_IS_ALIGNED(surface_stride(surface), surface_bytes_per_pixel(surface))); switch (surface->format) { case PIXMAN_BE_b8g8r8x8: