diff options
author | Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com> | 2020-05-04 23:46:00 +0530 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2020-05-19 16:01:40 +0300 |
commit | 649c10ff85b94f7685c3a478e7788018a360f6e6 (patch) | |
tree | c983ee65f993ccf4f1d6a2551538b209d1679a34 /init/calibrate.c | |
parent | 19edeb388e9f5a0ba505bbf53059dc5a856a0c77 (diff) |
drm/i915/runtime_pm: Prefer drm_WARN* over WARN*
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* over WARN*.
Conversion is done with below semantic patch:
@@
identifier func, T;
@@
func(struct intel_runtime_pm *T,...) {
+ struct drm_i915_private *i915 = container_of(T, struct drm_i915_private, runtime_pm);
<+...
(
-WARN(
+drm_WARN(&i915->drm,
...)
|
-WARN_ON(
+drm_WARN_ON(&i915->drm,
...)
|
-WARN_ONCE(
+drm_WARN_ONCE(&i915->drm,
...)
|
-WARN_ON_ONCE(
+drm_WARN_ON_ONCE(&i915->drm,
...)
)
...+>
}
Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200504181600.18503-10-pankaj.laxminarayan.bharadiya@intel.com
Diffstat (limited to 'init/calibrate.c')
0 files changed, 0 insertions, 0 deletions