Browse Source

[qib7322] Avoid unused variable warning in gcc 4.6

Reported-by: Ralph Giles <giles@thaumas.net>
Tested-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
e9612cf5b8
1 changed files with 0 additions and 4 deletions
  1. 0
    4
      src/drivers/infiniband/qib7322.c

+ 0
- 4
src/drivers/infiniband/qib7322.c View File

886
 	unsigned long egrbase;
886
 	unsigned long egrbase;
887
 	unsigned int eager_array_size_kernel;
887
 	unsigned int eager_array_size_kernel;
888
 	unsigned int eager_array_size_user;
888
 	unsigned int eager_array_size_user;
889
-	unsigned int user_context_mask;
890
 	unsigned int ctx;
889
 	unsigned int ctx;
891
 
890
 
892
 	/* Select configuration based on number of contexts */
891
 	/* Select configuration based on number of contexts */
895
 		contextcfg = QIB7322_CONTEXTCFG_6CTX;
894
 		contextcfg = QIB7322_CONTEXTCFG_6CTX;
896
 		eager_array_size_kernel = QIB7322_EAGER_ARRAY_SIZE_6CTX_KERNEL;
895
 		eager_array_size_kernel = QIB7322_EAGER_ARRAY_SIZE_6CTX_KERNEL;
897
 		eager_array_size_user = QIB7322_EAGER_ARRAY_SIZE_6CTX_USER;
896
 		eager_array_size_user = QIB7322_EAGER_ARRAY_SIZE_6CTX_USER;
898
-		user_context_mask = 0x000f;
899
 		break;
897
 		break;
900
 	case 10:
898
 	case 10:
901
 		contextcfg = QIB7322_CONTEXTCFG_10CTX;
899
 		contextcfg = QIB7322_CONTEXTCFG_10CTX;
902
 		eager_array_size_kernel = QIB7322_EAGER_ARRAY_SIZE_10CTX_KERNEL;
900
 		eager_array_size_kernel = QIB7322_EAGER_ARRAY_SIZE_10CTX_KERNEL;
903
 		eager_array_size_user = QIB7322_EAGER_ARRAY_SIZE_10CTX_USER;
901
 		eager_array_size_user = QIB7322_EAGER_ARRAY_SIZE_10CTX_USER;
904
-		user_context_mask = 0x00ff;
905
 		break;
902
 		break;
906
 	case 18:
903
 	case 18:
907
 		contextcfg = QIB7322_CONTEXTCFG_18CTX;
904
 		contextcfg = QIB7322_CONTEXTCFG_18CTX;
908
 		eager_array_size_kernel = QIB7322_EAGER_ARRAY_SIZE_18CTX_KERNEL;
905
 		eager_array_size_kernel = QIB7322_EAGER_ARRAY_SIZE_18CTX_KERNEL;
909
 		eager_array_size_user = QIB7322_EAGER_ARRAY_SIZE_18CTX_USER;
906
 		eager_array_size_user = QIB7322_EAGER_ARRAY_SIZE_18CTX_USER;
910
-		user_context_mask = 0xffff;
911
 		break;
907
 		break;
912
 	default:
908
 	default:
913
 		linker_assert ( 0, invalid_QIB7322_NUM_CONTEXTS );
909
 		linker_assert ( 0, invalid_QIB7322_NUM_CONTEXTS );

Loading…
Cancel
Save