diff options
| author | Surya Prakki <Surya.Prakki@Sun.COM> | 2009-12-22 21:22:18 -0800 |
|---|---|---|
| committer | Surya Prakki <Surya.Prakki@Sun.COM> | 2009-12-22 21:22:18 -0800 |
| commit | c1374a13e412c4ec42cba867e57347a0e049a822 (patch) | |
| tree | 1eb8dc02c77cd1a1f475f953a75ae5688037193b /usr/src | |
| parent | 2be7def9bac9cc5b894988030377b62ee6be9c39 (diff) | |
| download | illumos-joyent-c1374a13e412c4ec42cba867e57347a0e049a822.tar.gz | |
6912153 some components of ON are not ss12u1 lint clean
Diffstat (limited to 'usr/src')
39 files changed, 100 insertions, 92 deletions
diff --git a/usr/src/cmd/lvm/rpc.mdcommd/mdmn_commd_server.c b/usr/src/cmd/lvm/rpc.mdcommd/mdmn_commd_server.c index 825f3996e3..f4a45cffcb 100644 --- a/usr/src/cmd/lvm/rpc.mdcommd/mdmn_commd_server.c +++ b/usr/src/cmd/lvm/rpc.mdcommd/mdmn_commd_server.c @@ -551,7 +551,7 @@ global_init(void) sighandler.sa_flags = 0; (void) sigfillset(&sighandler.sa_mask); sighandler.sa_handler = (void (*)(int)) setup_debug; - sigaction(SIGHUP, &sighandler, NULL); + (void) sigaction(SIGHUP, &sighandler, NULL); __savetime = gethrtime(); (void) time(&clock_val); diff --git a/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_acl.c b/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_acl.c index 81493f5783..7c74c75efa 100644 --- a/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_acl.c +++ b/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_acl.c @@ -268,7 +268,7 @@ smbfs_ioc_setsd(vnode_t *vp, intptr_t arg, int flag, cred_t *cr) * Get the buffer contents (security descriptor data) */ mbp = &mb_store; - mb_init(mbp); + (void) mb_init(mbp); ubuf = (void *)(uintptr_t)iocb.addr; error = mb_put_mem(mbp, ubuf, iocb.used, MB_MUSER); if (error) @@ -401,7 +401,7 @@ smbfs_setacl(vnode_t *vp, vsecattr_t *vsa, * Marshall the internal form SD into an * OtW security descriptor. */ - mb_init(mbp); + (void) mb_init(mbp); error = mb_put_ntsd(mbp, sd); if (error) goto out; diff --git a/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_client.c b/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_client.c index c6d23011fe..fb15139a44 100644 --- a/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_client.c +++ b/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_client.c @@ -687,7 +687,7 @@ smbfs_clntinit(void) zone_key_create(&smi_list_key, smbfs_zone_init, smbfs_zone_shutdown, smbfs_zone_destroy); #ifdef NEED_SMBFS_CALLBACKS - smb_fscb_set(&smbfs_cb); + (void) smb_fscb_set(&smbfs_cb); #endif /* NEED_SMBFS_CALLBACKS */ return (0); } @@ -700,7 +700,7 @@ void smbfs_clntfini(void) { #ifdef NEED_SMBFS_CALLBACKS - smb_fscb_set(NULL); + (void) smb_fscb_set(NULL); #endif /* NEED_SMBFS_CALLBACKS */ (void) zone_key_delete(smi_list_key); } diff --git a/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_xattr.c b/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_xattr.c index 83c91fecc0..0ff265ef0f 100644 --- a/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_xattr.c +++ b/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_xattr.c @@ -336,9 +336,9 @@ smbfs_xa_findopen(struct smbfs_fctx *ctx, struct smbnode *dnp, ctx->f_t2 = t2p; mbp = &t2p->t2_tparam; - mb_init(mbp); - mb_put_uint16le(mbp, SMB_QFILEINFO_STREAM_INFO); - mb_put_uint32le(mbp, 0); + (void) mb_init(mbp); + (void) mb_put_uint16le(mbp, SMB_QFILEINFO_STREAM_INFO); + (void) mb_put_uint32le(mbp, 0); error = smbfs_fullpath(mbp, vcp, pnp, NULL, NULL, 0); if (error) goto out; @@ -393,9 +393,9 @@ again: return (ENOENT); if ((error = md_get_uint32le(mdp, &size)) != 0) /* name len */ return (ENOENT); - md_get_uint64le(mdp, &llongint); /* file size */ + (void) md_get_uint64le(mdp, &llongint); /* file size */ ctx->f_attr.fa_size = llongint; - md_get_uint64le(mdp, NULL); /* alloc. size */ + (void) md_get_uint64le(mdp, NULL); /* alloc. size */ used = 4 + 4 + 8 + 8; /* how much we consumed */ /* @@ -405,13 +405,13 @@ again: if (SMB_UNICODE_STRINGS(SSTOVC(ctx->f_ssp))) { if (size >= 2) { size -= 2; used += 2; - md_get_uint16le(mdp, NULL); + (void) md_get_uint16le(mdp, NULL); } nmlen = min(size, SMB_MAXFNAMELEN * 2); } else { if (size >= 1) { size -= 1; used += 1; - md_get_uint8(mdp, NULL); + (void) md_get_uint8(mdp, NULL); } nmlen = min(size, SMB_MAXFNAMELEN); } @@ -437,7 +437,7 @@ again: */ if (next > used) { skip = next - used; - md_get_mem(mdp, NULL, skip, MB_MSYSTEM); + (void) md_get_mem(mdp, NULL, skip, MB_MSYSTEM); } if (next == 0) ctx->f_flags |= SMBFS_RDD_EOF; diff --git a/usr/src/uts/common/io/bfe/bfe.c b/usr/src/uts/common/io/bfe/bfe.c index 7631c20027..b71bcc229b 100644 --- a/usr/src/uts/common/io/bfe/bfe.c +++ b/usr/src/uts/common/io/bfe/bfe.c @@ -2947,7 +2947,7 @@ bfe_attach(dev_info_t *dip, ddi_attach_cmd_t cmd) fail4: bfe_remove_intr(bfe); fail3: - mac_unregister(bfe->bfe_machdl); + (void) mac_unregister(bfe->bfe_machdl); fail2: bfe_unmap_regs(bfe); fail1: diff --git a/usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c b/usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c index 78ac87d9ca..72017a833e 100644 --- a/usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c +++ b/usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd_scsi.c @@ -680,7 +680,7 @@ sbd_handle_short_write_transfers(scsi_task_t *task, dbuf->db_data_size = cdb_xfer_size; dbuf->db_relative_offset = 0; dbuf->db_flags = DB_DIRECTION_FROM_RPORT; - stmf_xfer_data(task, dbuf, 0); + (void) stmf_xfer_data(task, dbuf, 0); } else { if (dbuf->db_data_size < cdb_xfer_size) { stmf_abort(STMF_QUEUE_TASK_ABORT, task, diff --git a/usr/src/uts/common/io/comstar/port/qlt/qlt.c b/usr/src/uts/common/io/comstar/port/qlt/qlt.c index df5d64635e..f0fb4dd6aa 100644 --- a/usr/src/uts/common/io/comstar/port/qlt/qlt.c +++ b/usr/src/uts/common/io/comstar/port/qlt/qlt.c @@ -6228,7 +6228,7 @@ qlt_mps_reset(qlt_state_t *qlt) } if (qlt_raw_rd_risc_ram_word(qlt, 0x7c00, &data) != QLT_SUCCESS) { - qlt_raw_wrt_risc_ram_word(qlt, 0x7c00, 0); + (void) qlt_raw_wrt_risc_ram_word(qlt, 0x7c00, 0); return; } } while (!(data & BIT_0)); @@ -6238,10 +6238,10 @@ qlt_mps_reset(qlt_state_t *qlt) if ((data & 0xe0) != (dctl & 0xe0)) { data &= 0xff1f; data |= dctl & 0xe0; - qlt_raw_wrt_risc_ram_word(qlt, 0x7A15, data); + (void) qlt_raw_wrt_risc_ram_word(qlt, 0x7A15, data); } } - qlt_raw_wrt_risc_ram_word(qlt, 0x7c00, 0); + (void) qlt_raw_wrt_risc_ram_word(qlt, 0x7c00, 0); } /* diff --git a/usr/src/uts/common/io/drm/drm_sunmod.c b/usr/src/uts/common/io/drm/drm_sunmod.c index f6502249ae..2f69229521 100644 --- a/usr/src/uts/common/io/drm/drm_sunmod.c +++ b/usr/src/uts/common/io/drm/drm_sunmod.c @@ -224,7 +224,7 @@ exit4: exit3: pci_config_teardown(&pci_cfg_handle); exit2: - gfxp_vgatext_detach(dip, DDI_DETACH, gfxp); + (void) gfxp_vgatext_detach(dip, DDI_DETACH, gfxp); exit1: gfxp_vgatext_softc_free(gfxp); drm_supp_free_drv_entry(dip); diff --git a/usr/src/uts/common/io/e1000g/e1000_mac.c b/usr/src/uts/common/io/e1000g/e1000_mac.c index 42859ed83c..a142743072 100644 --- a/usr/src/uts/common/io/e1000g/e1000_mac.c +++ b/usr/src/uts/common/io/e1000g/e1000_mac.c @@ -550,7 +550,7 @@ e1000_update_mc_addr_list_generic(struct e1000_hw *hw, DEBUGFUNC("e1000_update_mc_addr_list_generic"); /* clear mta_shadow */ - memset(&hw->mac.mta_shadow, 0, sizeof (hw->mac.mta_shadow)); + (void) memset(&hw->mac.mta_shadow, 0, sizeof (hw->mac.mta_shadow)); /* update mta_shadow from mc_addr_list */ for (i = 0; (u32) i < mc_addr_count; i++) { diff --git a/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c b/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c index fa7c2c44ce..8df5ea7ba0 100644 --- a/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c +++ b/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c @@ -8262,7 +8262,7 @@ ql_task_thread(ql_adapter_state_t *ha) if (ha->task_daemon_flags & SEND_PLOGI) { ha->task_daemon_flags &= ~SEND_PLOGI; TASK_DAEMON_UNLOCK(ha); - ql_n_port_plogi(ha); + (void) ql_n_port_plogi(ha); TASK_DAEMON_LOCK(ha); } diff --git a/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c b/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c index 3c84aeee6d..ee39b38f26 100644 --- a/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c +++ b/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c @@ -4252,7 +4252,7 @@ ql_mps_reset(ql_adapter_state_t *ha) return; } if (ql_rd_risc_ram_word(ha, 0x7c00, &data) != QL_SUCCESS) { - ql_wrt_risc_ram_word(ha, 0x7c00, 0); + (void) ql_wrt_risc_ram_word(ha, 0x7c00, 0); return; } } while (!(data & BIT_0)); @@ -4262,8 +4262,8 @@ ql_mps_reset(ql_adapter_state_t *ha) if ((data & 0xe0) != (dctl & 0xe0)) { data &= 0xff1f; data |= dctl & 0xe0; - ql_wrt_risc_ram_word(ha, 0x7A15, data); + (void) ql_wrt_risc_ram_word(ha, 0x7A15, data); } } - ql_wrt_risc_ram_word(ha, 0x7c00, 0); + (void) ql_wrt_risc_ram_word(ha, 0x7c00, 0); } diff --git a/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c b/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c index 0fd8a468df..c4ce496844 100644 --- a/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c +++ b/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c @@ -6755,7 +6755,7 @@ ql_check_pci(ql_adapter_state_t *ha, ql_fcache_t *fcache, uint32_t *nextpos) ql_flash_layout_table(ha, *nextpos + (pcid->imagelength[0] | (pcid->imagelength[1] << 8)) * PCI_SECTOR_SIZE); - ql_24xx_flash_desc(ha); + (void) ql_24xx_flash_desc(ha); } *nextpos = 0xffffffff; } else { diff --git a/usr/src/uts/common/io/fibre-channel/ulp/fcp.c b/usr/src/uts/common/io/fibre-channel/ulp/fcp.c index e8673b4d4e..9c76c51f00 100644 --- a/usr/src/uts/common/io/fibre-channel/ulp/fcp.c +++ b/usr/src/uts/common/io/fibre-channel/ulp/fcp.c @@ -16168,7 +16168,8 @@ fcp_pseudo_destroy_pkt(struct scsi_address *ap, struct scsi_pkt *pkt) /* * First we let FCA to uninitilize private part. */ - fc_ulp_uninit_packet(pptr->port_fp_handle, PKT2CMD(pkt)->cmd_fp_pkt); + (void) fc_ulp_uninit_packet(pptr->port_fp_handle, + PKT2CMD(pkt)->cmd_fp_pkt); /* * Then we uninitialize fc_packet. @@ -16196,7 +16197,7 @@ fcp_pseudo_start(struct scsi_address *ap, struct scsi_pkt *pkt) int rval; fpkt->pkt_pd = ptgt->tgt_pd_handle; - fc_ulp_init_packet(pptr->port_fp_handle, cmd->cmd_fp_pkt, 1); + (void) fc_ulp_init_packet(pptr->port_fp_handle, cmd->cmd_fp_pkt, 1); /* * Firstly, we need initialize fcp_pkt_t diff --git a/usr/src/uts/common/io/hxge/hxge_send.c b/usr/src/uts/common/io/hxge/hxge_send.c index 9488e440cc..e453322486 100644 --- a/usr/src/uts/common/io/hxge/hxge_send.c +++ b/usr/src/uts/common/io/hxge/hxge_send.c @@ -18,6 +18,7 @@ * * CDDL HEADER END */ + /* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. @@ -218,7 +219,7 @@ start_again: "TX Descriptor ring is full: channel %d", tx_ring_p->tdc)); HXGE_DEBUG_MSG((hxgep, TX_CTL, "TX Descriptor ring is full: channel %d", tx_ring_p->tdc)); - cas32((uint32_t *)&tx_ring_p->queueing, 0, 1); + (void) cas32((uint32_t *)&tx_ring_p->queueing, 0, 1); tdc_stats->tx_no_desc++; MUTEX_EXIT(&tx_ring_p->lock); status = 1; diff --git a/usr/src/uts/common/io/hxge/hxge_txdma.c b/usr/src/uts/common/io/hxge/hxge_txdma.c index 0359409125..67a8d653f9 100644 --- a/usr/src/uts/common/io/hxge/hxge_txdma.c +++ b/usr/src/uts/common/io/hxge/hxge_txdma.c @@ -787,7 +787,7 @@ hxge_txdma_reclaim(p_hxge_t hxgep, p_tx_ring_t tx_ring_p, int nmblks) status = (nmblks <= ((int)tx_ring_p->tx_ring_size - (int)tx_ring_p->descs_pending - TX_FULL_MARK)); if (status) { - cas32((uint32_t *)&tx_ring_p->queueing, 1, 0); + (void) cas32((uint32_t *)&tx_ring_p->queueing, 1, 0); } } else { status = (nmblks <= ((int)tx_ring_p->tx_ring_size - diff --git a/usr/src/uts/common/io/ib/ibnex/ibnex.c b/usr/src/uts/common/io/ib/ibnex/ibnex.c index f78b8af9c6..9e0ffc951c 100644 --- a/usr/src/uts/common/io/ib/ibnex/ibnex.c +++ b/usr/src/uts/common/io/ib/ibnex/ibnex.c @@ -2992,7 +2992,7 @@ ibnex_dm_callback(void *arg, ibdm_events_t flag) case IBDM_EVENT_PORT_UP: case IBDM_EVENT_PORT_PKEY_CHANGE: phci = ibtl_ibnex_hcaguid2dip(*(longlong_t *)arg); - devfs_clean(phci, NULL, 0); + (void) devfs_clean(phci, NULL, 0); break; default: break; diff --git a/usr/src/uts/common/io/igb/igb_82575.c b/usr/src/uts/common/io/igb/igb_82575.c index 10b20db6ea..175481fc8c 100644 --- a/usr/src/uts/common/io/igb/igb_82575.c +++ b/usr/src/uts/common/io/igb/igb_82575.c @@ -1821,7 +1821,7 @@ e1000_reset_hw_82580(struct e1000_hw *hw) /* If EEPROM is not present, run manual init scripts */ if ((E1000_READ_REG(hw, E1000_EECD) & E1000_EECD_PRES) == 0) - e1000_reset_init_script_82575(hw); + (void) e1000_reset_init_script_82575(hw); /* clear global device reset status bit */ E1000_WRITE_REG(hw, E1000_STATUS, E1000_STAT_DEV_RST_SET); diff --git a/usr/src/uts/common/io/rwd/rt2661.c b/usr/src/uts/common/io/rwd/rt2661.c index 9e953fa979..6419dbd96d 100644 --- a/usr/src/uts/common/io/rwd/rt2661.c +++ b/usr/src/uts/common/io/rwd/rt2661.c @@ -1034,7 +1034,7 @@ rt2661_rx_intr(struct rt2661_softc *sc) rssi = rt2661_get_rssi(sc, desc->rssi); /* send the frame to the 802.11 layer */ - ieee80211_input(ic, m, ni, rssi + 95, 0); + (void) ieee80211_input(ic, m, ni, rssi + 95, 0); sc->avg_rssi = (rssi + 7 * sc->avg_rssi) / 8; diff --git a/usr/src/uts/common/io/rwn/rt2860.c b/usr/src/uts/common/io/rwn/rt2860.c index 07a8c6f4d7..588d5c3730 100644 --- a/usr/src/uts/common/io/rwn/rt2860.c +++ b/usr/src/uts/common/io/rwn/rt2860.c @@ -1774,7 +1774,7 @@ rt2860_rx_intr(struct rt2860_softc *sc) /* grab a reference to the source node */ ni = ieee80211_find_rxnode(ic, wh); - ieee80211_input(ic, mp0, ni, rssi, 0); + (void) ieee80211_input(ic, mp0, ni, rssi, 0); /* node is no longer needed */ ieee80211_free_node(ni); diff --git a/usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_net.c b/usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_net.c index 94481fe9cc..7ab6910ce9 100644 --- a/usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_net.c +++ b/usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_net.c @@ -334,7 +334,8 @@ iscsi_net_accept(void *socket, struct sockaddr *addr, int *addr_len) ksocket_t listen_ks; ksocket_t ks = (ksocket_t)socket; - ksocket_accept(ks, addr, (socklen_t *)addr_len, &listen_ks, CRED()); + (void) ksocket_accept(ks, addr, (socklen_t *)addr_len, &listen_ks, + CRED()); return ((void *)listen_ks); } @@ -482,7 +483,7 @@ iscsi_net_recvmsg(void *socket, struct msghdr *msg, int timeout) * data is received or timeout. */ ksocket_hold(ks); - ksocket_recvmsg(ks, msg, prflag, &recv, CRED()); + (void) ksocket_recvmsg(ks, msg, prflag, &recv, CRED()); ksocket_rele(ks); DTRACE_PROBE1(ksocket_recvmsg, size_t, recv); return (recv); diff --git a/usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c b/usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c index dc23005b64..3316ac0e8e 100644 --- a/usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c +++ b/usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c @@ -1973,7 +1973,7 @@ pmcs_iport_teardown_phys(pmcs_iport_t *iport) /* Remove all phys from the phymap */ phys = sas_phymap_ua2phys(pwp->hss_phymap, iport->ua); while ((phynum = sas_phymap_phys_next(phys)) != -1) { - sas_phymap_phy_rem(pwp->hss_phymap, phynum); + (void) sas_phymap_phy_rem(pwp->hss_phymap, phynum); } sas_phymap_phys_free(phys); } diff --git a/usr/src/uts/common/io/vr/vr.c b/usr/src/uts/common/io/vr/vr.c index db53aa569a..03fadffe72 100644 --- a/usr/src/uts/common/io/vr/vr.c +++ b/usr/src/uts/common/io/vr/vr.c @@ -528,7 +528,7 @@ vr_resume(dev_info_t *devinfo) vrp = (vr_t *)ddi_get_driver_private(devinfo); mutex_enter(&vrp->oplock); if (vrp->chip.state == CHIPSTATE_SUSPENDED_RUNNING) - vr_start(vrp); + (void) vr_start(vrp); mutex_exit(&vrp->oplock); return (DDI_SUCCESS); } diff --git a/usr/src/uts/common/rpc/rpcib.c b/usr/src/uts/common/rpc/rpcib.c index cf3d7283c9..31dfa13f18 100644 --- a/usr/src/uts/common/rpc/rpcib.c +++ b/usr/src/uts/common/rpc/rpcib.c @@ -4731,7 +4731,7 @@ rib_free_hca(rib_hca_t *hca) rib_rbufpool_destroy(hca, SEND_BUFFER); rib_destroy_cache(hca); if (rib_mod.rdma_count == 0) - rdma_unregister_mod(&rib_mod); + (void) rdma_unregister_mod(&rib_mod); (void) ibt_free_pd(hca->hca_hdl, hca->pd_hdl); (void) ibt_close_hca(hca->hca_hdl); hca->hca_hdl = NULL; diff --git a/usr/src/uts/common/sys/queue.h b/usr/src/uts/common/sys/queue.h index cb814390a9..3b04c572fe 100644 --- a/usr/src/uts/common/sys/queue.h +++ b/usr/src/uts/common/sys/queue.h @@ -31,15 +31,13 @@ * @(#)queue.h 8.5 (Berkeley) 8/20/94 */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #ifndef _SYS_QUEUE_H #define _SYS_QUEUE_H -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/note.h> #ifdef __cplusplus @@ -444,22 +442,26 @@ struct { \ #define QUEUEDEBUG_TAILQ_INSERT_HEAD(head, elm, field) \ if ((head)->tqh_first && \ (head)->tqh_first->field.tqe_prev != &(head)->tqh_first) \ - panic("TAILQ_INSERT_HEAD %p %s:%d", (head), __FILE__, __LINE__); + panic("TAILQ_INSERT_HEAD %p %s:%d", (void *)(head), \ + __FILE__, __LINE__); #define QUEUEDEBUG_TAILQ_INSERT_TAIL(head, elm, field) \ if (*(head)->tqh_last != NULL) \ - panic("TAILQ_INSERT_TAIL %p %s:%d", (head), __FILE__, __LINE__); + panic("TAILQ_INSERT_TAIL %p %s:%d", (void *)(head), \ + __FILE__, __LINE__); #define QUEUEDEBUG_TAILQ_OP(elm, field) \ if ((elm)->field.tqe_next && \ (elm)->field.tqe_next->field.tqe_prev != \ &(elm)->field.tqe_next) \ - panic("TAILQ_* forw %p %s:%d", (elm), __FILE__, __LINE__);\ + panic("TAILQ_* forw %p %s:%d", (void *)(elm), \ + __FILE__, __LINE__);\ if (*(elm)->field.tqe_prev != (elm)) \ - panic("TAILQ_* back %p %s:%d", (elm), __FILE__, __LINE__); + panic("TAILQ_* back %p %s:%d", (void *)(elm), \ + __FILE__, __LINE__); #define QUEUEDEBUG_TAILQ_PREREMOVE(head, elm, field) \ if ((elm)->field.tqe_next == NULL && \ (head)->tqh_last != &(elm)->field.tqe_next) \ panic("TAILQ_PREREMOVE head %p elm %p %s:%d", \ - (head), (elm), __FILE__, __LINE__); + (void *)(head), (void *)(elm), __FILE__, __LINE__); #define QUEUEDEBUG_TAILQ_POSTREMOVE(elm, field) \ (elm)->field.tqe_next = (void *)1L; \ (elm)->field.tqe_prev = (void *)1L; diff --git a/usr/src/uts/i86pc/dboot/dboot_startkern.c b/usr/src/uts/i86pc/dboot/dboot_startkern.c index f6a7456776..2438dc6292 100644 --- a/usr/src/uts/i86pc/dboot/dboot_startkern.c +++ b/usr/src/uts/i86pc/dboot/dboot_startkern.c @@ -273,8 +273,8 @@ dboot_halt(void) uint_t i = 10000; while (--i) - HYPERVISOR_yield(); - HYPERVISOR_shutdown(SHUTDOWN_poweroff); + (void) HYPERVISOR_yield(); + (void) HYPERVISOR_shutdown(SHUTDOWN_poweroff); } /* @@ -423,7 +423,7 @@ dump_tables(void) goto next_entry; dboot_printf("%s %p[0x%x] = %" PRIx64 ", va=%" PRIx64, - tabs + l, table, index, (uint64_t)pteval, va); + tabs + l, (void *)table, index, (uint64_t)pteval, va); pa = ma_to_pa(pteval & MMU_PAGEMASK); dboot_printf(" physaddr=%x\n", pa); diff --git a/usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c b/usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c index 98884e8891..3a237509ba 100644 --- a/usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c +++ b/usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c @@ -800,7 +800,7 @@ acpi_drv_prt_notify(ACPI_HANDLE hdl, UINT32 val) buf.Length = sizeof (str); buf.Pointer = str; - AcpiGetName(hdl, ACPI_FULL_PATHNAME, &buf); + (void) AcpiGetName(hdl, ACPI_FULL_PATHNAME, &buf); cmn_err(CE_NOTE, "AcpiNotify(%s, 0x%02x)", str, val); } #endif /* DEBUG */ @@ -1746,15 +1746,15 @@ acpi_drv_acpi_fini(void) for (bp = &acpi_drv_cbat[0]; bp < &acpi_drv_cbat[ACPI_DRV_MAX_BAT_NUM]; bp++) { if (bp->dev.valid) { - AcpiRemoveNotifyHandler(bp->dev.hdl, ACPI_DEVICE_NOTIFY, - acpi_drv_cbat_notify); + (void) AcpiRemoveNotifyHandler(bp->dev.hdl, + ACPI_DEVICE_NOTIFY, acpi_drv_cbat_notify); } } for (i = 0; i < nac; i++) { - AcpiRemoveNotifyHandler(acpi_drv_ac[i].dev.hdl, + (void) AcpiRemoveNotifyHandler(acpi_drv_ac[i].dev.hdl, ACPI_DEVICE_NOTIFY, acpi_drv_ac_notify); } - AcpiRemoveNotifyHandler(lid.dev.hdl, ACPI_DEVICE_NOTIFY, + (void) AcpiRemoveNotifyHandler(lid.dev.hdl, ACPI_DEVICE_NOTIFY, acpi_drv_lid_notify); if (acpi_hotkey.hotkey_method != HOTKEY_METHOD_NONE) diff --git a/usr/src/uts/i86pc/io/mp_platform_common.c b/usr/src/uts/i86pc/io/mp_platform_common.c index ebf20e9f18..e218415adb 100644 --- a/usr/src/uts/i86pc/io/mp_platform_common.c +++ b/usr/src/uts/i86pc/io/mp_platform_common.c @@ -653,13 +653,15 @@ acpi_probe(char *modname) if (mpa->LapicFlags & ACPI_MADT_ENABLED) { if (mpa->Id == local_ids[0]) { proc_ids[0] = mpa->ProcessorId; - acpica_map_cpu(0, mpa->ProcessorId); + (void) acpica_map_cpu(0, + mpa->ProcessorId); } else if (apic_nproc < NCPU && use_mp && apic_nproc < boot_ncpus) { local_ids[index] = mpa->Id; proc_ids[index] = mpa->ProcessorId; CPUSET_ADD(apic_cpumask, index); - acpica_map_cpu(index, mpa->ProcessorId); + (void) acpica_map_cpu(index, + mpa->ProcessorId); index++; apic_nproc++; } else if (apic_nproc == NCPU && !warned) { @@ -769,7 +771,8 @@ acpi_probe(char *modname) apic_nproc < boot_ncpus) { local_ids[index] = mpx2a->LocalApicId; CPUSET_ADD(apic_cpumask, index); - acpica_map_cpu(index, mpx2a->Uid); + (void) acpica_map_cpu(index, + mpx2a->Uid); index++; apic_nproc++; } else if (apic_nproc == NCPU && !warned) { @@ -875,7 +878,7 @@ acpi_probe(char *modname) * Call acpica_build_processor_map() now that we have * ACPI namesspace access */ - acpica_build_processor_map(); + (void) acpica_build_processor_map(); /* * Squirrel away the SCI and flags for later on diff --git a/usr/src/uts/i86xpv/boot/boot_xconsole.c b/usr/src/uts/i86xpv/boot/boot_xconsole.c index 5cc746057c..02624b16b8 100644 --- a/usr/src/uts/i86xpv/boot/boot_xconsole.c +++ b/usr/src/uts/i86xpv/boot/boot_xconsole.c @@ -20,12 +20,10 @@ */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/types.h> #include <sys/hypervisor.h> @@ -80,14 +78,14 @@ bcons_init_xen(char *cmdline) * Sets the "present" and "writable" bits in the PTE * plus user for amd64. */ - HYPERVISOR_update_va_mapping(vaddr, xen_info->shared_info | PTE_BITS, - UVMF_INVLPG | UVMF_LOCAL); + (void) HYPERVISOR_update_va_mapping(vaddr, + xen_info->shared_info | PTE_BITS, UVMF_INVLPG | UVMF_LOCAL); if (!DOMAIN_IS_INITDOMAIN(xen_info)) { /* * map the xen console ring buffers */ - HYPERVISOR_update_va_mapping(vaddr + MMU_PAGESIZE, + (void) HYPERVISOR_update_va_mapping(vaddr + MMU_PAGESIZE, mmu_ptob((x86pte_t)xen_info->console.domU.mfn) | PTE_BITS, UVMF_INVLPG | UVMF_LOCAL); } else { diff --git a/usr/src/uts/intel/io/drm/i915_dma.c b/usr/src/uts/intel/io/drm/i915_dma.c index 851c68fb97..48ff6926cb 100644 --- a/usr/src/uts/intel/io/drm/i915_dma.c +++ b/usr/src/uts/intel/io/drm/i915_dma.c @@ -934,7 +934,7 @@ int i915_driver_load(drm_device_t *dev, unsigned long flags) dev_priv->mmio_map->size = size; dev_priv->mmio_map->type = _DRM_REGISTERS; dev_priv->mmio_map->flags = _DRM_REMOVABLE; - drm_ioremap(dev, dev_priv->mmio_map); + (void) drm_ioremap(dev, dev_priv->mmio_map); DRM_DEBUG("i915_driverload mmio %p mmio_map->dev_addr %x", dev_priv->mmio_map, dev_priv->mmio_map->dev_addr); diff --git a/usr/src/uts/intel/io/drm/i915_gem.c b/usr/src/uts/intel/io/drm/i915_gem.c index 2e4c13448e..5570c2d3ac 100644 --- a/usr/src/uts/intel/io/drm/i915_gem.c +++ b/usr/src/uts/intel/io/drm/i915_gem.c @@ -102,8 +102,8 @@ i915_gem_init_ioctl(DRM_IOCTL_ARGS) dev->gtt_total = (uint32_t) (args.gtt_end - args.gtt_start); - drm_mm_init(&dev_priv->mm.gtt_space, (unsigned long) args.gtt_start, - dev->gtt_total); + (void) drm_mm_init(&dev_priv->mm.gtt_space, + (unsigned long) args.gtt_start, dev->gtt_total); DRM_DEBUG("i915_gem_init_ioctl dev->gtt_total %x, dev_priv->mm.gtt_space 0x%x gtt_start 0x%lx", dev->gtt_total, dev_priv->mm.gtt_space, args.gtt_start); ASSERT(dev->gtt_total != 0); @@ -868,7 +868,7 @@ void i965_reset(struct drm_device *dev, u8 flags) RING_VALID); i915_kernel_lost_context(dev); - drm_irq_install(dev); + (void) drm_irq_install(dev); } /* @@ -1089,7 +1089,8 @@ i915_gem_object_unbind(struct drm_gem_object *obj, uint32_t type) } if (!obj_priv->agp_mem) { - drm_agp_unbind_pages(dev, obj->size / PAGE_SIZE, obj_priv->gtt_offset, type); + (void) drm_agp_unbind_pages(dev, obj->size / PAGE_SIZE, + obj_priv->gtt_offset, type); obj_priv->agp_mem = -1; } @@ -2865,7 +2866,7 @@ i915_gem_entervt_ioctl(DRM_IOCTL_ARGS) spin_unlock(&dev->struct_mutex); - drm_irq_install(dev); + (void) drm_irq_install(dev); return 0; } @@ -2882,7 +2883,7 @@ i915_gem_leavevt_ioctl(DRM_IOCTL_ARGS) return ENODEV; ret = i915_gem_idle(dev, 0); - drm_irq_uninstall(dev); + (void) drm_irq_uninstall(dev); drm_core_ioremapfree(&dev_priv->mm.gtt_mapping, dev); return ret; diff --git a/usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c b/usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c index 78949ebca1..56b7a09e4a 100644 --- a/usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c +++ b/usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c @@ -3809,7 +3809,7 @@ pcicfg_probe_children(dev_info_t *parent, uint_t bus, uint_t device, * bus_t fields */ if (is_pcie) - pcie_init_bus(new_child, 0, PCIE_BUS_FINAL); + (void) pcie_init_bus(new_child, 0, PCIE_BUS_FINAL); return (PCICFG_SUCCESS); @@ -4465,7 +4465,7 @@ pf_setup_end: (void) pcicfg_device_on(h); if (is_pcie) - pcie_init_bus(new_child, 0, PCIE_BUS_FINAL); + (void) pcie_init_bus(new_child, 0, PCIE_BUS_FINAL); if (ndi_devi_online(new_child, NDI_NO_EVENT|NDI_CONFIG) != NDI_SUCCESS) { DEBUG0("Unable to online bridge\n"); diff --git a/usr/src/uts/intel/io/smcp/smcp.c b/usr/src/uts/intel/io/smcp/smcp.c index a504c132ae..aa0999eb50 100644 --- a/usr/src/uts/intel/io/smcp/smcp.c +++ b/usr/src/uts/intel/io/smcp/smcp.c @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -558,7 +558,7 @@ SMCG_init_board(gld_mac_info_t *macinfo) dbuf.fragment_list[0].fragment_ptr = (unsigned char *)smcg->bdesc[i]->physaddr; - LM_Put_Rx_Frag(&dbuf, pAd); + (void) LM_Put_Rx_Frag(&dbuf, pAd); } /* @@ -1002,9 +1002,9 @@ SMCG_intr(gld_mac_info_t *macinfo) mutex_enter(&smcg->rbuf_lock); mutex_enter(&smcg->txbuf_lock); mutex_enter(&smcg->lm_lock); - LM_Disable_Adapter(pAd); + (void) LM_Disable_Adapter(pAd); rc = LM_Service_Events(pAd); - LM_Enable_Adapter(pAd); + (void) LM_Enable_Adapter(pAd); mutex_exit(&smcg->lm_lock); mutex_exit(&smcg->txbuf_lock); diff --git a/usr/src/uts/intel/pcbe/opteron_pcbe.c b/usr/src/uts/intel/pcbe/opteron_pcbe.c index ea8ed5b64a..18a309eca6 100644 --- a/usr/src/uts/intel/pcbe/opteron_pcbe.c +++ b/usr/src/uts/intel/pcbe/opteron_pcbe.c @@ -447,10 +447,10 @@ opt_pcbe_init(void) if (amd_family == 0xf) /* Some tools expect this string for family 0fh */ - snprintf(amd_pcbe_impl_name, sizeof (amd_pcbe_impl_name), + (void) snprintf(amd_pcbe_impl_name, sizeof (amd_pcbe_impl_name), "AMD Opteron & Athlon64"); else - snprintf(amd_pcbe_impl_name, sizeof (amd_pcbe_impl_name), + (void) snprintf(amd_pcbe_impl_name, sizeof (amd_pcbe_impl_name), "AMD Family %02xh%s", amd_family, AMD_PCBE_SUPPORTED(amd_family) ? "" :" (unsupported)"); @@ -481,7 +481,7 @@ opt_pcbe_init(void) } else { amd_pcbe_cpuref = amd_generic_bkdg; - snprintf(amd_pcbe_cpuref, AMD_CPUREF_SIZE, + (void) snprintf(amd_pcbe_cpuref, AMD_CPUREF_SIZE, "See BIOS and Kernel Developer's Guide " \ "(BKDG) For AMD Family %02xh Processors. " \ "(Note that this pcbe does not explicitly " \ diff --git a/usr/src/uts/intel/qlt/Makefile b/usr/src/uts/intel/qlt/Makefile index 912715239e..ac84802a9b 100644 --- a/usr/src/uts/intel/qlt/Makefile +++ b/usr/src/uts/intel/qlt/Makefile @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2008 Sun Microsystems, Inc. All rights reserved. +# Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # This makefile drives the production of the qlt driver for @@ -59,6 +59,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) MODSTUBS_DIR = $(OBJS_DIR) LDFLAGS += -dy -Ndrv/fct -Ndrv/stmf CFLAGS += -DUNIQUE_FW_NAME +LINTTAGS += -DUNIQUE_FW_NAME INC_PATH += -I$(UTSBASE)/common/io/comstar/port/qlt INC_PATH += -I$(UTSBASE)/common/sys diff --git a/usr/src/uts/sun/io/scsi/adapters/sf.c b/usr/src/uts/sun/io/scsi/adapters/sf.c index 70f758a01f..57e486d7cb 100644 --- a/usr/src/uts/sun/io/scsi/adapters/sf.c +++ b/usr/src/uts/sun/io/scsi/adapters/sf.c @@ -1092,7 +1092,7 @@ sf_detach(dev_info_t *dip, ddi_detach_cmd_t cmd) } /* detach this instance of the HBA driver */ - scsi_hba_detach(dip); + (void) scsi_hba_detach(dip); scsi_hba_tran_free(sf->sf_tran); /* deallocate/unbind DMA handle for lilp map */ diff --git a/usr/src/uts/sun4/io/pcicfg.c b/usr/src/uts/sun4/io/pcicfg.c index 1701be2c59..1bbf6a0cc6 100644 --- a/usr/src/uts/sun4/io/pcicfg.c +++ b/usr/src/uts/sun4/io/pcicfg.c @@ -4170,7 +4170,7 @@ pcicfg_probe_children(dev_info_t *parent, uint_t bus, uint_t device, * in bus_t. */ if (is_pcie) - pcie_init_bus(new_child, 0, PCIE_BUS_FINAL); + (void) pcie_init_bus(new_child, 0, PCIE_BUS_FINAL); return (PCICFG_SUCCESS); @@ -4748,7 +4748,7 @@ done: failed: if (is_pcie) { if (ret == PCICFG_SUCCESS) - pcie_init_bus(new_child, 0, PCIE_BUS_FINAL); + (void) pcie_init_bus(new_child, 0, PCIE_BUS_FINAL); else pcie_fini_bus(new_child, PCIE_BUS_FINAL); } @@ -5221,7 +5221,7 @@ pcicfg_probe_bridge(dev_info_t *new_child, ddi_acc_handle_t h, uint_t bus, (void) pcicfg_device_on(h); if (is_pcie) - pcie_init_bus(new_child, 0, PCIE_BUS_FINAL); + (void) pcie_init_bus(new_child, 0, PCIE_BUS_FINAL); if (ndi_devi_online(new_child, NDI_NO_EVENT|NDI_CONFIG) != NDI_SUCCESS) { DEBUG0("Unable to online bridge\n"); diff --git a/usr/src/uts/sun4u/starfire/io/idn_proto.c b/usr/src/uts/sun4u/starfire/io/idn_proto.c index 745e5db4ef..936653ec04 100644 --- a/usr/src/uts/sun4u/starfire/io/idn_proto.c +++ b/usr/src/uts/sun4u/starfire/io/idn_proto.c @@ -12662,7 +12662,7 @@ idn_deactivate_channel_services(int channel, idn_chanop_t chanop) } PR_CHAN("%s: pointing chansvr %d to morgue (0x%p)\n", - proc, c, central_morguep ? central_morguep + proc, c, central_morguep ? (void *)central_morguep : (void *)(csp->ch_recv_morguep)); if (central_morguep == NULL) { diff --git a/usr/src/uts/sun4v/ml/hcall.s b/usr/src/uts/sun4v/ml/hcall.s index 8dbeafd124..fab9ebbf0f 100644 --- a/usr/src/uts/sun4v/ml/hcall.s +++ b/usr/src/uts/sun4v/ml/hcall.s @@ -353,12 +353,12 @@ hv_guest_suspend(void) /*ARGSUSED*/ uint64_t -hv_set_tick_npt(uint64_t npt) +hv_tick_set_npt(uint64_t npt) { return (0); } /*ARGSUSED*/ uint64_t -hv_set_stick_npt(uint64_t npt) +hv_stick_set_npt(uint64_t npt) { return (0); } /*ARGSUSED*/ diff --git a/usr/src/uts/sun4v/os/suspend.c b/usr/src/uts/sun4v/os/suspend.c index 2de4331424..42b288fe52 100644 --- a/usr/src/uts/sun4v/os/suspend.c +++ b/usr/src/uts/sun4v/os/suspend.c @@ -212,8 +212,8 @@ set_tick_offsets(uint64_t source_tick, uint64_t source_stick) static void enable_tick_stick_npt(void) { - hv_stick_set_npt(1); - hv_tick_set_npt(1); + (void) hv_stick_set_npt(1); + (void) hv_tick_set_npt(1); } /* @@ -225,8 +225,8 @@ suspend_sync_tick_stick_npt(void) { if (tick_stick_emulation_active) { DBG("enabling {%%tick/%%stick}.NPT on CPU 0x%x", CPU->cpu_id); - hv_stick_set_npt(1); - hv_tick_set_npt(1); + (void) hv_stick_set_npt(1); + (void) hv_tick_set_npt(1); } else { ASSERT(gettick_npt() == 0); ASSERT(getstick_npt() == 0); |
