From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B99DC32772 for ; Tue, 23 Aug 2022 15:40:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2qNUc8XBjF+H5G1EbuZq7CZVZM19tXFaPKzvEmq63dw=; b=FfTQBtWQukoK86 7YZ0R2aEnOuPOCeEcF9qVU5+TGjaO9P5/FGaWY9SpsSfkqSH26thKR0YAj1dB0yLbz8Jf/WSEt906 CntuWjF6Eehg6vUjqyLBGubjUuaz1Lqa5sYBUqgzajogKVvTZYSjpsGkhNGDJx0neQjdo+vGcCRsR HPJLbaYGYwK9c6KZRyFtWAl52NZSBd4Pmg1cjpwWbkFlUiWtDooOZGoOYKxYhyr9cfdydOiY0U8jR wTfYlmipaX99EeyqYlIZ5azTuWe5INTinvkZNOVHE/Cg5772AQsdn5qhhFG3jkQVHkJvoHeSvKNsx R/Cywit2Cg4GFPXxQBfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQVzt-006yvf-UU; Tue, 23 Aug 2022 15:39:22 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQVzq-006yuO-M0 for linux-arm-kernel@lists.infradead.org; Tue, 23 Aug 2022 15:39:20 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 88337615FA; Tue, 23 Aug 2022 15:39:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49C33C433B5; Tue, 23 Aug 2022 15:39:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661269157; bh=EY7ffbopHvWsKpBVtYBIrPDSyaNtMo8vstLMv2RbPi8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q4cLF4ai88z/mqbFHfObkZHkx3eEi9LrgQNCu7fhOmP7r/F+1Nbz9zwGAI7WQkkJm M7mrxmZk6dSxVjdCXZCxnh3upzNpqzq8AMMlB+iXd/8UcwIYN2YyK9E2U6yKEVT70E KXaE7WVPdZKyOWP1DSMbaZxspsvmlQ0zGizbNpNDwyZ1Rd7xVxlpoIwLzfEkYi9sCQ vAmSz40YIMt3v6Z8gC1A5CyZfqg4yUWTja65AZMkdCvEJJwVsbS2sy6T1Qari0jJow TUI0EuTu5TiWchDhjT3A7bKme6PtqyolERQg1j5heVQ0PXDqZnzK7dJTo8dahQKadt Xo+9oKO4geaFQ== Date: Tue, 23 Aug 2022 08:39:13 -0700 From: Nathan Chancellor To: Mark Brown Subject: Re: [PATCH] ASoC: mchp-spdiftx: Fix clang -Wbitfield-constant-conversion Message-ID: References: <20220810010809.2024482-1-nathan@kernel.org> <166058059542.769843.4941839393289864947.b4-ty@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <166058059542.769843.4941839393289864947.b4-ty@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220823_083918_794822_7E2BE3C3 X-CRM114-Status: GOOD ( 17.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, llvm@lists.linux.dev, Alexandre Belloni , Tom Rix , Nick Desaulniers , linux-kernel@vger.kernel.org, Liam Girdwood , Codrin Ciubotariu , Claudiu Beznea , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Mark, On Mon, Aug 15, 2022 at 05:23:15PM +0100, Mark Brown wrote: > On Tue, 9 Aug 2022 18:08:09 -0700, Nathan Chancellor wrote: > > A recent change in clang strengthened its -Wbitfield-constant-conversion > > to warn when 1 is assigned to a 1-bit signed integer bitfield, as it can > > only be 0 or -1, not 1: > > > > sound/soc/atmel/mchp-spdiftx.c:505:20: error: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Werror,-Wbitfield-constant-conversion] > > dev->gclk_enabled = 1; > > ^ ~ > > 1 error generated. > > > > [...] > > Applied to > > https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next > > Thanks! > > [1/1] ASoC: mchp-spdiftx: Fix clang -Wbitfield-constant-conversion > commit: eab9100d9898cbd37882b04415b12156f8942f18 I noticed that this was applied to for-6.1. I know you do not rebase or change your trees so this request might be rejected based on that alone but would it be possible to cherry-pick this to for-6.0 so that it can be applied to Linus's tree quicker? We have had to apply this change to our CI to keep our builds green in mainline, -tip, and 5.19/5.15 stable with clang-16 due to -Werror. If not, no worries, I should have made it clearer that is what I was looking for with the subject prefix. Cheers, Nathan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel