From patchwork Tue Nov 21 20:15:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Cooper X-Patchwork-Id: 13463534 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7F3CC61D85 for ; Tue, 21 Nov 2023 20:16:16 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.638181.994519 (Exim 4.92) (envelope-from ) id 1r5XA7-0007Rl-Q0; Tue, 21 Nov 2023 20:15:59 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 638181.994519; Tue, 21 Nov 2023 20:15:59 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r5XA7-0007Re-NJ; Tue, 21 Nov 2023 20:15:59 +0000 Received: by outflank-mailman (input) for mailman id 638181; Tue, 21 Nov 2023 20:15:58 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r5XA6-0007Bx-1J for xen-devel@lists.xenproject.org; Tue, 21 Nov 2023 20:15:58 +0000 Received: from esa1.hc3370-68.iphmx.com (esa1.hc3370-68.iphmx.com [216.71.145.142]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id c5c81c9d-88aa-11ee-9b0e-b553b5be7939; Tue, 21 Nov 2023 21:15:55 +0100 (CET) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c5c81c9d-88aa-11ee-9b0e-b553b5be7939 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1700597755; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=r+o6oETfRoLUaoMxN0EAjgPAjp4KWInoqOVukWaKJ9c=; b=GQ2HIE+jxtUTGmxdd/E4qr2bFPX1uSfBqNJbhxSKaTuLxYfNlAId9TDn er3s5d9CQxsUvpK/FgUwAE3o0SQ+D+f1Sq6XAgs4dtryLnJnHykIhSdbi GTvrLZLF5WhU7NityjCXtOyXGTZ8oYp/SOJqXYAZOBvfk8R3OcwKaybo8 4=; X-CSE-ConnectionGUID: Kx3BjExzTHqqzSgoe6KDkA== X-CSE-MsgGUID: aCRa83ClSFWBUEh0roJy8Q== Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none X-SBRS: 4.0 X-MesageID: 128691934 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.159.70 X-Policy: $RELAYED X-ThreatScanner-Verdict: Negative IronPort-Data: A9a23:tNO4Iq+sZamhhAIkPbh3DrUDfH6TJUtcMsCJ2f8bNWPcYEJGY0x3z GtOUGuGPPmMY2Wmfo1wPNvk8UkAup6Az4RmG1c/+Cs8E34SpcT7XtnIdU2Y0wF+jCHgZBk+s 5hBMImowOQcFCK0SsKFa+C5xZVE/fjVAOK6UKidYnwZqTZMEE8JkQhkl/MynrlmiN24BxLlk d7pqojUNUTNNwRcawr40Ird7ksz1BjOkGlA5AdnPKoS5AW2e0Q9V/rzG4ngdxMUfaEMdgKKb 76r5K20+Grf4yAsBruN+losWhRXKlJ6FVHmZkt+A8BOsDAbzsAB+v9T2M4nQVVWk120c+VZk 72hg3ASpTABZcUgkMxFO/VR/roX0aduoNcrKlDn2SCfItGvn9IBDJyCAWlvVbD09NqbDklt5 acyKh0dfCyjnvuk+728R7dPqscKeZyD0IM34hmMzBncBPci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4oxxg== X-Talos-MUID: 9a23:hUa89Al9uMzuOIxjtqGxdnprH/1hs/+FDHsjrr87lsncLytSKmek2WE= X-IronPort-AV: E=Sophos;i="6.04,216,1695700800"; d="scan'208";a="128691934" From: Andrew Cooper To: Xen-devel CC: Andrew Cooper , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Wei Liu , Stefano Stabellini , Julien Grall , Volodymyr Babchuk , Bertrand Marquis , Michal Orzel , Roberto Bagnara , Nicola Vetrini Subject: [PATCH v2 0/5] xen: Enable -Wwrite-strings Date: Tue, 21 Nov 2023 20:15:35 +0000 Message-ID: <20231121201540.1528161-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Some patches from v1 committed. This is the rest, and they're mostly rewritten from scratch. CI: https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1080695374 https://cirrus-ci.com/build/5494986230202368 Andrew Cooper (5): x86/setup: Clean up cmdline handling in create_dom0() x86/setup: Rework cmdline_cook() to be compatible with -Wwrite-strings x86/efi: Simplify efi_arch_handle_cmdline() arm/efi: Simplify efi_arch_handle_cmdline() xen: Enable -Wwrite-strings xen/Makefile | 2 +- xen/arch/arm/efi/efi-boot.h | 16 +---------- xen/arch/x86/efi/efi-boot.h | 10 +------ xen/arch/x86/setup.c | 56 ++++++++++++++++++++----------------- 4 files changed, 34 insertions(+), 50 deletions(-) base-commit: 10081c2dc571775b538bb00982606a39832ad7e3