mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
fa7f6a5f56d909d4d321b28a3e23ca0175825042
Sync up with android12-5.10 for the following commits:b389838308ANDROID: GKI: Add symbols to abi_gki_aarch64_transsion5b696d45bfBACKPORT: nfc: nfcmrvl: main: reorder destructive operations in nfcmrvl_nci_unregister_dev to avoid bugs01680ae117ANDROID: vendor_hook: Add hook in __free_pages()e064059673ANDROID: create and export is_swap_slot_cache_enabledf6f18f7ffaANDROID: vendor_hook: Add hook in swap_slots034877c195ANDROID: mm: export swapcache_free_entries06c2766cbcANDROID: mm: export symbols used in vendor hook android_vh_get_swap_page()d4eef93a9dANDROID: vendor_hooks: Add hooks to extend struct swap_slots_cache4506bcbba5ANDROID: mm: export swap_type_to_swap_infoed2b11d639ANDROID: vendor_hook: Add hook in si_swapinfo()667f0d71dcANDROID: vendor_hooks: Add hooks to extend the struct swap_info_structbc4c73c182ANDROID: vendor_hook: Add hooks in unuse_pte_range() and try_to_unuse()7222a0b29bANDROID: vendor_hook: Add hooks in free_swap_slot()d2fea0ba9aANDROID: vendor_hook: Add hook to update nr_swap_pages and total_swap_pages1aa26f0017ANDROID: vendor_hook: Add hook in page_referenced_one()851672a4b2ANDROID: vendor_hooks: Add hooks to record the I/O statistics of swap:5bc9b10c45ANDROID: vendor_hook: Add hook in migrate_page_states()89a247a638ANDROID: vendor_hook: Add hook in __migration_entry_wait()f7c932399eANDROID: vendor_hook: Add hook in handle_pte_fault()50148ce249ANDROID: vendor_hook: Add hook in do_swap_page()9d4b553252ANDROID: vendor_hook: Add hook in wp_page_copy()e3f469befbANDROID: vendor_hooks: Add hooks to madvise_cold_or_pageout_pte_range()6b7243da5eANDROID: vendor_hook: Add hook in snapshot_refaults()6b04959511ANDROID: vendor_hook: Add hook in inactive_is_low()bb9c8f5256FROMGIT: usb: gadget: f_fs: change ep->ep safe in ffs_epfile_io()7d2bd28eaeFROMGIT: usb: gadget: f_fs: change ep->status safe in ffs_epfile_io()abb407e9ffANDROID: GKI: forward declare struct cgroup_taskset in vendor hooks8d6d335851ANDROID: Fix build error with CONFIG_UCLAMP_TASK disabled1590a0e8e1ANDROID: GKI: include more type definitions in vendor hooks583c0f7c1cANDROID: Update symbol list for mtk5146690a6cANDROID: dma/debug: fix warning of check_sync564ba93050FROMGIT: usb: common: usb-conn-gpio: Allow wakeup from system suspendd41cf0b55bBACKPORT: FROMLIST: usb: gadget: uvc: fix list double add in uvcg_video_pump74769685e4BACKPORT: exfat: improve write performance when dirsync enabled47fa973d9eFROMLIST: devcoredump : Serialize devcd_del workb92ac32536FROMGIT: usb: gadget: uvc: calculate the number of request depending on framesize59d057a3f9ANDROID: GKI: Add tracing_is_on interface into symbol listdb16bd36e8UPSTREAM: usb: gadget: f_mass_storage: Make CD-ROM emulation work with Mac OS-Xfefdf99a96BACKPORT: io_uring: fix race between timeout flush and removal07b78bf6d0BACKPORT: net/sched: cls_u32: fix netns refcount changes in u32_change()95e278bdc8UPSTREAM: io_uring: always use original task when preparing req identity0f77129416FROMLIST: remoteproc: Fix dma_mem leak after rproc_shutdown6a15abd604FROMLIST: dma-mapping: Add dma_release_coherent_memory to DMA API9efe21cd8fANDROID: Update QCOM symbol list for __reset_control_get131b12d50fMerge tag 'android12-5.10.110_r01' into android12-5.108c3ac02bcaANDROID: vendor_hooks: Add hooks for mutexa27d9caa6aBACKPORT: can: ems_usb: ems_usb_start_xmit(): fix double dev_kfree_skb() in error path1292f51788BACKPORT: can: usb_8dev: usb_8dev_start_xmit(): fix double dev_kfree_skb() in error path82a3c7ee8dANDROID: GKI: Update symbols to symbol list59735a7d31ANDROID: oplus: Update the ABI xml and symbol list76c90b9959UPSTREAM: remoteproc: Fix count check in rproc_coredump_write()3e71aa523eBACKPORT: esp: Fix possible buffer overflow in ESP transformation66f0c91b2fANDROID: Fix the drain_all_pages default condition broken by a hook393be9a064UPSTREAM: Revert "xfrm: xfrm_state_mtu should return at least 1280 for ipv6"73f6098941UPSTREAM: xfrm: fix MTU regressione27ad1d211ANDROID: signal: Add vendor hook for memory reaping And track more new symbols that were added to the 'android12-5.10' branch: Leaf changes summary: 33 artifacts changed Changed leaf types summary: 0 leaf type changed Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 31 Added functions Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 2 Added variables 31 Added functions: [A] 'function int __traceiter_android_vh_killed_process(void*, task_struct*, task_struct*, bool*)' [A] 'function void _snd_pcm_hw_params_any(snd_pcm_hw_params*)' [A] 'function bool check_cache_active()' [A] 'function int copy_to_user_fromio(void*, const volatile void*, size_t)' [A] 'function void debugfs_create_file_size(const char*, umode_t, dentry*, void*, const file_operations*, loff_t)' [A] 'function int devm_regmap_field_bulk_alloc(device*, regmap*, regmap_field**, reg_field*, int)' [A] 'function mem_cgroup* get_mem_cgroup_from_mm(mm_struct*)' [A] 'function bool is_swap_slot_cache_enabled()' [A] 'function void ktime_get_coarse_ts64(timespec64*)' [A] 'function unsigned int linear_range_get_max_value(const linear_range*)' [A] 'function int linear_range_get_value(const linear_range*, unsigned int, unsigned int*)' [A] 'function int platform_irqchip_probe(platform_device*)' [A] 'function int register_tcf_proto_ops(tcf_proto_ops*)' [A] 'function int scan_swap_map_slots(swap_info_struct*, unsigned char, int, swp_entry_t*)' [A] 'function int snd_pcm_kernel_ioctl(snd_pcm_substream*, unsigned int, void*)' [A] 'function int snd_pcm_open_substream(snd_pcm*, int, file*, snd_pcm_substream**)' [A] 'function int snd_pcm_stop(snd_pcm_substream*, snd_pcm_state_t)' [A] 'function long int strnlen_user(const char*, long int)' [A] 'function int swap_alloc_cluster(swap_info_struct*, swp_entry_t*)' [A] 'function swap_info_struct* swap_type_to_swap_info(int)' [A] 'function void swapcache_free_entries(swp_entry_t*, int)' [A] 'function int tcf_action_exec(sk_buff*, tc_action**, int, tcf_result*)' [A] 'function void tcf_exts_destroy(tcf_exts*)' [A] 'function int tcf_exts_dump(sk_buff*, tcf_exts*)' [A] 'function int tcf_exts_dump_stats(sk_buff*, tcf_exts*)' [A] 'function int tcf_exts_validate(net*, tcf_proto*, nlattr**, nlattr*, tcf_exts*, bool, bool, netlink_ext_ack*)' [A] 'function bool tcf_queue_work(rcu_work*, work_func_t)' [A] 'function int thermal_zone_unbind_cooling_device(thermal_zone_device*, int, thermal_cooling_device*)' [A] 'function int tracing_is_on()' [A] 'function int unregister_tcf_proto_ops(tcf_proto_ops*)' [A] 'function usb_role usb_role_switch_get_role(usb_role_switch*)' 2 Added variables: [A] 'tracepoint __tracepoint_android_vh_killed_process' [A] 'void* high_memory' Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Ia4a34d9aa1929161e2587529f700f49c31b4c2cc
…
…
…
…
…
…
…
How do I submit patches to Android Common Kernels
-
BEST: Make all of your changes to upstream Linux. If appropriate, backport to the stable releases. These patches will be merged automatically in the corresponding common kernels. If the patch is already in upstream Linux, post a backport of the patch that conforms to the patch requirements below.
- Do not send patches upstream that contain only symbol exports. To be considered for upstream Linux,
additions of
EXPORT_SYMBOL_GPL()require an in-tree modular driver that uses the symbol -- so include the new driver or changes to an existing driver in the same patchset as the export. - When sending patches upstream, the commit message must contain a clear case for why the patch is needed and beneficial to the community. Enabling out-of-tree drivers or functionality is not not a persuasive case.
- Do not send patches upstream that contain only symbol exports. To be considered for upstream Linux,
additions of
-
LESS GOOD: Develop your patches out-of-tree (from an upstream Linux point-of-view). Unless these are fixing an Android-specific bug, these are very unlikely to be accepted unless they have been coordinated with kernel-team@android.com. If you want to proceed, post a patch that conforms to the patch requirements below.
Common Kernel patch requirements
- All patches must conform to the Linux kernel coding standards and pass
script/checkpatch.pl - Patches shall not break gki_defconfig or allmodconfig builds for arm, arm64, x86, x86_64 architectures (see https://source.android.com/setup/build/building-kernels)
- If the patch is not merged from an upstream branch, the subject must be tagged with the type of patch:
UPSTREAM:,BACKPORT:,FROMGIT:,FROMLIST:, orANDROID:. - All patches must have a
Change-Id:tag (see https://gerrit-review.googlesource.com/Documentation/user-changeid.html) - If an Android bug has been assigned, there must be a
Bug:tag. - All patches must have a
Signed-off-by:tag by the author and the submitter
Additional requirements are listed below based on patch type
Requirements for backports from mainline Linux: UPSTREAM:, BACKPORT:
- If the patch is a cherry-pick from Linux mainline with no changes at all
- tag the patch subject with
UPSTREAM:. - add upstream commit information with a
(cherry picked from commit ...)line - Example:
- if the upstream commit message is
- tag the patch subject with
important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
- then Joe Smith would upload the patch for the common kernel as
UPSTREAM: important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
Bug: 135791357
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
(cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
Signed-off-by: Joe Smith <joe.smith@foo.org>
- If the patch requires any changes from the upstream version, tag the patch with
BACKPORT:instead ofUPSTREAM:.- use the same tags as
UPSTREAM: - add comments about the changes under the
(cherry picked from commit ...)line - Example:
- use the same tags as
BACKPORT: important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
Bug: 135791357
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
(cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
[joe: Resolved minor conflict in drivers/foo/bar.c ]
Signed-off-by: Joe Smith <joe.smith@foo.org>
Requirements for other backports: FROMGIT:, FROMLIST:,
- If the patch has been merged into an upstream maintainer tree, but has not yet
been merged into Linux mainline
- tag the patch subject with
FROMGIT: - add info on where the patch came from as
(cherry picked from commit <sha1> <repo> <branch>). This must be a stable maintainer branch (not rebased, so don't uselinux-nextfor example). - if changes were required, use
BACKPORT: FROMGIT: - Example:
- if the commit message in the maintainer tree is
- tag the patch subject with
important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
- then Joe Smith would upload the patch for the common kernel as
FROMGIT: important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
Bug: 135791357
(cherry picked from commit 878a2fd9de10b03d11d2f622250285c7e63deace
https://git.kernel.org/pub/scm/linux/kernel/git/foo/bar.git test-branch)
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
Signed-off-by: Joe Smith <joe.smith@foo.org>
- If the patch has been submitted to LKML, but not accepted into any maintainer tree
- tag the patch subject with
FROMLIST: - add a
Link:tag with a link to the submittal on lore.kernel.org - add a
Bug:tag with the Android bug (required for patches not accepted into a maintainer tree) - if changes were required, use
BACKPORT: FROMLIST: - Example:
- tag the patch subject with
FROMLIST: important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
Bug: 135791357
Link: https://lore.kernel.org/lkml/20190619171517.GA17557@someone.com/
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
Signed-off-by: Joe Smith <joe.smith@foo.org>
Requirements for Android-specific patches: ANDROID:
- If the patch is fixing a bug to Android-specific code
- tag the patch subject with
ANDROID: - add a
Fixes:tag that cites the patch with the bug - Example:
- tag the patch subject with
ANDROID: fix android-specific bug in foobar.c
This is the detailed description of the important fix
Fixes: 1234abcd2468 ("foobar: add cool feature")
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
Signed-off-by: Joe Smith <joe.smith@foo.org>
- If the patch is a new feature
- tag the patch subject with
ANDROID: - add a
Bug:tag with the Android bug (required for android-specific features)
- tag the patch subject with
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%