Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp908094rdb; Wed, 1 Nov 2023 06:23:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMs2LRfg8OiFfN95OfmXrv30JDsnSRMKQ4oyNC6VW+7hz/+P+Zshg8FtzDGiIH7sSowgwp X-Received: by 2002:a17:902:db0f:b0:1cc:5ef7:e3dd with SMTP id m15-20020a170902db0f00b001cc5ef7e3ddmr7103973plx.47.1698845022140; Wed, 01 Nov 2023 06:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698845022; cv=none; d=google.com; s=arc-20160816; b=xSfH0o380sZl/3ERi6t3ezqCew3KFKHsqZSW4sUyIPB1x6sXnOMEkuaBhtf1i8jld3 dFm1hhMru7RPvLL1sJQhX4Koz7E9XL0KptkAIM48EtUQ1zGl5vvHjW6IgH448WZz/l4B i5A+ADv9q6mEqaAQ86yM4Zq4FakKBTGlfPzJqpcRcCrEJIyORvAo8D5mHSGbTFIQHC40 krCADt/xCBBZHhkEy7PMwfrS5r/KZT9NHIJJTiRBKFW6xtyWY91vqoqe3CCoR1/M5xcr s+f6+Szj8MKLOuBuphJ9XB2HGMa8Hn0yK31A2c7kf/s2pL0JH1Fuu2RHCQky7QlYyuSV bgYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=32y1OlURuzBAKGF3eGs3qzXaT6tDLEQTENBP8TXeoMI=; fh=lVz/Z6VUVniA9MFSNKHApfjs9oByuR75HO/MAd6A+HU=; b=Qv4YN6f3foGdQq4xHh6WjFOFTcXs9aDBnlmot5ey1TzEYCKGO5BzLeTj3ZXZa7VyiC VzKbwbgmDZwyE/AKQDehbF7o/XTyeHAauYMedyfOoEMOXdsZJ0eYRmtX/ieezqGU3eid nboKV6cZghwGy3KfFuGhPPXbMBuNzgIYDYPc09Sw9vLKtS85iMDZYr3aNPYS267rsoVu a5SO880iLVVlyPyr1M6s52zbRKbqRIQQTkgwdYu4C2F1m1M3o3xtrsUr/PuGgGspokcn KfJ9VBtv74uPhofin3Oz1IefKTuUKZ/bIwrfWZQztPYoc8sjnS+EPrY+sMYdzJCJw7Vg Gumw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y4-20020a17090322c400b001c9ce2b6b97si3229870plg.198.2023.11.01.06.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 06:23:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4916080E6582; Wed, 1 Nov 2023 06:23:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344192AbjKANX3 (ORCPT + 99 others); Wed, 1 Nov 2023 09:23:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344071AbjKANX2 (ORCPT ); Wed, 1 Nov 2023 09:23:28 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6D06CFD; Wed, 1 Nov 2023 06:23:25 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 649F12F4; Wed, 1 Nov 2023 06:24:06 -0700 (PDT) Received: from [10.57.1.80] (unknown [10.57.1.80]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 079023F64C; Wed, 1 Nov 2023 06:23:22 -0700 (PDT) Message-ID: <3d744ee6-a739-42b6-8a87-124746a9287c@arm.com> Date: Wed, 1 Nov 2023 13:23:21 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] coresight: etm4x: Fix width of CCITMIN field Content-Language: en-GB To: James Clark , coresight@lists.linaro.org, anshuman.khandual@arm.com, mike.leach@linaro.org Cc: stable@vger.kernel.org, Alexander Shishkin , Pratik Patel , Mathieu Poirier , Greg Kroah-Hartman , Kaixu Xia , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20231101115206.70810-1-james.clark@arm.com> From: Suzuki K Poulose In-Reply-To: <20231101115206.70810-1-james.clark@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 01 Nov 2023 06:23:30 -0700 (PDT) On 01/11/2023 11:52, James Clark wrote: > CCITMIN is a 12 bit field and doesn't fit in a u8, so extend it to u16. > This probably wasn't an issue previously because values higher than 255 > never occurred. > > But since commit 0f55b43dedcd ("coresight: etm: Override TRCIDR3.CCITMIN > on errata affected cpus"), a comparison with 256 was done to enable the > errata, generating the following W=1 build error: > > coresight-etm4x-core.c:1188:24: error: result of comparison of > constant 256 with expression of type 'u8' (aka 'unsigned char') is > always false [-Werror,-Wtautological-constant-out-of-range-compare] > > if (drvdata->ccitmin == 256) > > Cc: stable@vger.kernel.org > Fixes: 2e1cdfe184b5 ("coresight-etm4x: Adding CoreSight ETM4x driver") > Reviewed-by: Mike Leach > Signed-off-by: James Clark Thanks, applied to coresight next : Suzuki