Project

General

Profile

Bug #1560

DTrace tracemem() size extension broke lint on SPARC

Added by Rich Lowe about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2011-09-24
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

on SPARC, we got a lint warning for:

  1880                          if (act == DTRACEACT_TRACEMEM_DYNSIZE &&
  1881                              rec->dtrd_size == sizeof (uint64_t)) {
  1882                                  tracememsize = *((unsigned long long *)
addr);                                                                        
  1883                                  continue;
  1884                          }

"../common/dt_consume.c", line 1882: warning: pointer cast may result in improper alignment (E_BAD_PTR_CAST_ALIGN)

History

#1

Updated by Rich Lowe about 8 years ago

  • Difficulty changed from Medium to Bite-size

This just needs the appropriate /* LINTED */ directive, I believe.

#2

Updated by Rich Lowe about 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Tags deleted (needs-triage)

Resolved in r13483 commit:f413e6c5d297

Also available in: Atom PDF