Commit 12c27156 authored by Johannes Berg's avatar Johannes Berg Committed by Kalle Valo

ath10k: don't rebuild all the time

There are better ways to get the kernel information, use the
utsname and omit the version code entirely since it's duplicate.
The version magic is rather useless anyway
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 89a5a317
...@@ -17,9 +17,8 @@ ...@@ -17,9 +17,8 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/debugfs.h> #include <linux/debugfs.h>
#include <linux/version.h>
#include <linux/vermagic.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/utsname.h>
#include "core.h" #include "core.h"
#include "debug.h" #include "debug.h"
...@@ -866,8 +865,8 @@ static struct ath10k_dump_file_data *ath10k_build_dump_file(struct ath10k *ar) ...@@ -866,8 +865,8 @@ static struct ath10k_dump_file_data *ath10k_build_dump_file(struct ath10k *ar)
strlcpy(dump_data->fw_ver, ar->hw->wiphy->fw_version, strlcpy(dump_data->fw_ver, ar->hw->wiphy->fw_version,
sizeof(dump_data->fw_ver)); sizeof(dump_data->fw_ver));
dump_data->kernel_ver_code = cpu_to_le32(LINUX_VERSION_CODE); dump_data->kernel_ver_code = 0;
strlcpy(dump_data->kernel_ver, VERMAGIC_STRING, strlcpy(dump_data->kernel_ver, init_utsname()->release,
sizeof(dump_data->kernel_ver)); sizeof(dump_data->kernel_ver));
dump_data->tv_sec = cpu_to_le64(crash_data->timestamp.tv_sec); dump_data->tv_sec = cpu_to_le64(crash_data->timestamp.tv_sec);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment