Home
last modified time | relevance | path

Searched +full:check +full:- +full:patch (Results 1 – 25 of 373) sorted by relevance

12345678910>>...15

/linux/drivers/gpu/drm/ci/
H A Dcheck-patch.py2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # check-patch.py: run checkpatch.pl across all commits in a branch
6 # Based on qemu/.gitlab-ci.d/check-patch.py
22 subprocess.call(["git", "remote", "remove", "check-patch"], stdout=subprocess.DEVNULL, stderr=subpr…
23 subprocess.check_call(["git", "remote", "add", "check-patch", repourl])
24 subprocess.check_call(["git", "fetch", "check-patch", os.environ["CI_MERGE_REQUEST_TARGET_BRANCH_NA…
28 ancestor = subprocess.check_output(["git", "merge-base",
29 … "check-patch/%s" % os.environ["CI_MERGE_REQUEST_TARGET_BRANCH_NAME"], "HEAD"],
34 log = subprocess.check_output(["git", "log", "--format=%H %s",
38 subprocess.check_call(["git", "remote", "rm", "check-patch"])
[all …]
H A Dstatic-checks.yml1 check-patch:
3 - .build
4 - .use-debian/x86_64_build
6 - drivers/gpu/drm/ci/check-patch.py
10 - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
/linux/scripts/
H A Dpatch-kernel2 # SPDX-License-Identifier: GPL-2.0
4 # usage: patch-kernel [ sourcedir [ patchdir [ stopversion ] [ -acxx ] ] ]
5 # The source directory defaults to /usr/src/linux, and the patch
8 # scripts/patch-kernel . ..
11 # scripts/patch-kernel . .. -ac
12 # Get the latest Linux kernel and patch it with the latest ac patch
13 # scripts/patch-kernel . .. 2.4.9
15 # scripts/patch-kernel . .. 2.4.9 -ac
17 # scripts/patch-kernel . .. 2.4.9 -ac11
18 # Gets 2.4.9 with ac patch ac11
[all …]
H A Dcoccicheck2 # SPDX-License-Identifier: GPL-2.0
5 # Read Documentation/dev-tools/coccinelle.rst
8 # version 1.0.0-rc11.
10 DIR="$(dirname $(readlink -f $0))/.."
13 if [ ! -x "$SPATCH" ]; then
18 SPATCH_VERSION=$($SPATCH --version | head -1 | awk '{print $3}')
21 $SPATCH --help | grep -e "--jobs" > /dev/null && USE_JOBS="yes"
26 if [ -n "$V" -a "$V" != "0" ]; then
32 FLAGS="--very-quiet"
42 …occicheck MODE=report DEBUG_FILE="all.err" SPFLAGS="--profile --show-trying" M=./drivers/mfd/arizo…
[all …]
/linux/kernel/livepatch/
H A Dstate.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * system_state.c - State of the system modified by livepatches
15 #define klp_for_each_state(patch, state) \ argument
16 for (state = patch->states; state && state->id; state++)
19 * klp_get_state() - get information about system state modified by
20 * the given patch
21 * @patch: livepatch that modifies the given system state
24 * Checks whether the given patch modifies the given system state.
26 * The function can be called either from pre/post (un)patch
31 struct klp_state *klp_get_state(struct klp_patch *patch, unsigned long id) in klp_get_state() argument
[all …]
H A Dtransition.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * transition.c - Kernel Live Patching transition functions
5 * Copyright (C) 2015-2016 Josh Poimboeuf <jpoimboe@redhat.com>
14 #include "patch.h"
32 * schedule(). This helps CPU-bound kthreads get patched.
65 * We allow to patch als
455 struct klp_patch *patch; klp_try_complete_transition() local
573 klp_init_transition(struct klp_patch * patch,int state) klp_init_transition() argument
729 struct klp_patch *patch; klp_force_transition() local
[all...]
/linux/Documentation/dev-tools/
H A Dcoccinelle.rst14 tree-wide patches and detection of problematic programming patterns.
17 ------------------
20 which are provided by Coccinelle version 1.0.0-rc11 and above.
27 - Debian
28 - Fedora
29 - Ubuntu
30 - OpenSUSE
31 - Arch Linux
32 - NetBSD
33 - FreeBSD
[all …]
/linux/tools/testing/selftests/livepatch/
H A Dtest-ftrace.sh2 # SPDX-License-Identifier: GPL-2.0
12 # - turn ftrace_enabled OFF and verify livepatches can't load
13 # - turn ftrace_enabled ON and verify livepatch can load
14 # - verify that ftrace_enabled can't be turned OFF while a livepatch is loaded
24 echo -e "FAIL\n\n"
28 # Check that ftrace could not get disabled when a livepatch is enabled
29 set_ftrace_enabled --fail 0
31 echo -e "FAIL\n\n"
39 livepatch: enabling patch '$MOD_LIVEPATCH'
41 livepatch: failed to register ftrace handler for function 'cmdline_proc_show' (-16)
[all …]
H A Dtest-livepatch.sh2 # SPDX-License-Identifier: GPL-2.0
15 # - load a livepatch that modifies the output from /proc/cmdline and
17 # - unload the livepatch and make sure the patch was removed
24 echo -e "FAIL\n\n"
32 echo -e "FAIL\n\n"
37 livepatch: enabling patch '$MOD_LIVEPATCH1'
50 # - load a livepatch that modifies the output from /proc/cmdline and
52 # - load another livepatch and verify that both livepatches are active
53 # - unload the second livepatch and verify that the first is still active
54 # - unload the first livepatch and verify none are active
[all …]
H A Dtest-sysfs.sh2 # SPDX-License-Identifier: GPL-2.0
13 # - load a livepatch and verifies the sysfs entries work as expected
19 check_sysfs_rights "$MOD_LIVEPATCH" "" "drwxr-xr-x"
20 check_sysfs_rights "$MOD_LIVEPATCH" "enabled" "-rw-r--r--"
22 check_sysfs_rights "$MOD_LIVEPATCH" "force" "--w-------"
23 check_sysfs_rights "$MOD_LIVEPATCH" "replace" "-r--r--r--"
24 check_sysfs_rights "$MOD_LIVEPATCH" "stack_order" "-r--r--r--"
26 check_sysfs_rights "$MOD_LIVEPATCH" "transition" "-r--r--r--"
28 check_sysfs_rights "$MOD_LIVEPATCH" "vmlinux/patched" "-r--r--r--"
36 livepatch: enabling patch '$MOD_LIVEPATCH'
[all …]
/linux/arch/x86/kernel/cpu/microcode/
H A Damd.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Copyright (C) 2008-2011 Advanced Micro Devices Inc.
9 * 2013-2018 Borislav Petkov <bp@alien8.de>
125 * microcode patch we found to match.
135 * Microcode patch container file is prepended to the initrd in cpio
146 * 2. To match which patches to load because the patch revision ID
166 if (patch_id == pd->patch_id) in cmp_id()
168 else if (patch_id < pd->patch_id) in cmp_id()
169 return -1; in cmp_id()
245 …pr_info("You should not be seeing this. Please send the following couple of lines to x86-<at>-kern… in need_sha_check()
[all …]
/linux/sound/synth/emux/
H A Dsoundfont.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Copyright (c) 1999-2000 Takashi Iwai <tiwai@suse.de>
64 * close the patch if the patch was opened by this client.
69 scoped_guard(spinlock_irqsave, &sflist->lock) { in snd_soundfont_close_check()
70 if (sflist->open_client != client) in snd_soundfont_close_check()
78 * Deal with a soundfont patch. Any driver could use these routines
90 struct soundfont_patch_info patch; in snd_soundfont_load() local
93 if (count < (long)sizeof(patch)) { in snd_soundfont_load()
94 dev_err(card->dev, "patch record too small %ld\n", count); in snd_soundfont_load()
95 return -EINVAL; in snd_soundfont_load()
[all …]
/linux/Documentation/process/
H A Dhowto.rst6 This is the be-all, end-all document on this topic. It contains
18 ------------
27 The kernel is written mostly in C, with some architecture-dependent
30 you plan to do low-level development for that architecture. Though they
34 - "The C Programming Language" by Kernighan and Ritchie [Prentice Hall]
35 - "Practical C Programming" by Steve Oualline [O'Reilly]
36 - "C: A Reference Manual" by Harbison and Steele [Prentice Hall]
46 definitive reference for them. Please check the gcc info pages (`info
60 ------------
65 described in :ref:`Documentation/process/license-rules.rst <kernel_licensing>`.
[all …]
H A Dbackporting.rst1 .. SPDX-License-Identifier: GPL-2.0
18 merging branches, or resolving conflicts in their day-to-day work, so
24 This document aims to be a comprehensive, step-by-step guide to
27 Applying the patch to a tree
30 Sometimes the patch you are backporting already exists as a git commit,
31 in which case you just cherry-pick it directly using
32 ``git cherry-pick``. However, if the patch comes from an email, as it
37 quite picky about the patch applying perfectly to your source tree. In
39 edit the patch to make it apply.
42 where the patch applies cleanly and *then* cherry-pick it over to your
[all …]
/linux/Documentation/scsi/
H A DChangeLog.lpfc2 * Please read the associated RELEASE-NOTES file !!!
8 * Fixed build warning for 2.6.12-rc2 kernels: mempool_alloc now
11 * Merged patch from Christoph Hellwig <hch@lst.de>: split helpers
19 * Removed FC_TRANSPORT_PATCHESxxx defines. They're in 2.6.12-rc1.
26 * Added PCI ID for LP10000-S.
31 * Zero-out response sense length in lpfc_scsi_prep_cmnd to prevent
33 - was causing spurious 0710 messages.
50 * Changed a few lines from patch submitted by Christoph Hellwig
53 * Merged patch from Christoph Hellwig (3/19): some misc patches
55 - stop using volatile. if you need special ordering use memory
[all …]
/linux/scripts/coccinelle/misc/
H A Dswap.cocci1 // SPDX-License-Identifier: GPL-2.0-only
3 /// Check for opencoded swap() implementation.
7 // Options: --no-includes --include-headers
12 virtual patch
17 @rvar depends on !patch@
37 @r depends on !patch@
47 @rpvar depends on patch@
54 - T tmp;
56 - T tmp = 0;
58 - T *tmp = NULL;
[all …]
H A Dminmax.cocci1 // SPDX-License-Identifier: GPL-2.0-only
3 /// Check for opencoded min(), max() implementations.
9 // Options: --no-includes --includ
[all...]
/linux/drivers/nfc/fdp/
H A Dfdp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* -------------------------------------------------------------------------
3 * Copyright (C) 2014-2016, Intel Corporation
5 * -------------------------------------------------------------------------
92 r = nci_core_conn_create(info->ndev, FDP_PATCH_CONN_DEST, 1, in fdp_nci_create_conn()
127 delta = 24 * fc - nd * clock_freq; in fdp_nci_set_clock()
148 info->setup_patch_sent = 1; in fdp_nci_send_patch_cb()
149 wake_up(&info->setup_wq); in fdp_nci_send_patch_cb()
157 * send the patch end message.
163 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_set_data_pkt_counter()
[all …]
/linux/Documentation/translations/zh_TW/process/
H A Dsubmitting-patches.rst1 .. SPDX-License-Identifier: GPL-2.0-or-later
3 .. include:: ../disclaimer-zh_TW.rst
7 :Original: Documentation/process/submitting-patches.rst
10 - 鍾宇 TripleX Chung <xxx.phy@gmail.com>
11 - 時奎亮 Alex Shi <alexs@kernel.org>
12 - 吳想成 Wu XiangCheng <bobwxc@email.cn>
15 - 李陽 Li Yang <leoyang.li@nxp.com>
16 - 王聰 Wang Cong <xiyou.wangcong@gmail.com>
17 - 胡皓文 Hu Haowen <2023002089@link.tyut.edu.cn>
28 參見: Documentation/translations/zh_CN/process/development-process.rst 。
[all …]
/linux/Documentation/translations/zh_CN/process/
H A Dsubmitting-patches.rst1 .. SPDX-License-Identifier: GPL-2.0-or-later
3 .. include:: ../disclaimer-zh_CN.rst
7 :Original: Documentation/process/submitting-patches.rst
10 - 钟宇 TripleX Chung <xxx.phy@gmail.com>
11 - 时奎亮 Alex Shi <alexs@kernel.org>
12 - 吴想成 Wu XiangCheng <bobwxc@email.cn>
15 - 李阳 Li Yang <leoyang.li@nxp.com>
16 - 王聪 Wang Cong <xiyou.wangcong@gmail.com>
27 参见: Documentation/translations/zh_CN/process/development-process.rst 。
28 Documentation/translations/zh_CN/process/submit-checklist.rst 给出了一系列
[all …]
/linux/tools/lib/bpf/
H A Dlibbpf_probes.c1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
26 * Ubuntu 5.4.0-12.15-generic 5.4.8
34 __u32 major, minor, patch; in get_ubuntu_kernel_version() local
45 ret = fscanf(f, "%*s %*s %u.%u.%u\n", &major, &minor, &patch); in get_ubuntu_kernel_version()
50 return KERNEL_VERSION(major, minor, patch); in get_ubuntu_kernel_version()
65 __u32 major, minor, patch; get_debian_kernel_version() local
82 __u32 major, minor, patch, version; get_kernel_version() local
[all...]
/linux/samples/livepatch/
H A Dlivepatch-shadow-fix2.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * livepatch-shadow-fix2.c - Shadow variables, livepatch demo
10 * -------
12 * Adds functionality to livepatch-shadow-mod's in-flight data
15 * per-data-structure counter, creating the counter if needed.
19 * -----
22 * section of livepatch-shadow-mod.c.
46 * Patch: handle in-flight dummy structures, if they do not in livepatch_fix2_dummy_check()
56 return time_after(jiffies, d->jiffies_expire); in livepatch_fix2_dummy_check()
74 /* Patch: copy the memory leak patch from the fix1 module. */ in livepatch_fix2_dummy_free()
[all …]
/linux/Documentation/translations/it_IT/process/
H A Dstable-kernel-rules.rst1 .. include:: ../disclaimer-ita.rst
3 :Original: :ref:`Documentation/process/stable-kernel-rules.rst <stable_kernel_rules>`
8 Tutto quello che volevate sapere sui rilasci -stable di Linux
11 Regole sul tipo di patch che vengono o non vengono accettate nei sorgenti
12 "-stable":
14 - Questa patch o una equivalente deve esistere già nei sorgenti principali di
16 - Ovviamente dev'essere corretta e verificata.
17 - Non dev'essere più grande di 100 righe, incluso il contesto.
18 - Deve rispettare le regole scritte in
19 :ref:`Documentation/translations/it_IT/process/submitting-patches.rst <it_submittingpatches>`
[all …]
/linux/scripts/coccinelle/free/
H A Difnullfree.cocci1 // SPDX-License-Identifier: GPL-2.0-only
2 /// NULL check before some freeing functions is not needed.
5 /// "kfree(NULL) is safe this check is probably not required"
9 // Comments: -
10 // Options: --no-includes --include-headers
12 virtual patch
17 @r2 depends on patch@
20 - if (E != NULL)
60 cocci.print_main("NULL check before that freeing function is not needed", p)
66 msg = "WARNING: NULL check before some freeing functions is not needed."
H A Difnulldev_put.cocci1 // SPDX-License-Identifier: GPL-2.0-only
3 /// NULL check before dev_{put, hold} functions is not needed.
8 // Comments: -
9 // Options: --no-includes --include-headers
12 virtual patch
17 @r2 depends on patch@
20 - if (E != NULL)
48 cocci.print_main("NULL check before dev_{put, hold} functions is not needed", p)
54 msg = "WARNING: NULL check before dev_{put, hold} functions is not needed."

12345678910>>...15