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) /// Adds missing MODULE_IMPORT_NS statements to source files
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) ///
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) /// This script is usually called from scripts/nsdeps with -D ns=<namespace> to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) /// add a missing namespace tag to a module source file.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) ///
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) virtual nsdeps
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) virtual report
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) @has_ns_import@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) declarer name MODULE_IMPORT_NS;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) identifier virtual.ns;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) @@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) MODULE_IMPORT_NS(ns);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) // Add missing imports, but only adjacent to a MODULE_LICENSE statement.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) // That ensures we are adding it only to the main module source file.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) @do_import depends on !has_ns_import && nsdeps@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) declarer name MODULE_LICENSE;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) expression license;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) identifier virtual.ns;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) @@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) MODULE_LICENSE(license);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) + MODULE_IMPORT_NS(ns);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) // Dummy rule for report mode that would otherwise be empty and make spatch
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) // fail ("No rules apply.")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) @script:python depends on report@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) @@