lkml.org 
[lkml]   [2022]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH v3 2/4] ufs: core: mcq: Adds Multi-Circular Queue support
From
On 9/5/22 09:27, Bean Huo wrote:
> static read_queues is not initialized.

Hi Bean,

The Linux kernel coding style guide does not allow to explicitly
initialize static variables to zero. The C standard requires that static
variables that are not initialized explicitly are initialized to zero.
From https://en.wikipedia.org/wiki/.bss: "In C, statically allocated
objects without an explicit initializer are initialized to zero (for
arithmetic types) or a null pointer (for pointer types)."

Thanks,

Bart.

\
 
 \ /
  Last update: 2022-09-09 00:03    [W:0.126 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site