02 Jul, 2021

1 commit

  • kernel.h is being used as a dump for all kinds of stuff for a long time.
    Here is the attempt to start cleaning it up by splitting out kstrtox() and
    simple_strtox() helpers.

    At the same time convert users in header and lib folders to use new
    header. Though for time being include new header back to kernel.h to
    avoid twisted indirected includes for existing users.

    [andy.shevchenko@gmail.com: fix documentation references]
    Link: https://lkml.kernel.org/r/20210615220003.377901-1-andy.shevchenko@gmail.com

    Link: https://lkml.kernel.org/r/20210611185815.44103-1-andriy.shevchenko@linux.intel.com
    Signed-off-by: Andy Shevchenko
    Acked-by: Jonathan Cameron
    Cc: Francis Laniel
    Cc: Randy Dunlap
    Cc: Kars Mulder
    Cc: Trond Myklebust
    Cc: Anna Schumaker
    Cc: "J. Bruce Fields"
    Cc: Chuck Lever
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Shevchenko
     

07 May, 2021

1 commit

  • Mark match_uint() as kernel-doc notation since it is already fully
    annotated as such. Use % prefix on constants in kernel-doc comments.
    Convert function return descriptions to use the "Return:" kernel-doc
    notation.

    Link: https://lkml.kernel.org/r/20210407034514.5651-1-rdunlap@infradead.org
    Signed-off-by: Randy Dunlap
    Cc: Alexander Viro
    Cc: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

04 Feb, 2021

2 commits


19 Jun, 2019

1 commit

  • Based on 2 normalized pattern(s):

    this source code is licensed under the gnu general public license
    version 2 see the file copying for more details

    this source code is licensed under general public license version 2
    see

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 52 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Allison Randal
    Reviewed-by: Alexios Zavras
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190602204653.449021192@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

31 Oct, 2018

3 commits


06 Dec, 2016

1 commit


24 Jan, 2014

2 commits


22 Feb, 2013

1 commit


06 Oct, 2012

1 commit

  • The result of converting an integer value to another signed integer type
    that's unable to represent the original value is implementation defined.
    (See notes in section 6.3.1.3 of the C standard.)

    In match_number(), the result of simple_strtol() (which returns type long)
    is assigned to a value of type int.

    Instead, handle the result of simple_strtol() in a well-defined way, and
    return -ERANGE if the result won't fit in the int variable used to hold
    the parsed result.

    No current callers pay attention to the particular error value returned,
    so this additional return code shouldn't do any harm.

    [akpm@linux-foundation.org: coding-style tweaks]
    Signed-off-by: Alex Elder
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alex Elder
     

08 Mar, 2012

1 commit


31 Mar, 2011

1 commit


27 Oct, 2010

1 commit


16 Dec, 2009

1 commit

  • No functional change. Cache strlen() result to avoid recalculating it up
    to 3 times on the worst case.

    Reduces code size a little by 32 bytes:
    text data bss dec hex filename
    1385 0 0 1385 569 lib/parser.o-BEFORE
    1353 0 0 1353 549 lib/parser.o-AFTER

    Signed-off-by: André Goddard Rosa
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    André Goddard Rosa
     

14 Oct, 2008

1 commit

  • This is a much better version of a previous patch to make the parser
    tables constant. Rather than changing the typedef, we put the "const" in
    all the various places where its required, allowing the __initconst
    exception for nfsroot which was the cause of the previous trouble.

    This was posted for review some time ago and I believe its been in -mm
    since then.

    Signed-off-by: Steven Whitehouse
    Cc: Alexander Viro
    Signed-off-by: Linus Torvalds

    Steven Whitehouse
     

15 May, 2008

1 commit

  • match_strcpy() is a somewhat creepy function: the caller needs to make sure
    that the destination buffer is big enough, and when he screws up or
    forgets, match_strcpy() happily overruns the buffer.

    There's exactly one customer: v9fs_parse_options(). I believe it currently
    can't overflow its buffer, but that's not exactly obvious.

    The source string is a substing of the mount options. The kernel silently
    truncates those to PAGE_SIZE bytes, including the terminating zero. See
    compat_sys_mount() and do_mount().

    The destination buffer is obtained from __getname(), which allocates from
    name_cachep, which is initialized by vfs_caches_init() for size PATH_MAX.

    We're safe as long as PATH_MAX
    Cc: Latchesar Ionkov
    Cc: Jim Meyering
    Cc: "Randy.Dunlap"
    Signed-off-by: Andrew Morton
    Signed-off-by: Eric Van Hensbergen

    Markus Armbruster
     

03 May, 2007

1 commit


17 Apr, 2005

1 commit

  • 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!

    Linus Torvalds