mirror of
https://github.com/opnsense/src.git
synced 2026-02-19 02:30:08 -05:00
nvme: Eliminate intel_log_temp_stats_swapbytes
We can't post a AER for this page, so there's no need to be able to swap it to host byte order. It's not one of the standard defined pages that can post via AER, and the vendor's public docs for this temperature page don't suggest it's possible to get over or under event changes. Since nvmecontrol no longer needsd the swap routine, remove it since it's now unused. Sponsored by: Netflix Reviewed by: chuck Differential Revision: https://reviews.freebsd.org/D44659 (cherry picked from commit 97b77de2d951b4946fb3219a99c98f2dd4c0120f)
This commit is contained in:
parent
4e7cc8f545
commit
1dac152478
2 changed files with 0 additions and 21 deletions
|
|
@ -2225,23 +2225,6 @@ void nvme_sanitize_status_page_swapbytes(
|
|||
#endif
|
||||
}
|
||||
|
||||
static inline
|
||||
void intel_log_temp_stats_swapbytes(struct intel_log_temp_stats *s __unused)
|
||||
{
|
||||
#if _BYTE_ORDER != _LITTLE_ENDIAN
|
||||
|
||||
s->current = le64toh(s->current);
|
||||
s->overtemp_flag_last = le64toh(s->overtemp_flag_last);
|
||||
s->overtemp_flag_life = le64toh(s->overtemp_flag_life);
|
||||
s->max_temp = le64toh(s->max_temp);
|
||||
s->min_temp = le64toh(s->min_temp);
|
||||
/* omit _rsvd[] */
|
||||
s->max_oper_temp = le64toh(s->max_oper_temp);
|
||||
s->min_oper_temp = le64toh(s->min_oper_temp);
|
||||
s->est_offset = le64toh(s->est_offset);
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline
|
||||
void nvme_resv_status_swapbytes(struct nvme_resv_status *s __unused,
|
||||
size_t size __unused)
|
||||
|
|
|
|||
|
|
@ -729,10 +729,6 @@ nvme_ctrlr_async_event_log_page_cb(void *arg, const struct nvme_completion *cpl)
|
|||
nvme_sanitize_status_page_swapbytes(
|
||||
(struct nvme_sanitize_status_page *)aer->log_page_buffer);
|
||||
break;
|
||||
case INTEL_LOG_TEMP_STATS:
|
||||
intel_log_temp_stats_swapbytes(
|
||||
(struct intel_log_temp_stats *)aer->log_page_buffer);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue