diff options
| author | Pankaj Bharadiya <[email protected]> | 2020-05-04 23:45:55 +0530 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2020-05-19 16:01:20 +0300 |
| commit | ef3929b64b9a1100a839ef06a68bb931d7303bfb (patch) | |
| tree | fe33c39fa546ea7f93a2488c3bf1b12636341bfd /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | cb7cbb4b2aeca663f7dfca95649d90f292866dc6 (diff) | |
drm/i915/display/tc: Prefer drm_WARN_ON over WARN_ON
struct drm_device specific drm_WARN* macros include device information
in the backtrace, so we know what device the warnings originate from.
Prefer drm_WARN_ON over WARN_ON.
Conversion is done with below sementic patch:
@@
identifier func, T;
@@
func(...) {
...
struct drm_i915_private *T = ...;
<+...
-WARN_ON(
+drm_WARN_ON(&T->drm,
...)
...+>
}
@@
identifier func, T;
@@
func(struct intel_digital_port *T,...) {
+struct drm_i915_private *i915 = to_i915(T->base.base.dev);
<+...
-WARN_ON(
+drm_WARN_ON(&i915->drm,
...)
...+>
}
changes since v1:
- Add i915 local variable and use it in drm_WARN_ON (Jani)
Signed-off-by: Pankaj Bharadiya <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions