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=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 7FD0FC4363D for ; Tue, 22 Sep 2020 06:56:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1718E23A1E for ; Tue, 22 Sep 2020 06:56:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BLL6mPoH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728592AbgIVG4P (ORCPT ); Tue, 22 Sep 2020 02:56:15 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:33466 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727710AbgIVG4O (ORCPT ); Tue, 22 Sep 2020 02:56:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600757773; 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=fdmGL0X3kZ623XBvGj6grePr2oGnneoqjceqFQ7hFKo=; b=BLL6mPoHhwG+NZEGA3eMiMf2V15xS8emNXEN1jHwRuHwoQCJUuiWeNTZKGn/AznxuUANZA V9BMSfg0zH95gZP1cgqKjLFD0SPzF0zuIILiJJNutQhU7SE73Otp+D4LugeLVLC2nNMMuu blhb3jNtX4sM/y7l453043UBbmV31JI= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-360-wGNLihoeN4ueq8iEww--sQ-1; Tue, 22 Sep 2020 02:56:10 -0400 X-MC-Unique: wGNLihoeN4ueq8iEww--sQ-1 Received: by mail-wr1-f72.google.com with SMTP id j7so7033571wro.14 for ; Mon, 21 Sep 2020 23:56:10 -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=fdmGL0X3kZ623XBvGj6grePr2oGnneoqjceqFQ7hFKo=; b=Vgj4WH4G04L9gHddbIICQKi33kVYbh/OhautCJQSiilTiUOuOO3v2odeEltbkQwkAc V5fzHha3th9zsF97+E5vTYihu3aOn32YUj6kUL7e71uSC0V6x4eb/vbg57WRukGcwJh9 hpBIL8k7mM93GAn2L/WHD6lym8l5tZsfuCG2DlTXkh6f5mCdV6tvqtqGdnamK0w9ZrDx vDY4I4REaG7O7+WgnlFxUb+MAz1dTD3aiQUpqgeNfhVskRs91o8e9Yy8zhcZSaeTuqLD Dcvpgbdb6i6FEx7DF9DYDEbaZBsWWpmVLA7mbr0VsQ5HUtbB8mGVtdvSCq1TNYmbQQXM M1iw== X-Gm-Message-State: AOAM532b52yyHFa9iybu3jkA1ddo40W3xrnXKRWsXHUf/EtvgvatSOyE xA/YQ9Ih+0AjDlAU2uswIB6nAlUha8h8Ul4e3d18PPxLQ6Cc5olV1VjXY0uqdb2FJZcWF2Zmejo zoJfI6idhzoWf X-Received: by 2002:adf:8187:: with SMTP id 7mr3658796wra.266.1600757769265; Mon, 21 Sep 2020 23:56:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKFFt/QRb04H8kSIfdQ5jqG5B6jsQvAnc25MIGryjLgYDuFqTx9G3VVN2PDZNnPRD+beCn4A== X-Received: by 2002:adf:8187:: with SMTP id 7mr3658757wra.266.1600757769000; Mon, 21 Sep 2020 23:56:09 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:d153:8d0f:94cf:5114? ([2001:b07:6468:f312:d153:8d0f:94cf:5114]) by smtp.gmail.com with ESMTPSA id g131sm3054048wmf.25.2020.09.21.23.56.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Sep 2020 23:56:08 -0700 (PDT) Subject: Re: [PATCH] qemu/atomic.h: prefix qemu_ to solve collisions To: David Hildenbrand , Stefan Hajnoczi , qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, Fam Zheng , Yoshinori Sato , Alberto Garcia , Jiri Slaby , Richard Henderson , Peter Lieven , Halil Pasic , Eric Blake , Max Reitz , =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , =?UTF-8?Q?Daniel_P=2e_Berrang=c3=a9?= , Palmer Dabbelt , Markus Armbruster , kvm@vger.kernel.org, Yuval Shaia , "Michael S. Tsirkin" , Cornelia Huck , qemu-block@nongnu.org, Stefan Weil , "Dr. David Alan Gilbert" , Michael Roth , Jiaxun Yang , John Snow , Max Filippov , Marcel Apfelbaum , Alistair Francis , Aurelien Jarno , Aleksandar Rikalo , Huacai Chen , Aleksandar Markovic , Eduardo Habkost , Christian Borntraeger , Sunil Muthuswamy , Thomas Huth , Stefano Stabellini , Anthony Perard , Gerd Hoffmann , Peter Maydell , Liu Yuan , Paul Durrant , Kevin Wolf , Bastian Koppelmann , Sagar Karandikar , Jason Wang , Laurent Vivier , xen-devel@lists.xenproject.org, Matthew Rosato , sheepdog@lists.wpkg.org, qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Juan Quintela , Hailiang Zhang References: <20200921162346.188997-1-stefanha@redhat.com> <52b8a46e-ab9e-1645-163d-497122ece907@redhat.com> From: Paolo Bonzini Message-ID: <8610ca0e-0b3f-6d95-43b9-e2e49571e311@redhat.com> Date: Tue, 22 Sep 2020 08:56:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <52b8a46e-ab9e-1645-163d-497122ece907@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 22/09/20 08:45, David Hildenbrand wrote: >> It's certainly a good idea but it's quite verbose. >> >> What about using atomic__* as the prefix? It is not very common in QEMU >> but there are some cases (and I cannot think of anything better). > > aqomic_*, lol :) Actually qatomic_ would be a good one, wouldn't it? Paolo