projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa6a65d
)
drm/i915: avoid rebuilding i915_gpu_error.o on version string updates
author
Hans Holmberg
<
[email protected]
>
Wed, 21 Nov 2018 09:54:23 +0000
(10:54 +0100)
committer
Joonas Lahtinen
<
[email protected]
>
Thu, 22 Nov 2018 09:46:57 +0000
(11:46 +0200)
There is no need to rebuild i915_gpu_error.o when the version string
changes as the version is available in init_utsname()->release.
Signed-off-by: Hans Holmberg <
[email protected]
>
Reviewed-by: Jani Nikula <
[email protected]
>
Reviewed-by: Joonas Lahtinen <
[email protected]
>
Signed-off-by: Joonas Lahtinen <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/i915_gpu_error.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gpu_error.c
b/drivers/gpu/drm/i915/i915_gpu_error.c
index 21b5c8765015cdf30672db7843176151697e758b..8123bf0e4807d42c4cd4a40152b922c4fa012498 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gpu_error.c
+++ b/
drivers/gpu/drm/i915/i915_gpu_error.c
@@
-27,7
+27,7
@@
*
*/
-#include <
generated/utsreleas
e.h>
+#include <
linux/utsnam
e.h>
#include <linux/stop_machine.h>
#include <linux/zlib.h>
#include <drm/drm_print.h>
@@
-653,7
+653,7
@@
int i915_error_state_to_str(struct drm_i915_error_state_buf *m,
if (*error->error_msg)
err_printf(m, "%s\n", error->error_msg);
- err_printf(m, "Kernel:
" UTS_RELEASE "\n"
);
+ err_printf(m, "Kernel:
%s\n", init_utsname()->release
);
ts = ktime_to_timespec64(error->time);
err_printf(m, "Time: %lld s %ld us\n",
(s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC);