From nobody Sat May 18 12:12:33 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1702641589; cv=none; d=zohomail.com; s=zohoarc; b=Nu1H5sKUqPu9ukolSOYZB5z9OX5eIkdPuID7K8q/4+HznCJ6+ie/JN5SrFcCleQt8xgO2cyzD2+siPnfpKYS+XV0W/vj6vMZ+rLkPGvf2Aa9b54ASFz1L/eeDYktnpC2WzNIC3mus+WsiQRvJ/skb74pShTHRxlyekGbbQ4Nf34= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1702641589; h=Content-Type:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=b1+pg+WM6+oojv3iHQ79WbEbE+ZjsqgernGureeLzb8=; b=DkHzX6q1awHpSG586V3tGkBNf6xtjyLHj8Hz5ccOv0D/0xm0O/K7FMWqYER8fiIsLjuyhwXnot4zi1DB8efu0XWiMR2gSLSsPp965qQj2MAnjv+SaI1g6gvWmKfrLIsJj9DzmHtoRh2QPnt/7oefADvjDB2sCKFOdw8KDvHJABA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1702641589389651.0638072162636; Fri, 15 Dec 2023 03:59:49 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.655078.1022740 (Exim 4.92) (envelope-from ) id 1rE6qp-0004Y1-TU; Fri, 15 Dec 2023 11:59:31 +0000 Received: by outflank-mailman (output) from mailman id 655078.1022740; Fri, 15 Dec 2023 11:59:31 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rE6qp-0004Xu-Ps; Fri, 15 Dec 2023 11:59:31 +0000 Received: by outflank-mailman (input) for mailman id 655078; Fri, 15 Dec 2023 11:59:30 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rE6qo-0004Xh-2P for xen-devel@lists.xenproject.org; Fri, 15 Dec 2023 11:59:30 +0000 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 65b75d8c-9b41-11ee-98ea-6d05b1d4d9a1; Fri, 15 Dec 2023 12:59:28 +0100 (CET) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-35-587X5X2KM4K_b81SrIwdzg-1; Fri, 15 Dec 2023 06:59:25 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AD707879843 for ; Fri, 15 Dec 2023 11:59:25 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.149]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2CF0C1121306 for ; Fri, 15 Dec 2023 11:59:25 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: 65b75d8c-9b41-11ee-98ea-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702641567; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=b1+pg+WM6+oojv3iHQ79WbEbE+ZjsqgernGureeLzb8=; b=WEY6M9F4TKJ67rDUftHf2wIv4Nh9StF5/XwPMaPft0FUtkkbtdbpk53o89Si9fKMdDQO6r +MEbaUKEnvXKIq/n5ISIvwgFR/hgsBw/QTqBkQzcf+dPYQLiXFqlfZNtjUgAxKjxBQIzpS I7yL8kjmDRHULmrhPAXUfCtzFfyXbl0= X-MC-Unique: 587X5X2KM4K_b81SrIwdzg-1 From: Florian Weimer To: xen-devel@lists.xenproject.org Subject: [PATCH] Fix C compatibility issue in mini-os Date: Fri, 15 Dec 2023 12:59:23 +0100 Message-ID: <87edfn8yn8.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1702641591407100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The cc-option check always fails (that, it picks the second option unconditionally) if the compiler does not support implicit conversion from integers to pointers. Just drop the initialization because it seems unnecessary in this context. Related to: Signed-off-by: Florian Weimer diff --git a/Config.mk b/Config.mk index f2d1f0a..b7c9887 100644 --- a/Config.mk +++ b/Config.mk @@ -21,7 +21,7 @@ endef # of which would indicate an "unrecognized command-line option" warning/er= ror. # # Usage: cflags-y +=3D $(call cc-option,$(CC),-march=3Dwinchip-c6,-march= =3Di586) -cc-option =3D $(shell if test -z "`echo 'void*p=3D1;' | \ +cc-option =3D $(shell if test -z "`echo 'void*p;' | \ $(1) $(2) -c -o /dev/null -x c - 2>&1 | grep -- $(2) -`"; \ then echo "$(2)"; else echo "$(3)"; fi ;)