Skip to content

Commit

Permalink
python: lib: kernel: Drop -Wstring-compare patch
Browse files Browse the repository at this point in the history
This has been resolved with
https://git.kernel.org/linus/24f5bb9f24ad80da6c6f83ba6124b5188c5384b2.

Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Mar 19, 2024
1 parent aefcbce commit 60a8dca
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions python/lib/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import os
from pathlib import Path
import re
import shutil
import subprocess
import sys
Expand Down Expand Up @@ -41,17 +40,6 @@ def prepare_source(base_name, base_ref='origin/master'):
subprocess.run(['git', 'remote', 'update', '--prune', 'origin'], check=True, cwd=source_folder)
subprocess.run(['git', 'reset', '--hard', base_ref], check=True, cwd=source_folder)

if re.search(
r'\(src\) != __data_offsets.dst##_ptr_',
source_folder.joinpath('include/trace/stages/stage6_event_callback.h').read_text(
encoding='utf-8')):
# tracing: Ignore -Wstring-compare with diagnostic macros
patches.append(
Path(
os.environ['NVME_FOLDER'],
'data/tmp-patches/20240319_nathan_tracing_ignore_wstring_compare_with_diagnostic_macros.patch',
))

# pylint: disable=subprocess-run-check
try:
common_kwargs = {'check': True, 'cwd': source_folder, 'text': True}
Expand Down

0 comments on commit 60a8dca

Please sign in to comment.