Received: from mail.auroraos.dev (unknown [95.181.193.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17230361641 for ; Mon, 23 Feb 2026 20:03:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.181.193.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771877020; cv=none; b=DzTA/jt5WyqkzUaBBuNzbMxthpqJdqr5AbVO1UJBsqvVK2tqyamtNbyn0o/QhChcabAHvIo32Ptk9kZ128P6KzowUafnbEDOiXq2U6mCEtSabHe+HJfAyFsSUI7wgv46yN6iWptfbhktUsg70MNtgJ5JgzE5EIMUrMaZqNYhu7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771877020; c=relaxed/simple; bh=9tUfQSfq5mhX10Vym2VxXL5rNzfiDPP+jXksmUVL7jc=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=Z9fYujjsYl//2JATSPcC5qD2VetqtxWXP0UK1DYw1+ustBCBzNY3PUpUS/HPgh+1tA9tqbVtVzEmNnEaRmrUgwtZZTfH9twd9nq6oA22F2nFBDhnycf6p7fLji8dPZ7SCnKP+N4vmuSokgFnPokQ5wGoR24oSoZc0NrfD1eW5Rw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=auroraos.dev; spf=pass smtp.mailfrom=auroraos.dev; arc=none smtp.client-ip=95.181.193.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=auroraos.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=auroraos.dev Received: from [192.168.2.104] (213.87.162.218) by exch16.corp.auroraos.dev (10.189.209.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Mon, 23 Feb 2026 23:03:33 +0300 Message-ID: Date: Mon, 23 Feb 2026 23:03:32 +0300 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] pinctrl: rockchip: use *enum* properly in rockchip_pinconf_pull_valid() To: Linus Walleij , Heiko Stuebner , , CC: References: <20260223194424.19251-1-s.shtylyov@auroraos.dev> Content-Language: en-US From: Sergey Shtylyov In-Reply-To: <20260223194424.19251-1-s.shtylyov@auroraos.dev> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: exch16.corp.auroraos.dev (10.189.209.38) To exch16.corp.auroraos.dev (10.189.209.38) On 2/23/26 10:44 PM, Sergey Shtylyov wrote: > In rockchip_pinconf_pull_valid(), the pull parameter has *enum* type that > is not isomorphic with boolean type but it's used as a boolean expression > in the ?: operator. Compare pull with PIN_CONFIG_BIAS_BUS_HOLD instead, > dropping the unnecessary ?: operator as well... > > Found by Linux Verification Center (linuxtesting.org) with the Svace static > analysis tool. > > Signed-off-by: Sergey Shtylyov [...] Forgot to add that the patch wass against the for-next branch of Linus W.'s linux-pinctrl.git repo. MBR, Sergey