02 Oct, 2016

2 commits

  • All the chunks of the patch apply to comments save the first one.

    Signed-off-by: Fernando Apesteguia
    Signed-off-by: Greg Kroah-Hartman

    Fernando Apesteguia
     
  • Check for attribute_group structures that are only passed as a second
    argument to the functions sysfs_remove_group and sysfs_create_group. As
    these arguments are constant so, attribute_group structures having this
    property can also be made constant.
    Done using coccinelle:

    @r1 disable optional_qualifier @
    identifier i;
    position p;
    @@
    static struct attribute_group i@p = {...};

    @ok1@
    identifier r1.i;
    position p;
    expression e1;
    @@
    (
    sysfs_remove_group(e1,&i@p)
    |
    sysfs_create_group(e1,&i@p)
    )

    @bad@
    position p!={r1.p,ok1.p};
    identifier r1.i;
    @@
    i@p

    @depends on !bad disable optional_qualifier@
    identifier r1.i;
    @@
    static
    +const
    struct attribute_group i={...};

    @depends on !bad disable optional_qualifier@
    identifier r1.i;
    @@
    +const
    struct attribute_group i;

    File size before:
    text data bss dec hex filename
    6248 1024 0 7272 1c68
    drivers/staging/dgnc/dgnc_sysfs.o

    File size after:
    text data bss dec hex filename
    6288 960 0 7248 1c50
    drivers/staging/dgnc/dgnc_sysfs.o

    Signed-off-by: Bhumika Goyal
    Acked-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Bhumika Goyal
     

27 Sep, 2016

11 commits


26 Sep, 2016

1 commit


20 Sep, 2016

1 commit

  • Instead of storing the return value of a function call into a variable and
    then returning it, we can club the two into a single return statement. This
    change was made using the following semantic patch by Coccinelle:

    @@
    local idexpression ret;
    expression e;
    @@

    -ret =
    +return
    e;
    -return ret;

    Signed-off-by: Rehas Sachdeva
    Signed-off-by: Greg Kroah-Hartman

    Rehas Sachdeva
     

18 Sep, 2016

1 commit


16 Sep, 2016

2 commits


12 Sep, 2016

2 commits


01 Sep, 2016

1 commit


21 Aug, 2016

1 commit


16 Aug, 2016

16 commits


21 May, 2016

1 commit

  • Pull staging and IIO driver updates from Greg KH:
    "Here's the big staging and iio driver update for 4.7-rc1.

    I think we almost broke even with this release, only adding a few more
    lines than we removed, which isn't bad overall given that there's a
    bunch of new iio drivers added.

    The Lustre developers seem to have woken up from their sleep and have
    been doing a great job in cleaning up the code and pruning unused or
    old cruft, the filesystem is almost readable :)

    Other than that, just a lot of basic coding style cleanups in the
    churn. All have been in linux-next for a while with no reported
    issues"

    * tag 'staging-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (938 commits)
    Staging: emxx_udc: emxx_udc: fixed coding style issue
    staging/gdm724x: fix "alignment should match open parenthesis" issues
    staging/gdm724x: Fix avoid CamelCase
    staging: unisys: rename misleading var ii with frag
    staging: unisys: visorhba: switch success handling to error handling
    staging: unisys: visorhba: main path needs to flow down the left margin
    staging: unisys: visorinput: handle_locking_key() simplifications
    staging: unisys: visorhba: fail gracefully for thread creation failures
    staging: unisys: visornic: comment restructuring and removing bad diction
    staging: unisys: fix format string %Lx to %llx for u64
    staging: unisys: remove unused struct members
    staging: unisys: visorchannel: correct variable misspelling
    staging: unisys: visorhba: replace functionlike macro with function
    staging: dgnc: Need to check for NULL of ch
    staging: dgnc: remove redundant condition check
    staging: dgnc: fix 'line over 80 characters'
    staging: dgnc: clean up the dgnc_get_modem_info()
    staging: lustre: lnet: enable configuration per NI interface
    staging: lustre: o2iblnd: properly set ibr_why
    staging: lustre: o2iblnd: remove last of kiblnd_tunables_fini
    ...

    Linus Torvalds
     

09 May, 2016

1 commit