{"id":2231413,"url":"http://patchwork.ozlabs.org/api/patches/2231413/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260430172204.1006673-15-pbonzini@redhat.com/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260430172204.1006673-15-pbonzini@redhat.com>","list_archive_url":null,"date":"2026-04-30T17:21:20","name":"[PULL,14/58] minikconf: pull main program into a function","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"b5f6364cb27c119a1791eea42fe1747c06353e82","submitter":{"id":2701,"url":"http://patchwork.ozlabs.org/api/people/2701/?format=json","name":"Paolo Bonzini","email":"pbonzini@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260430172204.1006673-15-pbonzini@redhat.com/mbox/","series":[{"id":502347,"url":"http://patchwork.ozlabs.org/api/series/502347/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502347","date":"2026-04-30T17:21:16","name":"[PULL,01/58] pythondeps: bump to meson 1.11.1","version":1,"mbox":"http://patchwork.ozlabs.org/series/502347/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2231413/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2231413/checks/","tags":{},"related":[],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=TVo9nyFL;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=google header.b=lIHAouhC;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g61HH2Schz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 03:23:55 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wIV6M-0004kq-Ft; Thu, 30 Apr 2026 13:23:02 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pbonzini@redhat.com>)\n id 1wIV6I-0004jZ-Fk\n for qemu-devel@nongnu.org; Thu, 30 Apr 2026 13:22:58 -0400","from us-smtp-delivery-124.mimecast.com ([170.10.129.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pbonzini@redhat.com>)\n id 1wIV6H-0004M3-1E\n for qemu-devel@nongnu.org; Thu, 30 Apr 2026 13:22:58 -0400","from mail-qk1-f197.google.com (mail-qk1-f197.google.com\n [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-461-hVHB8jHQODmBOe-MjI2fZQ-1; Thu, 30 Apr 2026 13:22:55 -0400","by mail-qk1-f197.google.com with SMTP id\n af79cd13be357-8eb9f8bbbb3so675082985a.0\n for <qemu-devel@nongnu.org>; Thu, 30 Apr 2026 10:22:55 -0700 (PDT)","from [192.168.10.48] ([151.49.85.67])\n by smtp.gmail.com with ESMTPSA id\n d75a77b69052e-5103d2f63dbsm287131cf.18.2026.04.30.10.22.52\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 30 Apr 2026 10:22:52 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1777569776;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=kJi7d6kHNwTM2v2NfPDK0qijysu3iQN9L8nEe3bv5og=;\n b=TVo9nyFLb93C5cIku9ibmLgfTU4FUYAQsDaJR4DKh2x2fPv/H7P+an5GBNmRb5VY3ZaQSr\n s5mrvbSkRM4DHLafI5UXp+QQlbHcZTDqHYtNEUKEMy8uqu7ChmkRHPj1G4baILYEMegOPa\n V9//DGDzI3ZW+qsnK8a3Pjha95uFisc=","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1777569774; x=1778174574; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=kJi7d6kHNwTM2v2NfPDK0qijysu3iQN9L8nEe3bv5og=;\n b=lIHAouhCqm0nVuNws6glaspBt7GenAekpg+1TcshRyu0vmZVvnvygp4SXJBWZHR2It\n aRvxej5yDI2EMXJujsjTALtqio6iDB/JHJPrjvGQSh7C4KWZZgF4Zzs7DvgZgsmrtDhY\n 2epBnZLwiCg0XD+ZErfY973OZjmnc2AbwiERClKNNS8oa1PbqoVy/qD7okk3hambNbmK\n E0gpX6ykwv07+W06KV9OEhYnDCrazLD39da+grJmYcNhYU9W+MG++TOddse38qqXctAQ\n cIzPZrVZNJxUIiuUASnTy9uRC1CAY7jZRlRF5oKfN+r1LsBkH0VTZk3O8PQyJaO/ZygE\n s+1w=="],"X-MC-Unique":"hVHB8jHQODmBOe-MjI2fZQ-1","X-Mimecast-MFC-AGG-ID":"hVHB8jHQODmBOe-MjI2fZQ_1777569774","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777569774; x=1778174574;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=kJi7d6kHNwTM2v2NfPDK0qijysu3iQN9L8nEe3bv5og=;\n b=QtRumxXtja3877p7Plw5RoVmSipHP+jacj7Z8rHZCD4Is6DQp6H6f23QLrJd2LLbjg\n 0GHkMAeCIvtDrSECaekBeRAxTnvK6zcqZCnRTzZgM69SWYmfN+bSfwvsdM8f6N9GD2js\n Dq3eZLjhYKqaZv64SH4CxP2XwwSUJfxat7BylsWPbADtjU1C0YFxZB3z8WPRWcJWHB7Z\n 6DpdvAC3SgusuF0nZXHM8U+QBKyCr/7p0I7m1GgRU7SRd0LmJsimVr0MoJOvFVN/fB5d\n NuaZe5TqfahWIEasI30stMChOohSKR4U5/h9SdQ/XV2ESPe2yxOoi/BHJNIPPwkTLLN8\n Lb8w==","X-Gm-Message-State":"AOJu0YyB3Qn19vCLE5O1yYhT35t9rUQezN1gfRvJrGahAWQQwkakAiBr\n SvgvjKklE67SBKY2LPBX/N4GeRoxLsjc2PKS3vedlwmo7yTHDI/6UnbEy47rQtzc8PmYaeVHoku\n srgjvBlPi2d9fvqzRxRXyrAIZY/U/7z4hp6QiJJTsz1F3sAynIEbHaU+hInKnu5KgsXGnl2c179\n lZvwvhX7ui8xEDOdULTPYgWdlljDc+t/EjDlet/lTk","X-Gm-Gg":"AeBDietosUrKhFQ7xXpDr/DRWUTSMVzX2m5AJ0HOROYiWeB4e5P79co+z4dyomm7Vep\n Gy+uKbzHiyBM443ratj8BR1MaKZ/WuS9dcdScR2ND0a7WlhWUQIpZMsD1hovGfJadZPNDlltTwi\n Tke30k7UODnQkxpg6fvtZzFMqEXprsJCJg+mbLtP93oAjGjIsYuqX5lwT81ICD7BbxmyMHAgOfC\n ZPX8XuYwmcSGQRP3La8dXwNBN/fsv+oVKxI0xbGVh6zvUWA8w+prsQm/M49whjfQeWWdl+St7rU\n JUj/WeEQLZzz8t+VC1P3WAk6u4Q/lGU01lai+N8q2A1KUw75bepff0a5Fp8zAlpXm9bXY13CMEq\n a9wLcZTnRUNBWB3fTnaeMSP86IdIowF8hRxeNpSBPuS2O4kSx0oZ8iEQkvD3ZN/hyS+rZfxH/4w\n DSbQ0Og6LkH5ubqqUF14bwO2aPAmtdxOsnZC4=","X-Received":["by 2002:ac8:7f8c:0:b0:50e:5eac:cf7d with SMTP id\n d75a77b69052e-5102d1d0c3bmr40928431cf.25.1777569773895;\n Thu, 30 Apr 2026 10:22:53 -0700 (PDT)","by 2002:ac8:7f8c:0:b0:50e:5eac:cf7d with SMTP id\n d75a77b69052e-5102d1d0c3bmr40927971cf.25.1777569773351;\n Thu, 30 Apr 2026 10:22:53 -0700 (PDT)"],"From":"Paolo Bonzini <pbonzini@redhat.com>","To":"qemu-devel@nongnu.org","Cc":"=?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>","Subject":"[PULL 14/58] minikconf: pull main program into a function","Date":"Thu, 30 Apr 2026 19:21:20 +0200","Message-ID":"<20260430172204.1006673-15-pbonzini@redhat.com>","X-Mailer":"git-send-email 2.54.0","In-Reply-To":"<20260430172204.1006673-1-pbonzini@redhat.com>","References":"<20260430172204.1006673-1-pbonzini@redhat.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=170.10.129.124;\n envelope-from=pbonzini@redhat.com;\n helo=us-smtp-delivery-124.mimecast.com","X-Spam_score_int":"-20","X-Spam_score":"-2.1","X-Spam_bar":"--","X-Spam_report":"(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,\n SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"Avoid pulluting the global namespace.\n\nReviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>\nSigned-off-by: Paolo Bonzini <pbonzini@redhat.com>\n---\n scripts/minikconf.py | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)","diff":"diff --git a/scripts/minikconf.py b/scripts/minikconf.py\nindex 7f0b64b1e08..d728fd867f3 100644\n--- a/scripts/minikconf.py\n+++ b/scripts/minikconf.py\n@@ -666,7 +666,7 @@ def scan_token(self, ch):\n \n         return None\n \n-if __name__ == '__main__':\n+def main() -> None:\n     argv = sys.argv\n     mode = defconfig\n     if len(sys.argv) > 1:\n@@ -712,3 +712,6 @@ def scan_token(self, ch):\n     for fname in data.previously_included:\n         print ('%s: %s' % (argv[1], fname), file=deps)\n     deps.close()\n+\n+if __name__ == '__main__':\n+    main()\n","prefixes":["PULL","14/58"]}