From nobody Wed May 15 16:24:26 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1693351669; cv=none; d=zohomail.com; s=zohoarc; b=IKDP9oaocNWcPUj5yNfluMBUE5aDeBUd/Agf5+L+G9U07sa5GBXvgiUwMupqKww48WUO/yHpSDtV/5Wm31mO9GbLIP2ilsvXJZTSH22wZ6tgX2qiYpfrhkGa7l2QBughM9XGU55bBsbOG/u1pp0CouZllnvFq2IegSTuNxAZzOo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693351669; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=jRMdwRZVaHcJhDUF3R1tki83zY7wZVELi6/t8QmFp0I=; b=VEgs5DRV6upCsUcYYYmVWwSJ8D/I0tIr77EYzelMh2eI3U1QmXlBYP3Z9JJmrNo7Y5VRai1TyBLpWLhG642BUyrUuq05zqDn7hnGfS4Wl7We6rSzOGGalIzvSYW9PbL8TzE/rvtnCL7Al/GEZ+0Z6jnGzcyEefiXYSMtxcbufo4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1693351669680616.876373458204; Tue, 29 Aug 2023 16:27:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qb7n0-0000o4-0w; Tue, 29 Aug 2023 19:06:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qb3lR-0005OF-Gc for qemu-devel@nongnu.org; Tue, 29 Aug 2023 14:48:33 -0400 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qb3lO-0002nA-1m for qemu-devel@nongnu.org; Tue, 29 Aug 2023 14:48:32 -0400 Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-34deefc2016so2521125ab.2 for ; Tue, 29 Aug 2023 11:48:29 -0700 (PDT) Received: from dune.bsdimp.com (50-253-99-174-static.hfc.comcastbusiness.net. [50.253.99.174]) by smtp.gmail.com with ESMTPSA id h9-20020a02c729000000b0042b326ed1ebsm3394534jao.48.2023.08.29.11.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 11:48:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20221208.gappssmtp.com; s=20221208; t=1693334908; x=1693939708; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jRMdwRZVaHcJhDUF3R1tki83zY7wZVELi6/t8QmFp0I=; b=hpa1tJqtdk1c48KA6ZG8p8RzRl5cTvl5dhTc/U6azYFhLz/2yoYyqNB89j0hlQDxME as0680Q+dyVDlmHF4vMPOCylF8XHqRSAxgO8AsIxzaeAlTV2GFAXGtMAMyrQNhOGeF5w 8tDXg1kHx3gO9caV758Pv/ZhNZ+BNuOskzcFKfZ0wg69qVe/B4jFU5HBk5sBzT+BB9I8 OflVCyUzStZDaHmgJrMb0egXHDNFcpJcaenHMtHAmNY71SGjvqEl5eClS6gbWLUg3/d1 wEDxbyDHLe3hLwfwmoQYiVCvexByOWcbhwyt2gQqknIoR2lstmIxylK5tMrXjg4ltLDe O/aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693334908; x=1693939708; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jRMdwRZVaHcJhDUF3R1tki83zY7wZVELi6/t8QmFp0I=; b=Q1azoSQscpdz/pRQLauOxswA1gDDy4wS/as5MsGpYH+45Crlb1LKmAuBVtdBBxbAyG qFqCgONOYRP1CAQ0RvMigwU/xdrx8nuP1eCK77CDG56HUl4aslFccAKCGtzspJB7S3We u6/Qa2yoWdk3bpYFTE8ZzoAFXd3kCfwsGvfhcBVvIQH7x3HvE+dRMZqVyhTHkv+Dmay2 TvShojjfJdQ20mo4swjKkl3A9Ojdhjjlg+w3QeWyLzChboC4bKrFIclVs11pNwHSCMWn YnUUSWT+IbSQSa1cfy+1tSxIXfabKzL0fEuQHC5dxRXolIRSWNFrXsssYOa5AOGdzHCj cyvw== X-Gm-Message-State: AOJu0YzE6w0DPfnTvX+ec7bZsXDVGNoBTHLuFADT0lGCfXwu0/Gsy73Z e+tuHUkGo7VIUxcEUuUdvqPWrhc1tkHfvY1poLQ= X-Google-Smtp-Source: AGHT+IFWrvkqYWt8xE+TdVo9HBtDfZ257NbaVULH8RvstVPop/fHLxonWYBYUpU3PtRRazItc3xrzg== X-Received: by 2002:a05:6e02:1a21:b0:348:fe78:e9ed with SMTP id g1-20020a056e021a2100b00348fe78e9edmr269235ile.7.1693334907842; Tue, 29 Aug 2023 11:48:27 -0700 (PDT) From: Warner Losh To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Laurent Vivier , Beraldo Leal , Warner Losh Subject: [PATCH] linux-user: Move PRAGMA_DISABLE_PACKED_WARNING to compiler.h Date: Tue, 29 Aug 2023 12:45:09 -0600 Message-ID: <20230829184509.54434-1-imp@bsdimp.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::131; envelope-from=imp@bsdimp.com; helo=mail-il1-x131.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @bsdimp-com.20221208.gappssmtp.com) X-ZM-MESSAGEID: 1693351670378100001 Content-Type: text/plain; charset="utf-8" Replace the slightly older version of this in include/qemu/compiler.h that was commit as part of bsd-user changes with the newer one from linux-user. bsd-user has no regreassions with this. Signed-off-by: Warner Losh --- include/qemu/compiler.h | 3 +-- linux-user/qemu.h | 26 -------------------------- tests/lcitool/libvirt-ci | 2 +- 3 files changed, 2 insertions(+), 29 deletions(-) diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index b0374425180..9496a65ea57 100644 --- a/include/qemu/compiler.h +++ b/include/qemu/compiler.h @@ -38,10 +38,9 @@ * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83256 -- so we only * include the warning-suppression pragmas for clang */ -#ifdef __clang__ +#if defined(__clang__) && __has_warning("-Waddress-of-packed-member") #define PRAGMA_DISABLE_PACKED_WARNING \ _Pragma("GCC diagnostic push"); \ - _Pragma("GCC diagnostic ignored \"-Wpragmas\""); \ _Pragma("GCC diagnostic ignored \"-Waddress-of-packed-member\"") =20 #define PRAGMA_REENABLE_PACKED_WARNING \ diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 4f8b55e2fb0..12821e54d0a 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -193,32 +193,6 @@ static inline bool access_ok(CPUState *cpu, int type, These are usually used to access struct data members once the struct has been locked - usually with lock_user_struct. */ =20 -/* - * Tricky points: - * - Use __builtin_choose_expr to avoid type promotion from ?:, - * - Invalid sizes result in a compile time error stemming from - * the fact that abort has no parameters. - * - It's easier to use the endian-specific unaligned load/store - * functions than host-endian unaligned load/store plus tswapN. - * - The pragmas are necessary only to silence a clang false-positive - * warning: see https://bugs.llvm.org/show_bug.cgi?id=3D39113 . - * - gcc has bugs in its _Pragma() support in some versions, eg - * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83256 -- so we only - * include the warning-suppression pragmas for clang - */ -#if defined(__clang__) && __has_warning("-Waddress-of-packed-member") -#define PRAGMA_DISABLE_PACKED_WARNING \ - _Pragma("GCC diagnostic push"); \ - _Pragma("GCC diagnostic ignored \"-Waddress-of-packed-member\"") - -#define PRAGMA_REENABLE_PACKED_WARNING \ - _Pragma("GCC diagnostic pop") - -#else -#define PRAGMA_DISABLE_PACKED_WARNING -#define PRAGMA_REENABLE_PACKED_WARNING -#endif - #define __put_user_e(x, hptr, e) = \ do { = \ PRAGMA_DISABLE_PACKED_WARNING; = \ diff --git a/tests/lcitool/libvirt-ci b/tests/lcitool/libvirt-ci index bbd55b4d18c..9bff3b763b5 160000 --- a/tests/lcitool/libvirt-ci +++ b/tests/lcitool/libvirt-ci @@ -1 +1 @@ -Subproject commit bbd55b4d18cce8f89b5167675e434a6941315634 +Subproject commit 9bff3b763b5531a1490e238bfbf77306dc3a6dbb --=20 2.41.0