1. 14 5月, 2018 1 次提交
  2. 20 10月, 2017 1 次提交
  3. 28 8月, 2017 8 次提交
  4. 09 6月, 2017 1 次提交
  5. 09 9月, 2016 1 次提交
    • B
      coresight: tmc: mark symbols static where possible · 0ef7528d
      Baoyou Xie 提交于
      We get a few warnings when building kernel with W=1:
      drivers/hwtracing/coresight/coresight-tmc-etr.c:23:6: warning: no previous prototype for 'tmc_etr_enable_hw' [-Wmissing-prototypes]
      drivers/hwtracing/coresight/coresight-tmc-etf.c:25:6: warning: no previous prototype for 'tmc_etb_enable_hw' [-Wmissing-prototypes]
      drivers/hwtracing/coresight/coresight-tmc.c:250:9: warning: no previous prototype for ‘trigger_cntr_show’ [-Wmissing-prototypes]
      ...
      
      In fact, these functions are only used in the file in which they are
      declared and don't need a declaration, but can be made static.
      so this patch marks these functions with 'static'.
      Signed-off-by: NBaoyou Xie <baoyou.xie@linaro.org>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0ef7528d
  6. 31 8月, 2016 6 次提交
  7. 04 5月, 2016 12 次提交
  8. 02 5月, 2016 1 次提交
  9. 21 2月, 2016 4 次提交
  10. 08 2月, 2016 1 次提交
    • M
      coresight: removing bind/unbind options from sysfs · b15f0fb6
      Mathieu Poirier 提交于
      The coresight drivers have absolutely no control over bind and unbind
      operations triggered from sysfs. The operations simply can't be
      cancelled or denied event when one or several tracing sessions are
      under way.  Since the memory associated to individual device is
      invariably freed, the end result is a kernel crash when the path from
      source to sink is travelled again as demonstrated here[1].
      
      One solution could be to keep track of all the path (i.e tracing
      session) that get created and iterate through the elements of those path
      looking for the coresight device that is being removed.  This proposition
      doesn't scale well since there is no upper bound on the amount of
      concurrent trace session that can be created.
      
      With the above in mind, this patch prevent devices from being unbounded
      from their driver by using the driver->suppress_bind_attr option.  That way
      trace sessions can be managed without fearing to loose devices.
      
      Since device can't be removed anymore the xyz_remove() functions found in
      each driver is also removed.
      
      [1]. http://www.spinics.net/lists/arm-kernel/msg474952.htmlReported-by: NRabin Vincent <rabin@rab.in>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b15f0fb6
  11. 25 5月, 2015 1 次提交
  12. 03 4月, 2015 3 次提交