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 51246C4332F for ; Sat, 11 Nov 2023 10:24:49 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.630923.984068 (Exim 4.92) (envelope-from ) id 1r1lA4-0002W3-Ej; Sat, 11 Nov 2023 10:24:20 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 630923.984068; Sat, 11 Nov 2023 10:24:20 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r1lA4-0002Vi-8B; Sat, 11 Nov 2023 10:24:20 +0000 Received: by outflank-mailman (input) for mailman id 630923; Sat, 11 Nov 2023 10:24:18 +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 1r1lA2-0002Vc-8d for xen-devel@lists.xenproject.org; Sat, 11 Nov 2023 10:24:18 +0000 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [2a00:1450:4864:20::22d]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 76938952-807c-11ee-9b0e-b553b5be7939; Sat, 11 Nov 2023 11:24:15 +0100 (CET) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2c50305c5c4so40110261fa.1 for ; Sat, 11 Nov 2023 02:24:15 -0800 (PST) Received: from [192.168.201.133] ([94.75.70.14]) by smtp.gmail.com with ESMTPSA id f19-20020a2ea0d3000000b002c02b36d381sm199200ljm.88.2023.11.11.02.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 02:24:13 -0800 (PST) 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: 76938952-807c-11ee-9b0e-b553b5be7939 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699698254; x=1700303054; darn=lists.xenproject.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=0j1YaKmChFRAui/cTzs4ZoVM2GRQ3YXnysM1v4SVVf4=; b=kcr5wX7sPSixAGvdtnP1NDCZz5wQ9h/23hZmQ60/+gjVWaERlp3+csX3lZHwlRI8ts fDzEpNg1pjplh3qCO5jl0h6BjvKyDSE/tjqbjRb5EFe/6arSSS3p6CoCqpW4AhmBTuF1 zoKr9SY7A3SRYg9dhb+AzZ7oONsxI2Q7dAkOMaoKZDUlsmsSK21SkUgTWyLvMlK6sJwK SeUV6tFGr1gry3TqhhE3cF5gnLuYWvy20BqwgFumvHCodAJ3C/5jlHch6S3ehNa51gJz 8ada6Ie0EeRV683QNtWS5sE0js8nFO2YxsoFgJDChBW7QYJbuHGK9Bzy/5eCqGI7L5sM tI0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699698254; x=1700303054; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0j1YaKmChFRAui/cTzs4ZoVM2GRQ3YXnysM1v4SVVf4=; b=pNiyC7thPVJg43nHujw5XrajmPaTVxOSDOzjZ1FhOdMBOHm/jiyPgV1xmWi9ujCYAE asYW0Nh+hoOvQ0ymkeY/d3W4u39rTWaugjsYNAqYAvcqyb9yVmh07pGyjZFLy/jT+1s5 phazmgpzvBHZp2PlVDJI4Op7c8dkSMhhy0cnj5zaRqHqlCpyHpYjdLoUKStUqVF542L8 5Nl/xtK0NrLSO1NBP5jcJO2DWLgBtSYVLGLUbEgLX9az3/40n6QqcnxCAXQWg0fBK0n1 yjkf0HerFUdNitJBCc0yq/lv/3kRBJvjzEZa0W0OcOvswISE6PI7Ybn7OBiJESGHCEk5 Ww2w== X-Gm-Message-State: AOJu0Yyy/j/bPWDI0+sThhOW00HksvJtULGLsAnw9sto2RKKMslEqRb7 rZMRj2+pmoVQY6CO2ZgY5YnpeREKZIs= X-Google-Smtp-Source: AGHT+IF9dshkylQMPY1fIyIRnH6ZJmvXsbIoOcS4MQlSzE3ZOVNAREK3q0i4c0bScfjA6G5B4rKG2g== X-Received: by 2002:a2e:8681:0:b0:2c5:1b01:b67f with SMTP id l1-20020a2e8681000000b002c51b01b67fmr1311772lji.52.1699698253935; Sat, 11 Nov 2023 02:24:13 -0800 (PST) Message-ID: Subject: Re: [PATCH v2 06/15] xen/asm-generic: ifdef inclusion of From: Oleksii To: xen-devel@lists.xenproject.org Cc: Tamas K Lengyel , Alexandru Isaila , Petre Pircalabu , Jan Beulich Date: Sat, 11 Nov 2023 12:24:12 +0200 In-Reply-To: <7ab8ce9ca633a5a7e5212d0acc62d6e1d4688ca0.1699633310.git.oleksii.kurochko@gmail.com> References: <7ab8ce9ca633a5a7e5212d0acc62d6e1d4688ca0.1699633310.git.oleksii.kurochko@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 This patch should be reworked as it fails Arm builds: https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/1068867920 It looks like it is not possible just to #ifdef CONFIG_MEM_ACCESS. An empty asm-generic mem_access.h will be better solution. Could you please share your opinion? ~ Oleksii On Fri, 2023-11-10 at 18:30 +0200, Oleksii Kurochko wrote: > ifdefing inclusion of in > allows to avoid generation of empty header > for the case when !CONFIG_MEM_ACCESS. >=20 > Suggested-by: Jan Beulich > Signed-off-by: Oleksii Kurochko > --- > Changes in V2: > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0- add Suggested-by: Jan B= eulich > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0- update the commit messa= ge > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0- remove > --- > =C2=A0xen/include/xen/mem_access.h | 2 ++ > =C2=A01 file changed, 2 insertions(+) >=20 > diff --git a/xen/include/xen/mem_access.h > b/xen/include/xen/mem_access.h > index 4e4811680d..87d93b31f6 100644 > --- a/xen/include/xen/mem_access.h > +++ b/xen/include/xen/mem_access.h > @@ -33,7 +33,9 @@ > =C2=A0 */ > =C2=A0struct vm_event_st; > =C2=A0 > +#ifdef CONFIG_MEM_ACCESS > =C2=A0#include > +#endif > =C2=A0 > =C2=A0/* > =C2=A0 * Additional access types, which are used to further restrict