1. 04 9月, 2019 12 次提交
  2. 02 8月, 2019 1 次提交
    • S
      coresight: Fix DEBUG_LOCKS_WARN_ON for uninitialized attribute · 5511c0c3
      Suzuki K Poulose 提交于
      While running the linux-next with CONFIG_DEBUG_LOCKS_ALLOC enabled,
      I get the following splat.
      
       BUG: key ffffcb5636929298 has not been registered!
       ------------[ cut here ]------------
       DEBUG_LOCKS_WARN_ON(1)
       WARNING: CPU: 1 PID: 53 at kernel/locking/lockdep.c:3669 lockdep_init_map+0x164/0x1f0
       CPU: 1 PID: 53 Comm: kworker/1:1 Tainted: G        W         5.2.0-next-20190712-00015-g00ad4634222e-dirty #603
       Workqueue: events amba_deferred_retry_func
       pstate: 60c00005 (nZCv daif +PAN +UAO)
       pc : lockdep_init_map+0x164/0x1f0
       lr : lockdep_init_map+0x164/0x1f0
      
       [ trimmed ]
      
       Call trace:
        lockdep_init_map+0x164/0x1f0
        __kernfs_create_file+0x9c/0x158
        sysfs_add_file_mode_ns+0xa8/0x1d0
        sysfs_add_file_to_group+0x88/0xd8
        etm_perf_add_symlink_sink+0xcc/0x138
        coresight_register+0x110/0x280
        tmc_probe+0x160/0x420
      
       [ trimmed ]
      
       ---[ end trace ab4cc669615ba1b0 ]---
      
      Fix this by initialising the dynamically allocated attribute properly.
      
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Fixes: bb8e370b ("coresight: perf: Add "sinks" group to PMU directory")
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NSuzuki K Poulose <suzuki.poulose@arm.com>
      [Fixed a typograhic error in the changelog]
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Link: https://lore.kernel.org/r/20190801172323.18359-2-mathieu.poirier@linaro.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5511c0c3
  3. 13 7月, 2019 1 次提交
  4. 04 7月, 2019 8 次提交
  5. 24 6月, 2019 1 次提交
    • S
      bus_find_device: Unify the match callback with class_find_device · 418e3ea1
      Suzuki K Poulose 提交于
      There is an arbitrary difference between the prototypes of
      bus_find_device() and class_find_device() preventing their callers
      from passing the same pair of data and match() arguments to both of
      them, which is the const qualifier used in the prototype of
      class_find_device().  If that qualifier is also used in the
      bus_find_device() prototype, it will be possible to pass the same
      match() callback function to both bus_find_device() and
      class_find_device(), which will allow some optimizations to be made in
      order to avoid code duplication going forward.  Also with that, constify
      the "data" parameter as it is passed as a const to the match function.
      
      For this reason, change the prototype of bus_find_device() to match
      the prototype of class_find_device() and adjust its callers to use the
      const qualifier in accordance with the new prototype of it.
      
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Andreas Noever <andreas.noever@gmail.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Corey Minyard <minyard@acm.org>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Cc: David Kershner <david.kershner@unisys.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Felipe Balbi <balbi@kernel.org>
      Cc: Frank Rowand <frowand.list@gmail.com>
      Cc: Grygorii Strashko <grygorii.strashko@ti.com>
      Cc: Harald Freudenberger <freude@linux.ibm.com>
      Cc: Hartmut Knaack <knaack.h@gmx.de>
      Cc: Heiko Stuebner <heiko@sntech.de>
      Cc: Jason Gunthorpe <jgg@ziepe.ca>
      Cc: Jonathan Cameron <jic23@kernel.org>
      Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Michael Jamet <michael.jamet@intel.com>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: Peter Oberparleiter <oberpar@linux.ibm.com>
      Cc: Sebastian Ott <sebott@linux.ibm.com>
      Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Cc: Yehezkel Bernat <YehezkelShB@gmail.com>
      Cc: rafael@kernel.org
      Acked-by: NCorey Minyard <minyard@acm.org>
      Acked-by: NDavid Kershner <david.kershner@unisys.com>
      Acked-by: NMark Brown <broonie@kernel.org>
      Acked-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: NSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Acked-by: Wolfram Sang <wsa@the-dreams.de> # for the I2C parts
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NSuzuki K Poulose <suzuki.poulose@arm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      418e3ea1
  6. 21 6月, 2019 1 次提交
  7. 20 6月, 2019 16 次提交