diff options
author | fche <fche> | 2007-09-24 18:16:16 +0000 |
---|---|---|
committer | fche <fche> | 2007-09-24 18:16:16 +0000 |
commit | da64b256d828a33ff5c3bd78b11aad3705056019 (patch) | |
tree | 9c50226dbe4c63b29ee1395327d4f07a05ca16ba /tapset/scsi.stp | |
parent | b8037bcbc882bad9bf1749c1272a8d927c6972a1 (diff) | |
download | systemtap-steved-da64b256d828a33ff5c3bd78b11aad3705056019.tar.gz systemtap-steved-da64b256d828a33ff5c3bd78b11aad3705056019.tar.xz systemtap-steved-da64b256d828a33ff5c3bd78b11aad3705056019.zip |
Add /* pure */ to embedded-C functions.
Diffstat (limited to 'tapset/scsi.stp')
-rw-r--r-- | tapset/scsi.stp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset/scsi.stp b/tapset/scsi.stp index 10993ee7..c9103cd6 100644 --- a/tapset/scsi.stp +++ b/tapset/scsi.stp @@ -80,13 +80,13 @@ probe scsi.iocompleted } function scsi_timer_pending:long(var:long) -%{ +%{ /* pure */ struct scsi_cmnd *cmd = (struct scsi_cmnd *)((long)THIS->var); THIS->__retvalue = timer_pending(&cmd->eh_timeout); /* FIXME: deref hazard! */ %} function get_devstate_from_req:long(var:long) -%{ +%{ /* pure */ struct request_queue *q = (struct request_queue *)((long)THIS->var); struct scsi_device *sdev = (struct scsi_device *)kread(&(q->queuedata)); THIS->__retvalue = kread(&(sdev->sdev_state)); |