aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorShyam Saini <shyamsaini@linux.microsoft.com>2025-02-27 10:49:28 -0800
committerPetr Pavlu <petr.pavlu@suse.com>2025-04-16 14:54:35 +0200
commit1c7777feb0e2f5925908c489513656ebb443a699 (patch)
tree6c6d919281d4eacb84447da634e6211dd26e1fee /tools/testing/selftests/bpf/prog_tests/autoload.c
parentkernel: param: rename locate_module_kobject (diff)
downloadlinux-1c7777feb0e2f5925908c489513656ebb443a699.tar.gz
linux-1c7777feb0e2f5925908c489513656ebb443a699.zip
kernel: refactor lookup_or_create_module_kobject()
In the unlikely event of the allocation failing, it is better to let the machine boot with a not fully populated sysfs than to kill it with this BUG_ON(). All callers are already prepared for lookup_or_create_module_kobject() returning NULL. This is also preparation for calling this function from non __init code, where using BUG_ON for allocation failure handling is not acceptable. Since we are here, also start using IS_ENABLED instead of #ifdef construct. Suggested-by: Thomas Weißschuh <linux@weissschuh.net> Suggested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Shyam Saini <shyamsaini@linux.microsoft.com> Link: https://lore.kernel.org/r/20250227184930.34163-3-shyamsaini@linux.microsoft.com Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
lass='insertions'>+2844 2020-03-16Git 2.26-rc2v2.26.0-rc2Junio C Hamano2-5/+4 2020-03-16l10n: vi(4839t): Updated Vietnamese translation for v2.26.0Tran Ngoc Quan1-2557/+2975 2020-03-16l10n: vi: fix translation + grammarĐoàn Trần Công Danh1-14/+14 2020-03-15prefix_path: show gitdir if worktree unavailableEmily Shaffer3-4/+50 2020-03-15l10n: zh_TW.po: v2.26.0 round 2 (0 untranslated)Yi-Jyun1-388/+289 2020-03-15l10n: zh_TW.po: v2.26.0 round 1 (11 untranslated)Yi-Jyun1-2604/+2823 2020-03-14git-gui--askpass: coerce answers to UTF-8 on WindowsLuke Bonanomi1-0/+5 2020-03-13t6022, t6046: fix flaky files-are-updated checksElijah Newren2-23/+17 2020-03-12Hopefully the final batch before -rc2Junio C Hamano1-0/+21 2020-03-12fsck: detect gitmodules URLs with embedded newlinesJeff King2-2/+32 2020-03-12credential: detect unrepresentable values when parsing urlsJeff King3-4/+60 2020-03-12t/lib-credential: use test_i18ncmp to check stderrJeff King1-1/+1 2020-03-12credential: avoid writing values with newlinesJeff King2-0/+8 2020-03-12l10n: it.po: update the Italian translation for Git 2.26.0 round 2Alessandro Menti1-267/+297 2020-03-11l10n: es: 2.26.0 round#2Christopher Diaz Riveros1-2550/+2979 2020-03-12l10n: bg.po: Updated Bulgarian translation (4839t)Alexander Shopov1-242/+270 2020-03-12l10n: tr: v2.26.0 round 2Emir Sarı1-262/+284 2020-03-11l10n: fr : v2.26.0 rnd 2Jean-Noël Avila1-353/+308 2020-03-11git-rebase.txt: highlight backend differences with commit rewordingElijah Newren1-0/+10 2020-03-11sequencer: clear state upon dropping a become-empty commitElijah Newren2-0/+10 2020-03-11i18n: unmark a message in rebase.cJiang Xin1-1/+1 2020-03-11l10n: git.pot: v2.26.0 round 2 (7 new, 2 removed)Jiang Xin1-238/+260 2020-03-10l10n: tr: Add glossary for Turkish translationsEmir Sarı1-4/+87 2020-03-09l10n: sv.po: Update Swedish translation (4835t0f0u)Peter Krefting1-2379/+2764