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:
committed by
Balazs Gerofi
parent
2dc85ee417
commit
7366da4390
@@ -421,13 +421,10 @@ long hfi1_file_ioctl(void *private_data, unsigned int cmd,
|
||||
{
|
||||
struct hfi1_filedata *fd = private_data;
|
||||
struct hfi1_ctxtdata *uctxt = fd->uctxt;
|
||||
struct hfi1_user_info uinfo;
|
||||
#if 0
|
||||
struct hfi1_tid_info tinfo;
|
||||
#endif
|
||||
int ret = 0;
|
||||
unsigned long addr;
|
||||
int uval = 0;
|
||||
unsigned long ul_uval = 0;
|
||||
u16 uval16 = 0;
|
||||
|
||||
hfi1_cdbg(IOCTL, "IOCTL recv: 0x%x", cmd);
|
||||
if (cmd != HFI1_IOCTL_ASSIGN_CTXT &&
|
||||
@@ -435,9 +432,6 @@ long hfi1_file_ioctl(void *private_data, unsigned int cmd,
|
||||
!uctxt)
|
||||
return -EINVAL;
|
||||
|
||||
if (rdtsc() - t_s < 400000000)
|
||||
return;
|
||||
|
||||
switch (cmd) {
|
||||
case HFI1_IOCTL_ASSIGN_CTXT:
|
||||
#if 0
|
||||
|
||||
Reference in New Issue
Block a user