From patchwork Tue Dec 20 14:35:30 2022 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: 13077958 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE3BAC4332F for ; Tue, 20 Dec 2022 14:36:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234008AbiLTOgF (ORCPT ); Tue, 20 Dec 2022 09:36:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233925AbiLTOfm (ORCPT ); Tue, 20 Dec 2022 09:35:42 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 223E0B67 for ; Tue, 20 Dec 2022 06:35:41 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id k22-20020a05600c1c9600b003d1ee3a6289so8954714wms.2 for ; Tue, 20 Dec 2022 06:35:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FtKJes66/4jOGZqiJaNKdd7x6uDxsmpWf7n+U2lM5lE=; b=NzqVb3JTffWzhT7FSm+CBjrpFGKmGH60tPLlcLI0E7y0g5l9zRMn+cSPiKjwVZksNC B7oyrxP44J13H0v/qFYExs4JWtee0zDpHpkmv+BM3SxtGr/KL0NWO1qjXxJxy4OqsjBT BfmoXWH5MSQgj/gO83QZo66/A7nqWTNG40Qf9GWv+PYBK/zqT/XasBlLb0rhakwdPFyD 1N1FC9ZBFvhwnmbALrWALRi1MncrHZqOjjZ4nPbWyuRwS+JChsPswgTH6iOsKPNinWll fzh5sDRhC94BI9/zzzLCHi1Yjl2r7mLvZH0fHIZ1CmlsROM93OOPNVpz5h0/u6LH3+bU LHzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FtKJes66/4jOGZqiJaNKdd7x6uDxsmpWf7n+U2lM5lE=; b=gRTl2zNLYwNTclG2Y1FXbLmvt1JrQRo9JsGA1Ibvdr2V0H/6hAxVWdosbt4JxaKSVK tvA8JRCNVjk86ZV/ZgpHnhLYhS0OqUGb6cPNusM0KOImpwH6YmFBWjThKzOrdNwfDf9j X77QTSSyf8LpB8omBZcpzTGTjzQ2riDlr/8R7eETi51MbSnirlY5tlI+HIgbBXbD3GEl VOg755aTsITSE4S+9z8TqSOv/vIGjnz2x7gfvmP7s8rCQ+s2GTQ3oN3tMBjP2wf62XaC dofJwdozlct0dXOUTgmf1EvJLwg8zeTt+Kbb7858TCGW7bex3VAs9VsZg3NbNmchy2ge ZbRg== X-Gm-Message-State: AFqh2kpNxsy5HUNLJqxuJKnEVTm8wxj72yhXNDxD8iGm/zIJp0jAdF1D bowPeyt2NZiOFlPyAMMjyXPut7Ud1z4Rvaw7XZU= X-Google-Smtp-Source: AMrXdXu6W4jBstWrKM+QE6scUoWOSzbL52dvRkQ55mXgZDBhqJSkHFLdm6Bfp2G+3ZTef2EZDHFKdw== X-Received: by 2002:a05:600c:3d96:b0:3d2:2105:1761 with SMTP id bi22-20020a05600c3d9600b003d221051761mr1806999wmb.25.1671546939688; Tue, 20 Dec 2022 06:35:39 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id z19-20020a05600c221300b003a3170a7af9sm15867920wml.4.2022.12.20.06.35.38 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 06:35:39 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, Paolo Bonzini , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH 1/3] tcg: Silent -Wmissing-field-initializers warning Date: Tue, 20 Dec 2022 15:35:30 +0100 Message-Id: <20221220143532.24958-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220143532.24958-1-philmd@linaro.org> References: <20221220143532.24958-1-philmd@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Silent when compiling with -Wextra: tcg/i386/tcg-target.opc.h:34:1: warning: missing field 'args_ct' initializer [-Wmissing-field-initializers] DEF(x86_punpckl_vec, 1, 2, 0, IMPLVEC) ^ ../tcg/tcg-common.c:30:66: note: expanded from macro 'DEF' { #s, oargs, iargs, cargs, iargs + oargs + cargs, flags }, ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé --- tcg/tcg-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/tcg-common.c b/tcg/tcg-common.c index aa0c4f60c9..35e7616ae9 100644 --- a/tcg/tcg-common.c +++ b/tcg/tcg-common.c @@ -27,7 +27,7 @@ TCGOpDef tcg_op_defs[] = { #define DEF(s, oargs, iargs, cargs, flags) \ - { #s, oargs, iargs, cargs, iargs + oargs + cargs, flags }, + { #s, oargs, iargs, cargs, iargs + oargs + cargs, flags, NULL }, #include "tcg/tcg-opc.h" #undef DEF }; From patchwork Tue Dec 20 14:35:31 2022 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: 13077959 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38F83C4332F for ; Tue, 20 Dec 2022 14:36:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234073AbiLTOgH (ORCPT ); Tue, 20 Dec 2022 09:36:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234028AbiLTOfs (ORCPT ); Tue, 20 Dec 2022 09:35:48 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FE9A1011 for ; Tue, 20 Dec 2022 06:35:47 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id 131-20020a1c0289000000b003d35acb0f9fso1193865wmc.2 for ; Tue, 20 Dec 2022 06:35:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HhQROkoTF/kPUU9r78mLwXXxUZ3Qm+COeH3BT1STH1I=; b=U4bdbUmaKC05ztUaihxcBo5oVklE8EtQIIjgLEAW6aUtd2R4tZP13fs1igeMLdZ0Hy tceVk0pTuZr20byqEM0GGFlRSzOXizqZBTlig538uuZDAptvbU5ka0pVylklZCOY5QXE OucNrefj0aiplupBUujPXxDn1WQE7nqHEnEqN3EWHQV5MI9mjwYo1iYstCELMzpReEMQ bFt2im80GhDxHiE8NGJ6SOI+Djzl2912/B2c4eykby18ExJ/Ys5/ppLx5QpxkYYYWZtH EYpqIxdDbqn94d0X5CeTZRsSB8ZzYtv77MO+Bh4gFMh2EbmEJsFQi3n8v4wAwIyHKQdl 7J8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HhQROkoTF/kPUU9r78mLwXXxUZ3Qm+COeH3BT1STH1I=; b=q1VqC+NqEDSoI4Qsy7nk5qLUaT48WpBJalc045NI/L9KzeuoEVh+AgD1/YK43SAJCH FfCopU5OhzrhnTS/7s6lxtZMemzAaXvSqYfbtplDIw+GC29vrFVdUSh204+ZezQAnnfw HNWMNCvF782gIDU7fvfpd0Pzv63cf9Rj7or1MojUlSymoVgPVwiBRuRQX5L6dGFxODf0 o+D5JGKCWtK+waO9QDyvNqNOB5ylBVGVSMrtGs4fAqMTSFoFEf+gGbnKW+31ZpX1fGnq cSmY+wROP+709UGuaGCREzBHitmkwUd5z8lBfUmgUmx4OpOJcajxuEa5vxmSdguo0XFs pl7A== X-Gm-Message-State: ANoB5pkIR8a+NEOPL97IFZ16g+unf9TzO8SStLbqOoEF/uaxCY8tjf4P wa2CrfDj85wM0BXJsnHuoWCFSg== X-Google-Smtp-Source: AA0mqf792O3BK2uXTYfgvov08uy+kZdnUa+nGrxbZsstHA2YWoojeqCbLBegPYPDG9UvgMVcaO5XEw== X-Received: by 2002:a05:600c:310e:b0:3cf:b07a:cd2f with SMTP id g14-20020a05600c310e00b003cfb07acd2fmr34553438wmo.37.1671546945726; Tue, 20 Dec 2022 06:35:45 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id m34-20020a05600c3b2200b003d208eb17ecsm17185197wms.26.2022.12.20.06.35.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 06:35:44 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, Paolo Bonzini , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH 2/3] accel/kvm: Silent -Wmissing-field-initializers warning Date: Tue, 20 Dec 2022 15:35:31 +0100 Message-Id: <20221220143532.24958-3-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220143532.24958-1-philmd@linaro.org> References: <20221220143532.24958-1-philmd@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Silent when compiling with -Wextra: ../accel/kvm/kvm-all.c:2291:17: warning: missing field 'num' initializer [-Wmissing-field-initializers] { NULL, } ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé --- accel/kvm/kvm-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index e86c33e0e6..acf1ef84f7 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -2282,13 +2282,13 @@ static int kvm_init(MachineState *ms) static const char upgrade_note[] = "Please upgrade to at least kernel 2.6.29 or recent kvm-kmod\n" "(see http://sourceforge.net/projects/kvm).\n"; - struct { + const struct { const char *name; int num; } num_cpus[] = { { "SMP", ms->smp.cpus }, { "hotpluggable", ms->smp.max_cpus }, - { NULL, } + { /* end of list */ } }, *nc = num_cpus; int soft_vcpus_limit, hard_vcpus_limit; KVMState *s; From patchwork Tue Dec 20 14:35:32 2022 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: 13077960 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21726C4167B for ; Tue, 20 Dec 2022 14:36:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234086AbiLTOgJ (ORCPT ); Tue, 20 Dec 2022 09:36:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234077AbiLTOfx (ORCPT ); Tue, 20 Dec 2022 09:35:53 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 855D86396 for ; Tue, 20 Dec 2022 06:35:52 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id ay40so8904369wmb.2 for ; Tue, 20 Dec 2022 06:35:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dCP5cZyT8xpPHd2CcQgqWCjvisflP6TbPUTdpLOWF1Y=; b=KzRe0Ud/a43NW5H7qYzcwe00FAFc4sTxo6J+P9yZlpZUvuCHUl7e9i3sIsAAQvi2y4 5RJhpIveURRwX/02s011zFYUDubFk/edMbNob/YY8N/Lrt3kGLShyq7KxS3XQBU5v/fy FyYMNEpPMgKX+LJmbw9/bipCgFd2puaHmH0BLXt3gjX71CywG9ZJTkmu5KccqfCg/fmn JBJShSu6tfjMTEmPUTcbPU4w9aJX4fVtsmaCrUyAcpiLa/YIXCNoS1rjKXTCkhucr8YM hshnrlMag+kg2uSG3rk3ST2vxSYl1pI2MzfMZn1IA1684MLcP+2DvWmIFmnea2kefTxU VtPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dCP5cZyT8xpPHd2CcQgqWCjvisflP6TbPUTdpLOWF1Y=; b=oMpbgbVSQ4O/x1M4npmKzXAnp5Op6GyKglzTXf+ImfdKFPS0GCKQms98dp/kmOM4Bl cddNPlrS+30TrGvQ9wCzNvc8g3zKGcwkFQgp4PbEFQANEN1MccqvwQtk2HWb8iFhoHT6 L/eHs83y9cO91EshNbVaPvZoCyXdYZSctxB4EmoEelUMiJ7DelDxyP2VNEK5sHkYy5Oc vOlBSy6ycoOckFZPx6U6bcAAI0ItuDDppcqqB7hQOBHWS0WY8BiB70VnNrCT51dvZAhV /WgMSmHMeyw6WVNrHas5kD3QnXpIpJ9bDSrNl3A2suWdYvgXYBbVzrE/X0KdTsYz9bRj h3KQ== X-Gm-Message-State: ANoB5pn6mUGsYxK7WxvdLRbchn99kT7o8K8deoUnaM7fxN0dUn9G5IC8 YuZ+3y4blmSGVc3CbeA/fMLnmg== X-Google-Smtp-Source: AA0mqf6F6t3bo/Ea/mNnCTSXbbu6OK1UfnteDWHluOQ+0KdZTZB/cVoCAv/MjUbmGCW6bqC/p9Lx3A== X-Received: by 2002:a05:600c:2211:b0:3d2:259f:9061 with SMTP id z17-20020a05600c221100b003d2259f9061mr35596684wml.34.1671546951067; Tue, 20 Dec 2022 06:35:51 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id m34-20020a05600c3b2200b003d208eb17ecsm17185582wms.26.2022.12.20.06.35.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 06:35:50 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, Paolo Bonzini , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH 3/3] softmmu: Silent -Wmissing-field-initializers warning Date: Tue, 20 Dec 2022 15:35:32 +0100 Message-Id: <20221220143532.24958-4-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220143532.24958-1-philmd@linaro.org> References: <20221220143532.24958-1-philmd@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Silent when compiling with -Wextra: ../softmmu/vl.c:886:12: warning: missing field 'flags' initializer [-Wmissing-field-initializers] { NULL }, ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé --- softmmu/vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/softmmu/vl.c b/softmmu/vl.c index 798e1dc933..12c56d3b37 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -883,7 +883,7 @@ static const QEMUOption qemu_options[] = { #define ARCHHEADING(text, arch_mask) #include "qemu-options.def" - { NULL }, + { /* end of list */ } }; typedef struct VGAInterfaceInfo {