Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1l3n8a-0000B9-Gb for mharc-qemu-riscv@gnu.org; Sun, 24 Jan 2021 16:41:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3n8X-00008Q-U9 for qemu-riscv@nongnu.org; Sun, 24 Jan 2021 16:41:33 -0500 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:46714) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l3n8V-0004af-RO for qemu-riscv@nongnu.org; Sun, 24 Jan 2021 16:41:33 -0500 Received: by mail-pf1-x430.google.com with SMTP id f63so7253711pfa.13 for ; Sun, 24 Jan 2021 13:41:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QaOXhfEfmCY4o+DxpRSYOvLGce44Tf6m0e6zGTklaYo=; b=FCrsHU/7IoiOcZDpErrZa/6h4nVicGM2Dc0HTX13Ll6jQU+8gYECZY7SQvAt63fhj2 /3B31eHlxt8MjYf2RwQPKxpisQHm+/kEQeKgwr9ho5ZppNEx1m5to0VNIfSfT0c5aZG9 ViA+zv7ZZKZ50nKUoN1GuXPcE1q6Je0fo80/ZZSSh49yRmmfs32gU/IHtzp+ksz5kN5G Yb+OXn+lFu9WBaTXSMYFzx2kaZliMizWG/NDx8v63pw0NmtmnOoacGnsDl8lVQ3KowjI 5EyJuhAvAjmQ2SbZqJ+YpOHA4FDTWnX2uSfrJDIeWIn5qwNUt+Gugr+Tl4i2qoD6xjIf CHQA== 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=QaOXhfEfmCY4o+DxpRSYOvLGce44Tf6m0e6zGTklaYo=; b=BoqIJVS+jepoW4cELiE/rsFSFMWBfY7hiWuopiAzAEH7zejt3CDjdDRyHdt8nSKsss 9ytnPTyAa2z7fUxEw5SF3dLAilSOe3MAVDMxxtCm0oFJt4+4SZI4LXKiSBtWdvmSM7zK 6Ht/1pbUlawrQrquQM/v1T1UaEwMr8GbqrB2RLBvKgIRXXgRNnfzlegtj4OGqtt4n0xd nLkH4oEI8gnsB5GGotlDhFz/wucqGj67i0bpFKNiQiM+cmNlOiO7vhj+V5Q7UYRIXIGy J6I6MXEwHsDOT5ylrY65+0lsTd4i/bVcmo/nzkL5XfqPKHW0DJAOA0UyUli+inkxK/K7 dG8g== X-Gm-Message-State: AOAM532T0DLw7Z5nUpPAWI/vuu51dKC0hvL9rfrJxpqCfvGuQ1IPf0sM 3nKmdYAKHmjP/lHK9MhuDxd4Xg== X-Google-Smtp-Source: ABdhPJwrBv3Tnj3PaaaD/sqVUOOOEb0JeM5CTLPvJgCXe5BWoj/xCQf1ks84SQuJBLFxFxJCxbh2YQ== X-Received: by 2002:a65:680d:: with SMTP id l13mr14613009pgt.370.1611524489980; Sun, 24 Jan 2021 13:41:29 -0800 (PST) Received: from [192.168.3.43] (cpe-66-27-222-29.hawaii.res.rr.com. [66.27.222.29]) by smtp.gmail.com with ESMTPSA id i4sm6201242pfo.40.2021.01.24.13.41.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 24 Jan 2021 13:41:29 -0800 (PST) Subject: Re: [PATCH v2 06/25] util: Add CRC16 (CCITT) calculation routines To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Paolo Bonzini Cc: Bin Meng , qemu-block@nongnu.org, Bin Meng , qemu-devel@nongnu.org, qemu-riscv@nongnu.org, Alistair Francis References: <20210123104016.17485-1-bmeng.cn@gmail.com> <20210123104016.17485-7-bmeng.cn@gmail.com> <2927f234-a9d0-8fd8-c99e-b858aed1287c@linaro.org> From: Richard Henderson Message-ID: <21456d3c-559e-3ea6-bc5e-2abcfa088da0@linaro.org> Date: Sun, 24 Jan 2021 11:41:25 -1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2021 21:41:34 -0000 On 1/24/21 10:24 AM, Philippe Mathieu-Daudé wrote: > On 1/24/21 9:07 PM, Richard Henderson wrote: >> Doesn't this get put in libutil, where it is only pulled from the archive when >> needed? Also, libutil is built once, not per-target. > > Hmm I just sent a pull request with this change squashed in. > Should I cancel it? I guess not. > My view is we don't install libqemuutil.a anywhere, so why overload > building unused objects when some configuration don't need it? My view is that util/meson.build should not be overly complicated with conditionals. If we were building objects per-target, that would be one thing. If we were doing --whole-archive, and including unused code in the executables, that would be another thing. But otherwise... r~