Re: [PATCH v2 2/4] phy: rockchip-samsung-dcphy: factor MIPI D-PHY power on/off into helpers

Bryan O'Donoghue <[email protected]>
Newsgroups org.infradead.lists.linux-phy,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-rockchip,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On 06/08/2026 20:31, Sebastian Reichel wrote:
>> This looks a bit funny.
>>
>> Do you have an int method() {} with a final path that returns no value ?
>>
>> Tooling/compilers will definitely and rightly complain about that.
> int function() {
>      ...
> 
>      switch(foo) {
>      case 42:
>          return 1;
>      default:
>          return 0;
>      }
>      /* cannot be reached */
> }
> 
> Greetings,
> 
> -- Sebastian

Hmm.

The LLM tells me there is no compiler version that will generate a 
warning for this.

Entertaining overdone too

"Across compilers that will ever see this code: yes, and I can now show 
it rather than assert it — I installed the spread. gcc 12, 13, 14 and 
clang 18, from -Wall -Wextra -Wpedantic upward: clean. Then the decisive 
one: clang -Weverything — every diagnostic clang possesses, a strict 
superset of any CI configuration that can exist — on Sebastian's exact 
function: zero output."

Meh

---
bod

-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.