Skip to content

false failure in parsing kernel config #1

@Shea690901

Description

@Shea690901

Just tested kcheck and found one bug:
I'm using linux 6.1.11 and I've got an option:
CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5"
regardless if I let it stand as is or put a # in front of the line kcheck bails out with:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.10/kcheck", line 33, in <module>
    sys.exit(load_entry_point('kcheck==0.0.2', 'console_scripts', 'kcheck')())
  File "/usr/lib/python3.10/site-packages/kcheck/command.py", line 107, in main
    return kcheck.checker.check_config(args.config, args.kernel)
  File "/usr/lib/python3.10/site-packages/kcheck/checker.py", line 29, in check_config
    kernel_symbols = read_kernel_config(kernel_config)
  File "/usr/lib/python3.10/site-packages/kcheck/checker.py", line 182, in read_kernel_config
    sym, value = line.split('=')
ValueError: too many values to unpack (expected 2)

As soon as I completely remove this line kcheck works as expected...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions