Message ID | 20201127175256.1092685-12-mathieu.poirier@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=Z36m=FB=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 6F214C3E8C5 for <linux-arm-kernel@archiver.kernel.org>; Fri, 27 Nov 2020 17:56:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 0D5F62224A for <linux-arm-kernel@archiver.kernel.org>; Fri, 27 Nov 2020 17:56:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Wi/ckLdR"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FQm6WB2A" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0D5F62224A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4yYmrsUAGBJp7Jy4Rjfye0DppoIJbPil7Ol09rDM88I=; b=Wi/ckLdRWCq0Cg40EAiRp8bBF QrVNdNWxijxqX4PfFfjGzWiLaYJbf9sjmYKyIniz7d8zGbWFW795XqwBQu29CbZNGRCakWX37Zx8f yB2qWhCkHfmpjMr90rL7bafl6y6z0/i0CD6a7IAD3SX0CH+iiVf1kp72+OL1eXTTTq5LCp0Sz5NOg Hw5Eykp7x0LNf4YS5Yc4Y6tdEq+zwyjfwplbyGwZihI6DRcFO2EWJ2hEWTOn6/JGegWA1uGLX749S uoU4Wv+pONtHG3BEp4sopFkzINa5VBwVylgp0qBiqROBjhQtdKPWRRQNpgVwHmQTkD4Av7EicK2S3 rPXDlqefA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kihxi-0005Qo-U9; Fri, 27 Nov 2020 17:55:15 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kihvi-0004er-MQ for linux-arm-kernel@lists.infradead.org; Fri, 27 Nov 2020 17:53:14 +0000 Received: by mail-pg1-x543.google.com with SMTP id 34so4861556pgp.10 for <linux-arm-kernel@lists.infradead.org>; Fri, 27 Nov 2020 09:53:10 -0800 (PST) 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=ramerNGPDN8JQu0sTjF20UQ56cc88LDm81V2sxUvJXg=; b=FQm6WB2AGfGgryu4sHXSOql5gOSUNN78KkHNtyDxfHwEBcR0eIqkJxVJqdhfqLzlAJ NMNXr31xULLR4sNTxbph6Fv+OheR2nGJIVW+n4kQjhoh4HfhXRhX9jnbUNkCafqxrxxJ DUJJOLuoXOiqweSh3hft2ZHw+HUrSkoh7LSy71Qqc6nYCPEcRseLyN5M5OtKuupOIC33 6UYOYqX1RYnuBgvoT1chHfM1sN3rIP7lT207vVUmXQYKrrAWPhE5MK/VqoGIuyeB+CZj zH0SEBvFqL4EiylfrJdrpHqkAU1k0oSl2Vg41e3H2oEbL0KAs57THw9Pb5MYzR54wnMG Do2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ramerNGPDN8JQu0sTjF20UQ56cc88LDm81V2sxUvJXg=; b=AogUj57u6FdgU/ON6u5no9C3rvvcasPb46REUoVQXQdsreZTkiAVca9kyOaCOmhdJU rdOshJLlEpfNXF5BQJMELdPdzSJVG2iInhsv3/2qy5VD3Knp0IcE/+k0VK7xBSICW5bY L62SSN3bkqjUsFbnNqwFrqIRBcXiEBhBj+v93PUugaTJp1uEq6Ut8MBmP7n/e62XdQY1 ojGlNm7hekcerL0wV+f2Md6v/W+/uQa5GkP7fM1ZdU+4MuK1O6VLcelhzvTDq/2tMtSq THueKQV7yHJA8NqunicoiXRI7lQGd0HPErgZd4n6j5ZQcQEZS2wGc27PtiLum59A09zg vOGQ== X-Gm-Message-State: AOAM532S2jiHMlmXlZpicn6UJoM1e/s8hopAE2Qi4a/Gv2HCpkXOfVQv 22HM2UFIpq23PdZYNUaOup8fdQ== X-Google-Smtp-Source: ABdhPJwvTDualLfsYi67Q44KtxolPRq/KwqvenTwLJOC68J8jafxMn8ssGILH7qJLd5Twi65Eo/lJA== X-Received: by 2002:a17:90a:f314:: with SMTP id ca20mr11805963pjb.191.1606499589035; Fri, 27 Nov 2020 09:53:09 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id t18sm10536724pji.1.2020.11.27.09.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2020 09:53:08 -0800 (PST) From: Mathieu Poirier <mathieu.poirier@linaro.org> To: gregkh@linuxfoundation.org Subject: [PATCH 11/15] coresight: tmc-etr: Assign boolean values to a bool variable Date: Fri, 27 Nov 2020 10:52:52 -0700 Message-Id: <20201127175256.1092685-12-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201127175256.1092685-1-mathieu.poirier@linaro.org> References: <20201127175256.1092685-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201127_125310_811809_A345093F X-CRM114-Status: GOOD ( 13.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
coresight: Patches for v5.11
|
expand
|
diff --git a/drivers/hwtracing/coresight/coresight-tmc-etr.c b/drivers/hwtracing/coresight/coresight-tmc-etr.c index 714f9e867e5f..525f0ecc129c 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etr.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etr.c @@ -954,11 +954,11 @@ static void tmc_sync_etr_buf(struct tmc_drvdata *drvdata) dev_dbg(&drvdata->csdev->dev, "tmc memory error detected, truncating buffer\n"); etr_buf->len = 0; - etr_buf->full = 0; + etr_buf->full = false; return; } - etr_buf->full = status & TMC_STS_FULL; + etr_buf->full = !!(status & TMC_STS_FULL); WARN_ON(!etr_buf->ops || !etr_buf->ops->sync);