Fix other warnings

Most were harmless, but the change to ACCESS_ONCE from volatile
cast is probably useful.
Expanding macro, we basically went from:
    m = (volatile struct sdma_vl_map *)dd->sdma_map;
to
    m = *(volatile struct sdma_vl_map **)&(dd->sdma_map);
i.e. the explicit lookup is at a different level.
This commit is contained in:
Dominique Martinet
2017-09-15 11:16:36 +09:00
committed by Balazs Gerofi
parent 2dc85ee417
commit 7366da4390
5 changed files with 18 additions and 19 deletions

View File

@@ -764,8 +764,8 @@ static inline int sdma_txadd_page(
u16 len)
{
dma_addr_t addr;
int rval;
#ifdef __HFI1_ORIG__
int rval;
/* TODO: check this coealesce thing */
hfi1_cdbg(AIOWRITE, "+");
if ((unlikely(tx->num_desc == tx->desc_limit))) {