Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Oct 3, 2014
  1. @daveyoung @mfleming

    lib: Add a generic cmdline parse function parse_option_str

    daveyoung authored mfleming committed
    There should be a generic function to parse params like a=b,c
    Adding parse_option_str in lib/cmdline.c which will return true
    if there's specified option set in the params.
    
    Also updated efi=old_map parsing code to use the new function
    
    Signed-off-by: Dave Young <dyoung@redhat.com>
    Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Commits on Aug 7, 2014
  1. lib/cmdline.c: add size unit t/p/e to memparse

    Gui Hecheng authored committed
    For modern filesystems such as btrfs, t/p/e size level operations are
    common.  add size unit t/p/e parsing to memparse
    
    Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
    Acked-by: David Rientjes <rientjes@google.com>
    Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Jan 24, 2014
  1. @felipec

    lib/cmdline.c: declare exported symbols immediately

    felipec authored committed
    WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
    +EXPORT_SYMBOL(memparse);
    
    WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
    +EXPORT_SYMBOL(get_option);
    
    WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
    +EXPORT_SYMBOL(get_options);
    
    Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
    Cc: Levente Kurusa <levex@linux.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  2. @felipec

    lib/cmdline.c: fix style issues

    felipec authored committed
    WARNING: space prohibited between function name and open parenthesis '('
    +int get_option (char **str, int *pint)
    
    WARNING: space prohibited between function name and open parenthesis '('
    +	*pint = simple_strtol (cur, str, 0);
    
    ERROR: trailing whitespace
    + $
    
    WARNING: please, no spaces at the start of a line
    + $
    
    WARNING: space prohibited between function name and open parenthesis '('
    +		res = get_option ((char **)&str, ints + i);
    
    Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Mar 7, 2012
  1. lib: reduce the use of module.h wherever possible

    Paul Gortmaker authored
    For files only using THIS_MODULE and/or EXPORT_SYMBOL, map
    them onto including export.h -- or if the file isn't even
    using those, then just delete the include.  Fix up any implicit
    include dependencies that were being masked by module.h along
    the way.
    
    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Commits on Jul 28, 2008
  1. @jsgf

    generic, memparse(): constify argument

    jsgf authored Ingo Molnar committed
    memparse()'s first argument can be const, so it should be.
    
    Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
Commits on Jul 25, 2008
  1. @rpjday

    lib: allow memparse() to accept a NULL and ignorable second parm

    rpjday authored committed
    Extend memparse() to allow the caller to use a NULL second parameter, which
    would represent no interest in returning the address of the end of the parsed
    string.
    
    In numerous cases, callers invoke memparse() to parse a possibly-suffixed
    string (such as "64K" or "2G" or whatever) and define a character pointer to
    accept the end pointer being returned by memparse() even though they have no
    interest in it and promptly throw it away.
    
    This (backward-compatible) enhancement allows callers to use NULL in the cases
    where they just don't care about getting back that end pointer.
    
    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Feb 11, 2007
  1. [PATCH] Numerous fixes to kernel-doc info in source files.

    Robert P. J. Day authored Linus Torvalds committed
    A variety of (mostly) innocuous fixes to the embedded kernel-doc content in
    source files, including:
    
      * make multi-line initial descriptions single line
      * denote some function names, constants and structs as such
      * change erroneous opening '/*' to '/**' in a few places
      * reword some text for clarity
    
    Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
    Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Dec 7, 2006
  1. [PATCH] get_options to allow a hypenated range for isolcpus

    Derek Fults authored Linus Torvalds committed
    This allows a hyphenated range of positive numbers in the string passed
    to command line helper function, get_options.
    
    Currently the command line option "isolcpus=" takes as its argument a
    list of cpus.
    
    Format: <cpu number>,...,<cpu number>
    Valid values of <cpu_number>  include all cpus, 0 to "number of CPUs in
    system - 1". This can get extremely long when isolating the majority of
    cpus on a large system.  The kernel isolcpus code would not need any
    changing to use this feature.  To use it, the change would be in the
    command line format for 'isolcpus='
    Format:
    <cpu number>,...,<cpu number>
    or
    <cpu number>-<cpu number>  (must be a positive range in ascending
    order.)
    or a mixture
    <cpu number>,...,<cpu number>-<cpu number>
    
    Signed-off-by: Derek Fults <dfults@sgi.com>
    Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Commits on Apr 16, 2005
  1. Linux-2.6.12-rc2

    Linus Torvalds authored
    Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.
    
    Let it rip!
Something went wrong with that request. Please try again.