23 Apr, 2013

1 commit


16 Feb, 2013

11 commits

  • This patch marks function parameters that are used read only
    as well as readonly structs (and corresponding pointers) as const.

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     
  • oz_cdev_heartbeat is empty and unused -> safe to remove.

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     
  • sparse complains about the following functions

    ozhcd.c:330:20: warning: symbol 'oz_uncancel_urb' was not declared. Should it be static?
    ozhcd.c:420:6: warning: symbol 'oz_complete_buffered_urb' was not declared. Should it be static?
    ozmain.c:25:6: warning: symbol 'g_net_dev' was not declared. Should it be static?
    ozevent.c:95:5: warning: symbol 'oz_events_open' was not declared. Should it be static?
    ozevent.c:110:5: warning: symbol 'oz_events_release' was not declared. Should it be static?
    ozevent.c:121:9: warning: symbol 'oz_events_read' was not declared. Should it be static?
    ozevent.c:160:30: warning: symbol 'oz_events_fops' was not declared. Should it be static?
    ozcdev.c:47:14: warning: symbol 'g_oz_class' was not declared. Should it be static?
    ozcdev.c:74:5: warning: symbol 'oz_cdev_open' was not declared. Should it be static?
    ozcdev.c:86:5: warning: symbol 'oz_cdev_release' was not declared. Should it be static?
    ozcdev.c:94:9: warning: symbol 'oz_cdev_read' was not declared. Should it be static?
    ozcdev.c:146:9: warning: symbol 'oz_cdev_write' was not declared. Should it be static?
    ozcdev.c:236:6: warning: symbol 'oz_cdev_ioctl' was not declared. Should it be static?
    ozcdev.c:300:14: warning: symbol 'oz_cdev_poll' was not declared. Should it be static?
    ozcdev.c:321:30: warning: symbol 'oz_fops' was not declared. Should it be static?
    ozproto.c:958:6: warning: context imbalance in 'oz_polling_lock_bh' - wrong count at exit
    ozproto.c:964:6: warning: context imbalance in 'oz_polling_unlock_bh' - unexpected unlock
    ozusbsvc1.c:308:6: warning: symbol 'oz_usb_handle_ep_data' was not declared. Should it be static?
    ozpd.c:410:6: warning: symbol 'oz_set_more_bit' was not declared. Should it be static?
    ozpd.c:418:6: warning: symbol 'oz_set_last_pkt_nb' was not declared. Should it be static?

    -> add static keyword to silence the warning and make sparse happy.

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     
  • ozcdev.c and ozhcd.c should include their own header file, so sparse
    knows which functions are declared and which not.

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     
  • This patch fixes the warning "Using plain integer as NULL pointer",
    generated by sparse, by replacing the offending 0s with NULL.

    If the initialization with NULL was unnecessary (due to unconditional
    assignment before first use) it was removed.

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     
  • This patch fixes the warning "Using plain integer as NULL pointer",
    generated by sparse, by replacing the offending 0s with NULL.

    If the initialization with NULL was unnecessary (due to unconditional
    assignment before first use) it was removed.

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     
  • This patch fixes the warning "Using plain integer as NULL pointer",
    generated by sparse, by replacing the offending 0s with NULL.

    If the initialization with NULL was unnecessary (due to unconditional
    assignment before first use) it was removed.

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     
  • This patch fixes the warning "Using plain integer as NULL pointer",
    generated by sparse, by replacing the offending 0s with NULL.

    If the initialization with NULL was unnecessary (due to unconditional
    assignment before first use) it was removed.

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     
  • This patch fixes the warning "Using plain integer as NULL pointer",
    generated by sparse, by replacing the offending 0s with NULL.

    If the initialization with NULL was unnecessary (due to unconditional
    assignment before first use) it was removed.

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     
  • This patch fixes the warning "Using plain integer as NULL pointer",
    generated by sparse, by replacing the offending 0s with NULL.

    If the initialization with NULL was unnecessary (due to unconditional
    assignment before first use) it was removed.

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     
  • This patch fixes the warning "Using plain integer as NULL pointer",
    generated by sparse, by replacing the offending 0s with NULL.

    If the initialization with NULL was unnecessary (due to unconditional
    assignment before first use) it was removed.

    Signed-off-by: Peter Huewe
    Reviewed-by: Dan Carpenter
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     

30 Jan, 2013

1 commit

  • The patch ae926051d7eb: "staging: ozwpan: Added USB HCD
    implementation" from Feb 20, 2012, leads to the following warning:
    drivers/staging/ozwpan/ozhcd.c:1094 oz_hcd_heartbeat()
    warn: what is this condition about? 'ep->buffered_units * 50'

    Reported-by: Dan Carpenter
    Signed-off-by: Rupesh Gujare
    Signed-off-by: Greg Kroah-Hartman

    Rupesh Gujare
     

26 Jan, 2013

2 commits


22 Nov, 2012

4 commits


01 Nov, 2012

1 commit

  • Some driver uses tasklet_disable in device remove/release process,
    tasklet_disable will inc tasklet->count and return. If the tasklet
    is not handled yet under some softirq pressure, the tasklet will be
    placed on the tasklet_vec, never have a chance to be excuted. This might
    lead to a heavy loaded ksoftirqd, wakeup with pending_softirq, but
    tasklet is disabled. tasklet_kill should be used in this case.

    Signed-off-by: Xiaotian Feng
    Cc: Rupesh Gujare
    Cc: Chris Kelly
    Signed-off-by: Greg Kroah-Hartman

    Xiaotian Feng
     

19 Sep, 2012

1 commit


17 Sep, 2012

1 commit


06 Sep, 2012

1 commit


05 Sep, 2012

3 commits


14 Aug, 2012

5 commits


27 Jun, 2012

2 commits


21 Jun, 2012

6 commits


03 May, 2012

1 commit