Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-23.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CBC5C432BE for ; Wed, 1 Sep 2021 16:18:01 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 282236069E for ; Wed, 1 Sep 2021 16:18:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 282236069E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:57524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLSw4-00065Q-4S for qemu-devel@archiver.kernel.org; Wed, 01 Sep 2021 12:18:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLS9D-0001WB-Ph for qemu-devel@nongnu.org; Wed, 01 Sep 2021 11:27:31 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:26889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLS9C-0003e9-6N for qemu-devel@nongnu.org; Wed, 01 Sep 2021 11:27:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630510048; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Q3p94SWuVwowKCUt8FvJriR/qkltdvAkRqgjzymSZVw=; b=hTBgP35CUa0kiHkp6MLwKxBwEvDHt3eUcHyHeR+tMlQNkr5w8QC+/ihVKBVMJ2kPnkU9ok NvyQ7liifP1Mg7l8XxzoqXhY75XfVDEGIRKDFK6y5SsmU0wQyoeDbesQqRKfrpT+YK3J4P Zd2vfqHOomRA1oMfDrIs+YpeoDR+oIY= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-444-3KyoIYzGOqirlCeCQwJxuQ-1; Wed, 01 Sep 2021 11:27:25 -0400 X-MC-Unique: 3KyoIYzGOqirlCeCQwJxuQ-1 Received: by mail-wr1-f70.google.com with SMTP id n18-20020adfe792000000b00156ae576abdso22067wrm.9 for ; Wed, 01 Sep 2021 08:27:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Q3p94SWuVwowKCUt8FvJriR/qkltdvAkRqgjzymSZVw=; b=Yv3y/YFQVrpAeL07qV3//kTagSfU6DfBswsmBViRJzvebYtcD9eMa9PHjaWRt2gYGy ziWfRvNo16oQQjWIs+JlYoBB2TwBJ1zKQ44fT4BkvGM43hCxvhc6DhnmuUocFETFm+o1 0meDKXuGWOanLyNi6kv6WlsePzovPUIPufBbqx6IpCpH2ogmZkJhuk1x0cHXEj35nTV2 eEuuPva5PEnmPpe4iAfV7wVKyf0Gr8KNIQZ070PoarY/VM09PYVcq1Hcdp80NE+LkPTv q3rHCXPPTnOVVPWNNmG4BYH79OabGHRAlKKcbuNYaE5iWmSMdM+OiMUMMIZExWmKKfLI KeiA== X-Gm-Message-State: AOAM531hPccELciQkJjuJ0vDtv70lCoMjAsofcBAyvBj4YfnEsE91GIo nakmNwnYJSuE2hkoDvqKPY6ksy2dXmfyulsaVg/RQCI1FANZjUE8+H1f9yhzW+rTp8ET7emSsIa gqopmEHCGQf7cpZc= X-Received: by 2002:a05:600c:4b92:: with SMTP id e18mr55286wmp.156.1630510044233; Wed, 01 Sep 2021 08:27:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4HFtCPEm1y1P1+bmkka1Lcy9WXmvzBhxFooYL9VvlPL9PoGmC3pG+YpltJp6D7zZf7ugUew== X-Received: by 2002:a05:600c:4b92:: with SMTP id e18mr55260wmp.156.1630510044054; Wed, 01 Sep 2021 08:27:24 -0700 (PDT) Received: from [192.168.1.36] (163.red-83-52-55.dynamicip.rima-tde.net. [83.52.55.163]) by smtp.gmail.com with ESMTPSA id t14sm5355237wmi.12.2021.09.01.08.27.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Sep 2021 08:27:23 -0700 (PDT) Subject: Re: [PATCH] s390x: Replace PAGE_SIZE, PAGE_SHIFT and PAGE_MASK To: Thomas Huth , qemu-devel@nongnu.org, Matthew Rosato , Eric Farman , Cornelia Huck References: <20210901125800.611183-1-thuth@redhat.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Wed, 1 Sep 2021 17:27:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210901125800.611183-1-thuth@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.392, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.029, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Richard Henderson , David Hildenbrand Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 9/1/21 2:58 PM, Thomas Huth wrote: > The PAGE_SIZE macro is causing trouble on Alpine Linux since it > clashes with a macro from a system header there. We already have > the TARGET_PAGE_SIZE, TARGET_PAGE_MASK and TARGET_PAGE_BITS macros > in QEMU anyway, so let's simply replace the PAGE_SIZE, PAGE_MASK > and PAGE_SHIFT macro with their TARGET_* counterparts. > > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/572 > Signed-off-by: Thomas Huth > --- > hw/s390x/s390-pci-bus.c | 10 +++++----- > hw/s390x/s390-pci-inst.c | 8 ++++---- > hw/s390x/sclp.c | 2 +- > include/hw/s390x/s390-pci-bus.h | 5 +---- > 4 files changed, 11 insertions(+), 14 deletions(-) Reviewed-by: Philippe Mathieu-Daudé