From patchwork Sat Mar 26 13:25:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 554371 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1248:0:0:0:0 with SMTP id z8csp6440679mag; Sat, 26 Mar 2022 06:54:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0Z2wbOGTgcUARSKBykWcruT02xRp7811Kg6XLXqTtEPzMk3Yjenlt+WQldIeuz9ou540o X-Received: by 2002:a05:622a:1186:b0:2e1:b669:967 with SMTP id m6-20020a05622a118600b002e1b6690967mr13962388qtk.194.1648302896193; Sat, 26 Mar 2022 06:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648302896; cv=none; d=google.com; s=arc-20160816; b=CBh8GYCojdv92GpKzyVhm+pwRpXoBheKgvI7rTIPFkuKw2HzpYu81pWH1V3SKH+oiy 8AezWDxYmwAyoI+CbeGyr4moqU6IOtaviWUnXUy81GoKvBJ/07WVrdsgg6G/feKZYko9 UVmxa7/Izi5EyfP882C/5RkpN/IM/ZdaKXTuEsNMd1ma4JyRAg1lBpiXIkf4JCK5wv6w wdFmTgVIw/8OtXIglPnWt4NKA24Hx54wC3sbW6kmHubpL9g8Rb8/fxiN7UCW6mF6vc5a xWiPAvuHGvkN18/o2fMrQ/rxwA3IUfjdzLYaoYkb1M11qAzMzRWosYqavMqixDgDolGS pdxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=7UhpieTmtFS288gQ6ONEYE1O22i32fWGmp3rPIltdFw=; b=Uypcf3X8eK5JXST7tquvsiZfBGIOG1cHvNXhZKqkO4FGbQBQlOuCtLQQwPTT6Fn7Kx W2DTGt/fPdmHc6XQE9OhYqyEoY+xcVqofC5Mp85Pm2B/rXo1BTvtMDPxxrDzyA9EFIEZ s7cVrzzoLuUsmuWL9cym51t5LNr6j+GV3CnJgxxcbrW3pwSMn9eQSutlE4edMCPxHOI7 5yrI3IhVZfJLw0ilGxLCGshMHu+Wee6x1azr33/WrL5bDQ+1OxvW5KqcPfih2VqP678Z OzVpItChposfqip7LMbqSblJbNggCEpii2GEvim05V3dCk6zf2ziFSFO2MTprdgYuKjM 1uGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hQEOV8VF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k11-20020ac8140b000000b002e1fbf3bf22si3131978qtj.275.2022.03.26.06.54.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 26 Mar 2022 06:54:56 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hQEOV8VF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nY6sZ-0002Jo-PF for patch@linaro.org; Sat, 26 Mar 2022 09:54:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY6Qw-0007VQ-FG for qemu-devel@nongnu.org; Sat, 26 Mar 2022 09:26:24 -0400 Received: from [2001:4860:4864:20::2b] (port=41702 helo=mail-oa1-x2b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nY6Qu-0005Ve-Hc for qemu-devel@nongnu.org; Sat, 26 Mar 2022 09:26:22 -0400 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-dd9d3e7901so10708454fac.8 for ; Sat, 26 Mar 2022 06:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7UhpieTmtFS288gQ6ONEYE1O22i32fWGmp3rPIltdFw=; b=hQEOV8VFb8U9KhfIMtbSVRjj4U8dQIg6g8SdNRWniBGSgJEbFp1ta/BicT2kRr6XKU QB7qn/cTuHEaOIdnfg/XifD1Ym44NxBCv7CRvUmBcsoK+4trJrlr048utnd54hU7GZOE rzNm/YrgNpYYYLnqwhRXbGiKlmv7kkoBTmrYaVGXn+nzjpN/mgBaSFE5VLg+14vqlxxB HvtvibTT82IGmSul/uxPxgBD8yYmy+IVdjazde6Ztp0vjQhFE5sBpTRWPVS6VN/aRh2A 2suEdU7cLxf22Mh3E3rLwK5WciIf0PvX/rmtYfnu+FMhw4wV48QufNaJ7DplQ/eSB3Lm ZDmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7UhpieTmtFS288gQ6ONEYE1O22i32fWGmp3rPIltdFw=; b=meTj54hABm2q7Ro7X9zme30V4YHszF73xVaytlVLL56lKqSS2Z8EYw54O63U5FFsUf FSNvVGgP8Db+jFay/nMsf/G+xEpkCXsLag0NDF2A+VrBRif63TrTmu8IjgFJqu36ceJS aDukJ75j/lkS5At6UUpZir61uYaSPJa2/Bl14d6OS+F48t9wf41B7BZILbG/XzAdrIsx uSQyani+IvhuuzNx88OoeX61EUgatGKye1LDN1Q5JWNUCxwMRA72T7RR/v51F8oFilvM wSy2HpOe6EsiHHReYhLV92TZ0E93CILtZz8e/bGj2Gdsbtxg1bbISMutV44LVv2LzYAf CiGA== X-Gm-Message-State: AOAM532zvIhLar7G4SoC4EfAiYO2lhZ1uC7jK9kn2sVo6p5tzLop0Ol8 XNodYXKys2ZresKjyXRKWmALZZgv0VH4z+IW X-Received: by 2002:a05:6870:204c:b0:de:10fe:ba3b with SMTP id l12-20020a056870204c00b000de10feba3bmr7190665oad.80.1648301178861; Sat, 26 Mar 2022 06:26:18 -0700 (PDT) Received: from localhost.localdomain (168.189-204-159.bestelclientes.com.mx. [189.204.159.168]) by smtp.gmail.com with ESMTPSA id n62-20020acaef41000000b002ef646e6690sm4610331oih.53.2022.03.26.06.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Mar 2022 06:26:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 18/39] util/log: Mark qemu_log_trylock as G_GNUC_WARN_UNUSED_RESULT Date: Sat, 26 Mar 2022 07:25:13 -0600 Message-Id: <20220326132534.543738-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220326132534.543738-1-richard.henderson@linaro.org> References: <20220326132534.543738-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:4860:4864:20::2b (failed) Received-SPF: pass client-ip=2001:4860:4864:20::2b; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2b.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Now that all uses have been updated, consider a missing test of the result of qemu_log_trylock a bug and Werror. Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée --- include/qemu/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu/log.h b/include/qemu/log.h index 2d9455dc85..3a1f3a6020 100644 --- a/include/qemu/log.h +++ b/include/qemu/log.h @@ -67,7 +67,7 @@ static inline bool qemu_log_separate(void) /* Lock/unlock output. */ -FILE *qemu_log_trylock(void); +FILE *qemu_log_trylock(void) G_GNUC_WARN_UNUSED_RESULT; void qemu_log_unlock(FILE *fd); /* Logging functions: */