Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) // SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) ///
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) /// Please, don't reintroduce uninitialized_var().
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) /// From Documentation/process/deprecated.rst:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) ///  For any compiler warnings about uninitialized variables, just add
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) ///  an initializer. Using warning-silencing tricks is dangerous as it
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) ///  papers over real bugs (or can in the future), and suppresses unrelated
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) ///  compiler warnings (e.g. "unused variable"). If the compiler thinks it
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) ///  is uninitialized, either simply initialize the variable or make compiler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) ///  changes. Keep in mind that in most cases, if an initialization is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) ///  obviously redundant, the compiler's dead-store elimination pass will make
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) ///  sure there are no needless variable writes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) ///
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) // Confidence: High
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) // Copyright: (C) 2020 Denis Efremov ISPRAS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) // Options: --no-includes --include-headers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) virtual context
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) virtual report
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) virtual org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) @r@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) identifier var;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) type T;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) position p;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) @@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) (
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) * T var =@p var;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) * T var =@p *(&(var));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) * var =@p var
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) * var =@p *(&(var))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) @script:python depends on report@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) p << r.p;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) @@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) coccilib.report.print_report(p[0],
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44)   "WARNING this kind of initialization is deprecated (https://www.kernel.org/doc/html/latest/process/deprecated.html#uninitialized-var)")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) @script:python depends on org@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) p << r.p;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) @@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) coccilib.org.print_todo(p[0],
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)   "WARNING this kind of initialization is deprecated (https://www.kernel.org/doc/html/latest/process/deprecated.html#uninitialized-var)")