11 Oct, 2019

1 commit


26 Jul, 2019

1 commit


23 Oct, 2018

1 commit


07 Jul, 2018

1 commit

  • At over 4000 #includes, is the 9th most
    #included header file in the Linux kernel. It does not need
    , so drop that header and explicitly add
    to source files that need it.

    4146 #include

    After this patch, there are 225 files that use ,
    for a reduction of around 3900 times that
    does not have to be read & parsed.

    225 #include

    This patch was build-tested on 20 different arch-es.

    It also makes these drivers SubmitChecklist#1 compliant.

    Signed-off-by: Randy Dunlap
    Reported-by: kbuild test robot # drivers/media/platform/vimc/
    Reported-by: kbuild test robot # drivers/pinctrl/pinctrl-u300.c
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     

23 Aug, 2017

1 commit

  • Make these const as they are only used in a copy operation.
    Done using Coccinelle.

    @match disable optional_qualifier@
    identifier s;
    @@
    static struct ptp_clock_info s = {...};

    @ref@
    position p;
    identifier match.s;
    @@
    s@p

    @good1@
    position ref.p;
    identifier match.s,f,c;
    expression e;
    @@
    (
    e = s@p
    |
    e = s@p.f
    |
    c(...,s@p.f,...)
    |
    c(...,s@p,...)
    )

    @bad depends on !good1@
    position ref.p;
    identifier match.s;
    @@
    s@p

    @depends on forall !bad disable optional_qualifier@
    identifier match.s;
    @@
    static
    + const
    struct ptp_clock_info s;

    Signed-off-by: Bhumika Goyal
    Acked-by: Richard Cochran
    Signed-off-by: David S. Miller

    Bhumika Goyal
     

06 Jul, 2017

1 commit

  • With gcc 4.1.2:

    drivers/ptp/ptp_dte.c: In function ‘dte_write_nco_delta’:
    drivers/ptp/ptp_dte.c:105: warning: integer constant is too large for ‘long’ type
    drivers/ptp/ptp_dte.c:112: warning: integer constant is too large for ‘long’ type
    drivers/ptp/ptp_dte.c:114: warning: integer constant is too large for ‘long’ type

    Add the missing "LL" suffix to fix this.

    Fixes: 8a56aa107f1e8123 ("ptp: Add a ptp clock driver for Broadcom DTE")
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: David S. Miller

    Geert Uytterhoeven
     

16 Jun, 2017

1 commit