aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKylene Hall <kjhall@us.ibm.com>2005-06-24 01:01:50 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-24 03:05:24 -0400
commitdff37e4b0ad7bca3616f829c84bcf4ddd385d2c4 (patch)
tree242339896cd0abdba048a8701424cdf67f7ee83d
parent3122a88a242454efe72930e56a3e4d56ee534f3c (diff)
[PATCH] tpm: address missing const defs
Add "const" to several static arrays that were missing it in their definitions. Signed-off-by: Kylene Hall <kjhall@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/char/tpm/tpm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c
index 7da4fe921277..9a5d46a3c172 100644
--- a/drivers/char/tpm/tpm.c
+++ b/drivers/char/tpm/tpm.c
@@ -193,7 +193,7 @@ out_recv:
193 193
194#define TPM_DIGEST_SIZE 20 194#define TPM_DIGEST_SIZE 20
195#define CAP_PCR_RESULT_SIZE 18 195#define CAP_PCR_RESULT_SIZE 18
196static u8 cap_pcr[] = { 196static const u8 cap_pcr[] = {
197 0, 193, /* TPM_TAG_RQU_COMMAND */ 197 0, 193, /* TPM_TAG_RQU_COMMAND */
198 0, 0, 0, 22, /* length */ 198 0, 0, 0, 22, /* length */
199 0, 0, 0, 101, /* TPM_ORD_GetCapability */ 199 0, 0, 0, 101, /* TPM_ORD_GetCapability */
@@ -203,7 +203,7 @@ static u8 cap_pcr[] = {
203}; 203};
204 204
205#define READ_PCR_RESULT_SIZE 30 205#define READ_PCR_RESULT_SIZE 30
206static u8 pcrread[] = { 206static const u8 pcrread[] = {
207 0, 193, /* TPM_TAG_RQU_COMMAND */ 207 0, 193, /* TPM_TAG_RQU_COMMAND */
208 0, 0, 0, 14, /* length */ 208 0, 0, 0, 14, /* length */
209 0, 0, 0, 21, /* TPM_ORD_PcrRead */ 209 0, 0, 0, 21, /* TPM_ORD_PcrRead */
@@ -247,7 +247,7 @@ static ssize_t show_pcrs(struct device *dev, struct device_attribute *attr, char
247static DEVICE_ATTR(pcrs, S_IRUGO, show_pcrs, NULL); 247static DEVICE_ATTR(pcrs, S_IRUGO, show_pcrs, NULL);
248 248
249#define READ_PUBEK_RESULT_SIZE 314 249#define READ_PUBEK_RESULT_SIZE 314
250static u8 readpubek[] = { 250static const u8 readpubek[] = {
251 0, 193, /* TPM_TAG_RQU_COMMAND */ 251 0, 193, /* TPM_TAG_RQU_COMMAND */
252 0, 0, 0, 30, /* length */ 252 0, 0, 0, 30, /* length */
253 0, 0, 0, 124, /* TPM_ORD_ReadPubek */ 253 0, 0, 0, 124, /* TPM_ORD_ReadPubek */
@@ -310,7 +310,7 @@ static ssize_t show_pubek(struct device *dev, struct device_attribute *attr, cha
310static DEVICE_ATTR(pubek, S_IRUGO, show_pubek, NULL); 310static DEVICE_ATTR(pubek, S_IRUGO, show_pubek, NULL);
311 311
312#define CAP_VER_RESULT_SIZE 18 312#define CAP_VER_RESULT_SIZE 18
313static u8 cap_version[] = { 313static const u8 cap_version[] = {
314 0, 193, /* TPM_TAG_RQU_COMMAND */ 314 0, 193, /* TPM_TAG_RQU_COMMAND */
315 0, 0, 0, 18, /* length */ 315 0, 0, 0, 18, /* length */
316 0, 0, 0, 101, /* TPM_ORD_GetCapability */ 316 0, 0, 0, 101, /* TPM_ORD_GetCapability */
@@ -319,7 +319,7 @@ static u8 cap_version[] = {
319}; 319};
320 320
321#define CAP_MANUFACTURER_RESULT_SIZE 18 321#define CAP_MANUFACTURER_RESULT_SIZE 18
322static u8 cap_manufacturer[] = { 322static const u8 cap_manufacturer[] = {
323 0, 193, /* TPM_TAG_RQU_COMMAND */ 323 0, 193, /* TPM_TAG_RQU_COMMAND */
324 0, 0, 0, 22, /* length */ 324 0, 0, 0, 22, /* length */
325 0, 0, 0, 101, /* TPM_ORD_GetCapability */ 325 0, 0, 0, 101, /* TPM_ORD_GetCapability */