From patchwork Tue Jul 18 06:09:42 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: 789909 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="vDY25imB"; 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 3xBVSp1dkdz9s06 for ; Tue, 18 Jul 2017 16:22:34 +1000 (AEST) Received: from localhost ([::1]:54253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXLtw-0002RN-2d for incoming@patchwork.ozlabs.org; Tue, 18 Jul 2017 02:22:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXLsJ-0001UD-4G for qemu-devel@nongnu.org; Tue, 18 Jul 2017 02:20:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXLsI-0000ZX-Bj for qemu-devel@nongnu.org; Tue, 18 Jul 2017 02:20:51 -0400 Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:33153) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXLsD-0000X7-T1; Tue, 18 Jul 2017 02:20:45 -0400 Received: by mail-qk0-x244.google.com with SMTP id u126so448040qka.0; Mon, 17 Jul 2017 23:20:45 -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=QvvWyP0RNQsQjmSScRHNiRd8YE2KtGJJCQl1XJa/BBM=; b=vDY25imBxofOxt90gcFiU7V7XLgDsODru4pivBE55BGDLSEeXDVyuyipVArvbJjZuY fazB65dcztNMYIP367HSAX1WxyHh7VD6Wk9uNC+46fgayDDC921k52rs6obTlRmnnQ0b ayvkgXjkcl7Lkyyxdv2s9nAowkZLkZtWy1ibOHT6X6Cb9+xVypKEzoQRoKhODZJT+7EZ TYI7q2fkElTyjeIPmVy6XDPFXwK8LnYfo55WlMI2lioqf3aN/wN2ikbomY4jplNus05+ AdO5mBq5l2UYaS4hAbyhg1dJFVWncKLlZ+JuHN70+JRY/qpOQvu88pDndr84H+Oued5N 61pw== 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=QvvWyP0RNQsQjmSScRHNiRd8YE2KtGJJCQl1XJa/BBM=; b=YQJ5Huvko6ZP25x9YD0GxUTsuArLt0O/4vNAJ7acfYoQ7B7q4xaHBU1lJK7N5Y0HDz 5kFlcI2oATITKGW0XkEAwdBRAlzSnrX5D8rEg5nQjDEKz7MfsQIar3zS4Vw+3IDq/Nre BoO8dFCf1Wj2Y456Fpk6M2+FyC2uLPmfHlTg+rf9pZQ9uWT6rugkeykNP3+/hYN5wVFZ Hn7e11LQsqyGjKnTMSvCQKgsHzjgTYg8mE6rAUgmuUkM/UdOmv9r8H5adzXVEq7M4iHp sO4JTfPwzotmuLNcQbU41968igXTUAUOw5QsTYo2MvW+8jA4Bf2gY8AG7PsarZYj4w7H 7Xig== X-Gm-Message-State: AIVw110eWAvLKHZV5G1QnsUKhm/6QKRS7KLg3vrQucl5pJ6oKAm/RnEi CMsixlROizEAdZQOZ0wDCw== X-Received: by 10.55.140.71 with SMTP id o68mr129266qkd.18.1500358845145; Mon, 17 Jul 2017 23:20:45 -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.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 23:20:44 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-trivial@nongnu.org, Stefan Hajnoczi , Fam Zheng , Juan Quintela , "Dr. David Alan Gilbert" Date: Tue, 18 Jul 2017 03:09:42 -0300 Message-Id: <20170718061005.29518-7-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::244 Subject: [Qemu-devel] [PATCH 06/29] migration/block: 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-block@nongnu.org, 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é Reviewed-by: Juan Quintela --- migration/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/block.c b/migration/block.c index 9171f60028..498c72ad59 100644 --- a/migration/block.c +++ b/migration/block.c @@ -933,7 +933,7 @@ static int block_load(QEMUFile *f, void *opaque, int version_id) ret = bdrv_get_info(blk_bs(blk), &bdi); if (ret == 0 && bdi.cluster_size > 0 && bdi.cluster_size <= BLOCK_SIZE && - BLOCK_SIZE % bdi.cluster_size == 0) { + QEMU_IS_ALIGNED(BLOCK_SIZE, bdi.cluster_size)) { cluster_size = bdi.cluster_size; } else { cluster_size = BLOCK_SIZE;