From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E39A15A5; Sat, 29 Apr 2023 01:13:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD3BBC433D2; Sat, 29 Apr 2023 01:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682730816; bh=ngfPZVB4srf8It2rTrkDVVsU3/xInNiqv4mthWXVBAg=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=YByXy/Gxb8rdH9bv+tVMpoWPcjsI4UMpMmrhkyBFnCZDhnssNLOuOsOL16ZAk2FEj LyRQ+P5amSDee9Uoaxw+a2Km5va14pRfWjf5rj+B6GQOksyHrW6mPR7TlOhIlxGi99 1jCnMMkYrEm51jikCusY52ZDKzumqzfnzzhiaqT0woEWVt88QUj9KIXuRLDyzTAorc 8obl6LmsMZbcuDXQ1GiXzadIkpZhCy/03G3CRuAQpbIkqfDhVjZMLCpdtJqR7ZuaJi 6Jb72ltOsHlrGsnZ5djaERvKjXsduEfzUz5T13QQRiqIt1HeVjzLjahuR4TRg/DgNI TWt5JaowrSWEQ== Message-ID: Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230324145056.GA428955@dev-arch.thelio-3990X> References: <202303221947.pXP2v4xJ-lkp@intel.com> <81b2a67f89d7f46dd27f6d05606e753f.sboyd@kernel.org> <20230322195933.GA2828949@dev-arch.thelio-3990X> <00c24196e5ceb60b7d69967b73910264.sboyd@kernel.org> <20230324145056.GA428955@dev-arch.thelio-3990X> Subject: Re: [clk:clk-sunplus 1/1] drivers/clk/clk-sp7021.c:316:8: warning: result of comparison of constant 18446744073709551615 with expression of type 'typeof (_Generic((_m), char: (unsigned char)0, unsigned char: (unsigned char)0, signed char: (unsigned char)0, unsigned short: (unsigne... From: Stephen Boyd Cc: Qin Jian , kernel test robot , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org To: Nathan Chancellor Date: Fri, 28 Apr 2023 18:13:34 -0700 User-Agent: alot/0.10 Quoting Nathan Chancellor (2023-03-24 07:50:56) > On Wed, Mar 22, 2023 at 04:48:43PM -0700, Stephen Boyd wrote: > > Quoting Nathan Chancellor (2023-03-22 12:59:33) > >=20 > > > It looks like clang is > > > complaining that mask is an unsigned int and it is being compared > > > against ~0ull, which will always be false. This makes the warning go > > > away for me, which is similar to commit cfd6fb45cfaf ("crypto: ccree - > > > avoid out-of-range warnings from clang"), but I am not sure if that is > > > correct or not. > >=20 > > Cool thanks. Can you send it as a proper patch? >=20 > Sure thing, I will do so when I am back online next week. >=20 Did you send the patch?