Checkpatch.pl throws an error for an object file
I have ran checkpatch.pl on drivers/staging/rtl8192e/ to find any drivers that need modification, and I received the following error:
drivers/staging/rtl8192e/dot11d.o
---------------------------------
ERROR: Does not appear to be a unified-diff format patch
all other files checked within the rtl8192e folder had no formatting errors reported by the script. My question is why checkpatch would throw a formatting error for object code?
Thanks,
Jeremiah John
Hi Jeremiah,
Quoted 3 lines · Jeremiah John
I have ran checkpatch.pl on
drivers/staging/rtl8192e/to find any drivers that need modification, and I received the following error:
drivers/staging/rtl8192e/dot11d.o
you are passing the wrong file, you should run checkpatch on the source code, not on the binary. Try with the .c file:
./scripts/checkpatch.pl drivers/staging/rtl8192e/dot11d.c
Andi
Quoted 7 lines
---------------------------------
ERROR: Does not appear to be a unified-diff format patchall other files checked within the rtl8192e folder had no formatting errors reported by the script. My question is why checkpatch would throw a formatting error for object code?
Thanks,
Jeremiah John
Quoted 7 lines · Jeremiah John
I have ran checkpatch.pl on
drivers/staging/rtl8192e/to find any drivers that need modification, and I received the following error:
drivers/staging/rtl8192e/dot11d.o
---------------------------------
ERROR: Does not appear to be a unified-diff format patchall other files checked within the rtl8192e folder had no formatting errors reported by the script. My question is why checkpatch would throw a formatting error for object code?
I ran checkpatch on all the .c files in drivers/staging with thf following command line:
find . -type f -name "*c" -exec ../../scripts/checkpatch.pl -f {} \; > & checks
I found issues in rtl8192e.
Note that one could extend the above command line to include header files too.
Did you try compiling and booting the kernel already?
julia