1. 24 3月, 2012 11 次提交
  2. 08 2月, 2012 1 次提交
    • J
      checkpatch: Warn on code with 6+ tab indentation · 8eef05dd
      Joe Perches 提交于
      Overly indented code should be refactored.
      
      Suggest refactoring excessive indentation of of
      if/else/for/do/while/switch statements.
      
      For example:
      
      $ cat t.c
      #include <stdio.h>
      #include <stdlib.h>
      
      int main(int argc, char **argv)
      {
      
      	if (1)
      		if (2)
      			if (3)
      				if (4)
      					if (5)
      						if (6)
      							if (7)
      								if (8)
      									;
      	return 0;
      }
      
      $ ./scripts/checkpatch.pl -f t.c
      WARNING: Too many leading tabs - consider code refactoring
      #12: FILE: t.c:12:
      +						if (6)
      
      WARNING: Too many leading tabs - consider code refactoring
      #13: FILE: t.c:13:
      +							if (7)
      
      WARNING: Too many leading tabs - consider code refactoring
      #14: FILE: t.c:14:
      +								if (8)
      
      total: 0 errors, 3 warnings, 17 lines checked
      
      t.c has style problems, please review.
      
      If any of these errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8eef05dd
  3. 11 1月, 2012 15 次提交
  4. 01 11月, 2011 2 次提交
  5. 15 9月, 2011 1 次提交
  6. 31 8月, 2011 1 次提交
    • A
      script/checkpatch.pl: warn about deprecated use of EXTRA_{A,C,CPP,LD}FLAGS · c68e5878
      Arnaud Lacombe 提交于
      Usage of these flags has been deprecated for nearly 4 years by:
      
          commit f77bf014
          Author: Sam Ravnborg <sam@neptun.(none)>
          Date:   Mon Oct 15 22:25:06 2007 +0200
      
              kbuild: introduce ccflags-y, asflags-y and ldflags-y
      
      Moreover, these flags (at least EXTRA_CFLAGS) have been documented for command
      line use. By default, gmake(1) do not override command line setting, so this is
      likely to result in build failure or unexpected behavior.
      
      Warn about their introduction in Makefile or Kbuild files.
      
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Andy Whitcroft <apw@canonical.com>
      Signed-off-by: NArnaud Lacombe <lacombar@gmail.com>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      c68e5878
  7. 26 8月, 2011 1 次提交
  8. 26 7月, 2011 7 次提交
  9. 16 6月, 2011 1 次提交