Search Linux Wireless

Re: [PATCH] scripts: add macro_checker script to check unused parameters in macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2024-07-23 at 05:11 -0400, Julian Sun wrote:
> Hi,
> 
> Recently, I saw a patch[1] on the ext4 mailing list regarding
> the correction of a macro definition error. Jan mentioned
> that "The bug in the macro is a really nasty trap...".
> Because existing compilers are unable to detect
> unused parameters in macro definitions. This inspired me
> to write a script to check for unused parameters in
> macro definitions and to run it.
> 

checkpatch has a similar test:

https://lkml.kernel.org/r/20240507032757.146386-3-21cnbao@xxxxxxxxx

$ git log --format=email -1 b1be5844c1a0124a49a30a20a189d0a53aa10578

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux