diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2015-02-12 07:08:27 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-03-25 06:49:33 -0400 |
commit | 5a79859ae0f35d25c67a03e82bf0c80592f16a39 (patch) | |
tree | 37264d49f069812f19ced94e6ae171814fb7e498 /drivers/s390 | |
parent | 1833c9f647e9bda1cd24653ff8f9c207b5f5b911 (diff) |
s390: remove 31 bit support
Remove the 31 bit support in order to reduce maintenance cost and
effectively remove dead code. Since a couple of years there is no
distribution left that comes with a 31 bit kernel.
The 31 bit kernel also has been broken since more than a year before
anybody noticed. In addition I added a removal warning to the kernel
shown at ipl for 5 minutes: a960062e5826 ("s390: add 31 bit warning
message") which let everybody know about the plan to remove 31 bit
code. We didn't get any response.
Given that the last 31 bit only machine was introduced in 1999 let's
remove the code.
Anybody with 31 bit user space code can still use the compat mode.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/block/dasd.c | 2 | ||||
-rw-r--r-- | drivers/s390/block/dasd_diag.h | 42 | ||||
-rw-r--r-- | drivers/s390/block/dasd_eckd.c | 6 | ||||
-rw-r--r-- | drivers/s390/block/dasd_fba.c | 2 | ||||
-rw-r--r-- | drivers/s390/char/Kconfig | 2 | ||||
-rw-r--r-- | drivers/s390/char/sclp_sdias.c | 4 | ||||
-rw-r--r-- | drivers/s390/char/zcore.c | 32 | ||||
-rw-r--r-- | drivers/s390/cio/cio.c | 2 | ||||
-rw-r--r-- | drivers/s390/cio/qdio.h | 7 | ||||
-rw-r--r-- | drivers/s390/cio/qdio_setup.c | 3 | ||||
-rw-r--r-- | drivers/s390/crypto/ap_bus.c | 20 | ||||
-rw-r--r-- | drivers/s390/net/ctcm_mpc.c | 12 |
12 files changed, 1 insertions, 133 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index be34ef41b7c7..697a0b2158e6 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c | |||
@@ -1237,7 +1237,6 @@ EXPORT_SYMBOL(dasd_smalloc_request); | |||
1237 | */ | 1237 | */ |
1238 | void dasd_kfree_request(struct dasd_ccw_req *cqr, struct dasd_device *device) | 1238 | void dasd_kfree_request(struct dasd_ccw_req *cqr, struct dasd_device *device) |
1239 | { | 1239 | { |
1240 | #ifdef CONFIG_64BIT | ||
1241 | struct ccw1 *ccw; | 1240 | struct ccw1 *ccw; |
1242 | 1241 | ||
1243 | /* Clear any idals used for the request. */ | 1242 | /* Clear any idals used for the request. */ |
@@ -1245,7 +1244,6 @@ void dasd_kfree_request(struct dasd_ccw_req *cqr, struct dasd_device *device) | |||
1245 | do { | 1244 | do { |
1246 | clear_normalized_cda(ccw); | 1245 | clear_normalized_cda(ccw); |
1247 | } while (ccw++->flags & (CCW_FLAG_CC | CCW_FLAG_DC)); | 1246 | } while (ccw++->flags & (CCW_FLAG_CC | CCW_FLAG_DC)); |
1248 | #endif | ||
1249 | kfree(cqr->cpaddr); | 1247 | kfree(cqr->cpaddr); |
1250 | kfree(cqr->data); | 1248 | kfree(cqr->data); |
1251 | kfree(cqr); | 1249 | kfree(cqr); |
diff --git a/drivers/s390/block/dasd_diag.h b/drivers/s390/block/dasd_diag.h index a803cc731586..e84a5468d810 100644 --- a/drivers/s390/block/dasd_diag.h +++ b/drivers/s390/block/dasd_diag.h | |||
@@ -38,8 +38,6 @@ struct dasd_diag_characteristics { | |||
38 | u8 rdev_features; | 38 | u8 rdev_features; |
39 | } __attribute__ ((packed, aligned(4))); | 39 | } __attribute__ ((packed, aligned(4))); |
40 | 40 | ||
41 | |||
42 | #ifdef CONFIG_64BIT | ||
43 | #define DASD_DIAG_FLAGA_DEFAULT DASD_DIAG_FLAGA_FORMAT_64BIT | 41 | #define DASD_DIAG_FLAGA_DEFAULT DASD_DIAG_FLAGA_FORMAT_64BIT |
44 | 42 | ||
45 | typedef u64 blocknum_t; | 43 | typedef u64 blocknum_t; |
@@ -80,43 +78,3 @@ struct dasd_diag_rw_io { | |||
80 | struct dasd_diag_bio *bio_list; | 78 | struct dasd_diag_bio *bio_list; |
81 | u8 spare4[8]; | 79 | u8 spare4[8]; |
82 | } __attribute__ ((packed, aligned(8))); | 80 | } __attribute__ ((packed, aligned(8))); |
83 | #else /* CONFIG_64BIT */ | ||
84 | #define DASD_DIAG_FLAGA_DEFAULT 0x0 | ||
85 | |||
86 | typedef u32 blocknum_t; | ||
87 | typedef s32 sblocknum_t; | ||
88 | |||
89 | struct dasd_diag_bio { | ||
90 | u8 type; | ||
91 | u8 status; | ||
92 | u16 spare1; | ||
93 | blocknum_t block_number; | ||
94 | u32 alet; | ||
95 | void *buffer; | ||
96 | } __attribute__ ((packed, aligned(8))); | ||
97 | |||
98 | struct dasd_diag_init_io { | ||
99 | u16 dev_nr; | ||
100 | u8 flaga; | ||
101 | u8 spare1[21]; | ||
102 | u32 block_size; | ||
103 | blocknum_t offset; | ||
104 | sblocknum_t start_block; | ||
105 | blocknum_t end_block; | ||
106 | u8 spare2[24]; | ||
107 | } __attribute__ ((packed, aligned(8))); | ||
108 | |||
109 | struct dasd_diag_rw_io { | ||
110 | u16 dev_nr; | ||
111 | u8 flaga; | ||
112 | u8 spare1[21]; | ||
113 | u8 key; | ||
114 | u8 flags; | ||
115 | u8 spare2[2]; | ||
116 | u32 block_count; | ||
117 | u32 alet; | ||
118 | struct dasd_diag_bio *bio_list; | ||
119 | u32 interrupt_params; | ||
120 | u8 spare3[20]; | ||
121 | } __attribute__ ((packed, aligned(8))); | ||
122 | #endif /* CONFIG_64BIT */ | ||
diff --git a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c index d47f5b99623a..49b48a887c66 100644 --- a/drivers/s390/block/dasd_eckd.c +++ b/drivers/s390/block/dasd_eckd.c | |||
@@ -1633,7 +1633,6 @@ static void dasd_eckd_kick_validate_server(struct dasd_device *device) | |||
1633 | 1633 | ||
1634 | static u32 get_fcx_max_data(struct dasd_device *device) | 1634 | static u32 get_fcx_max_data(struct dasd_device *device) |
1635 | { | 1635 | { |
1636 | #if defined(CONFIG_64BIT) | ||
1637 | int tpm, mdc; | 1636 | int tpm, mdc; |
1638 | int fcx_in_css, fcx_in_gneq, fcx_in_features; | 1637 | int fcx_in_css, fcx_in_gneq, fcx_in_features; |
1639 | struct dasd_eckd_private *private; | 1638 | struct dasd_eckd_private *private; |
@@ -1657,9 +1656,6 @@ static u32 get_fcx_max_data(struct dasd_device *device) | |||
1657 | return 0; | 1656 | return 0; |
1658 | } else | 1657 | } else |
1659 | return mdc * FCX_MAX_DATA_FACTOR; | 1658 | return mdc * FCX_MAX_DATA_FACTOR; |
1660 | #else | ||
1661 | return 0; | ||
1662 | #endif | ||
1663 | } | 1659 | } |
1664 | 1660 | ||
1665 | /* | 1661 | /* |
@@ -2615,10 +2611,8 @@ static struct dasd_ccw_req *dasd_eckd_build_cp_cmd_single( | |||
2615 | /* Eckd can only do full blocks. */ | 2611 | /* Eckd can only do full blocks. */ |
2616 | return ERR_PTR(-EINVAL); | 2612 | return ERR_PTR(-EINVAL); |
2617 | count += bv.bv_len >> (block->s2b_shift + 9); | 2613 | count += bv.bv_len >> (block->s2b_shift + 9); |
2618 | #if defined(CONFIG_64BIT) | ||
2619 | if (idal_is_needed (page_address(bv.bv_page), bv.bv_len)) | 2614 | if (idal_is_needed (page_address(bv.bv_page), bv.bv_len)) |
2620 | cidaw += bv.bv_len >> (block->s2b_shift + 9); | 2615 | cidaw += bv.bv_len >> (block->s2b_shift + 9); |
2621 | #endif | ||
2622 | } | 2616 | } |
2623 | /* Paranoia. */ | 2617 | /* Paranoia. */ |
2624 | if (count != last_rec - first_rec + 1) | 2618 | if (count != last_rec - first_rec + 1) |
diff --git a/drivers/s390/block/dasd_fba.c b/drivers/s390/block/dasd_fba.c index 2c8e68bf9a1c..c9262e78938b 100644 --- a/drivers/s390/block/dasd_fba.c +++ b/drivers/s390/block/dasd_fba.c | |||
@@ -287,10 +287,8 @@ static struct dasd_ccw_req *dasd_fba_build_cp(struct dasd_device * memdev, | |||
287 | /* Fba can only do full blocks. */ | 287 | /* Fba can only do full blocks. */ |
288 | return ERR_PTR(-EINVAL); | 288 | return ERR_PTR(-EINVAL); |
289 | count += bv.bv_len >> (block->s2b_shift + 9); | 289 | count += bv.bv_len >> (block->s2b_shift + 9); |
290 | #if defined(CONFIG_64BIT) | ||
291 | if (idal_is_needed (page_address(bv.bv_page), bv.bv_len)) | 290 | if (idal_is_needed (page_address(bv.bv_page), bv.bv_len)) |
292 | cidaw += bv.bv_len / blksize; | 291 | cidaw += bv.bv_len / blksize; |
293 | #endif | ||
294 | } | 292 | } |
295 | /* Paranoia. */ | 293 | /* Paranoia. */ |
296 | if (count != last_rec - first_rec + 1) | 294 | if (count != last_rec - first_rec + 1) |
diff --git a/drivers/s390/char/Kconfig b/drivers/s390/char/Kconfig index a5c6f7e157aa..eaca3e006301 100644 --- a/drivers/s390/char/Kconfig +++ b/drivers/s390/char/Kconfig | |||
@@ -115,7 +115,7 @@ config SCLP_ASYNC_ID | |||
115 | config HMC_DRV | 115 | config HMC_DRV |
116 | def_tristate m | 116 | def_tristate m |
117 | prompt "Support for file transfers from HMC drive CD/DVD-ROM" | 117 | prompt "Support for file transfers from HMC drive CD/DVD-ROM" |
118 | depends on S390 && 64BIT | 118 | depends on S390 |
119 | select CRC16 | 119 | select CRC16 |
120 | help | 120 | help |
121 | This option enables support for file transfers from a Hardware | 121 | This option enables support for file transfers from a Hardware |
diff --git a/drivers/s390/char/sclp_sdias.c b/drivers/s390/char/sclp_sdias.c index 561a0414b352..eb7cb076c001 100644 --- a/drivers/s390/char/sclp_sdias.c +++ b/drivers/s390/char/sclp_sdias.c | |||
@@ -178,11 +178,7 @@ int sclp_sdias_copy(void *dest, int start_blk, int nr_blks) | |||
178 | sccb.evbuf.event_qual = SDIAS_EQ_STORE_DATA; | 178 | sccb.evbuf.event_qual = SDIAS_EQ_STORE_DATA; |
179 | sccb.evbuf.data_id = SDIAS_DI_FCP_DUMP; | 179 | sccb.evbuf.data_id = SDIAS_DI_FCP_DUMP; |
180 | sccb.evbuf.event_id = 4712; | 180 | sccb.evbuf.event_id = 4712; |
181 | #ifdef CONFIG_64BIT | ||
182 | sccb.evbuf.asa_size = SDIAS_ASA_SIZE_64; | 181 | sccb.evbuf.asa_size = SDIAS_ASA_SIZE_64; |
183 | #else | ||
184 | sccb.evbuf.asa_size = SDIAS_ASA_SIZE_32; | ||
185 | #endif | ||
186 | sccb.evbuf.event_status = 0; | 182 | sccb.evbuf.event_status = 0; |
187 | sccb.evbuf.blk_cnt = nr_blks; | 183 | sccb.evbuf.blk_cnt = nr_blks; |
188 | sccb.evbuf.asa = (unsigned long)dest; | 184 | sccb.evbuf.asa = (unsigned long)dest; |
diff --git a/drivers/s390/char/zcore.c b/drivers/s390/char/zcore.c index efcf48481c5f..a68fcfd1d48c 100644 --- a/drivers/s390/char/zcore.c +++ b/drivers/s390/char/zcore.c | |||
@@ -212,11 +212,7 @@ static struct zcore_header zcore_header = { | |||
212 | .dump_level = 0, | 212 | .dump_level = 0, |
213 | .page_size = PAGE_SIZE, | 213 | .page_size = PAGE_SIZE, |
214 | .mem_start = 0, | 214 | .mem_start = 0, |
215 | #ifdef CONFIG_64BIT | ||
216 | .build_arch = DUMP_ARCH_S390X, | 215 | .build_arch = DUMP_ARCH_S390X, |
217 | #else | ||
218 | .build_arch = DUMP_ARCH_S390, | ||
219 | #endif | ||
220 | }; | 216 | }; |
221 | 217 | ||
222 | /* | 218 | /* |
@@ -516,23 +512,6 @@ static const struct file_operations zcore_hsa_fops = { | |||
516 | .llseek = no_llseek, | 512 | .llseek = no_llseek, |
517 | }; | 513 | }; |
518 | 514 | ||
519 | #ifdef CONFIG_32BIT | ||
520 | |||
521 | static void __init set_lc_mask(struct save_area *map) | ||
522 | { | ||
523 | memset(&map->ext_save, 0xff, sizeof(map->ext_save)); | ||
524 | memset(&map->timer, 0xff, sizeof(map->timer)); | ||
525 | memset(&map->clk_cmp, 0xff, sizeof(map->clk_cmp)); | ||
526 | memset(&map->psw, 0xff, sizeof(map->psw)); | ||
527 | memset(&map->pref_reg, 0xff, sizeof(map->pref_reg)); | ||
528 | memset(&map->acc_regs, 0xff, sizeof(map->acc_regs)); | ||
529 | memset(&map->fp_regs, 0xff, sizeof(map->fp_regs)); | ||
530 | memset(&map->gp_regs, 0xff, sizeof(map->gp_regs)); | ||
531 | memset(&map->ctrl_regs, 0xff, sizeof(map->ctrl_regs)); | ||
532 | } | ||
533 | |||
534 | #else /* CONFIG_32BIT */ | ||
535 | |||
536 | static void __init set_lc_mask(struct save_area *map) | 515 | static void __init set_lc_mask(struct save_area *map) |
537 | { | 516 | { |
538 | memset(&map->fp_regs, 0xff, sizeof(map->fp_regs)); | 517 | memset(&map->fp_regs, 0xff, sizeof(map->fp_regs)); |
@@ -547,8 +526,6 @@ static void __init set_lc_mask(struct save_area *map) | |||
547 | memset(&map->ctrl_regs, 0xff, sizeof(map->ctrl_regs)); | 526 | memset(&map->ctrl_regs, 0xff, sizeof(map->ctrl_regs)); |
548 | } | 527 | } |
549 | 528 | ||
550 | #endif /* CONFIG_32BIT */ | ||
551 | |||
552 | /* | 529 | /* |
553 | * Initialize dump globals for a given architecture | 530 | * Initialize dump globals for a given architecture |
554 | */ | 531 | */ |
@@ -688,21 +665,12 @@ static int __init zcore_init(void) | |||
688 | if (rc) | 665 | if (rc) |
689 | goto fail; | 666 | goto fail; |
690 | 667 | ||
691 | #ifdef CONFIG_64BIT | ||
692 | if (arch == ARCH_S390) { | 668 | if (arch == ARCH_S390) { |
693 | pr_alert("The 64-bit dump tool cannot be used for a " | 669 | pr_alert("The 64-bit dump tool cannot be used for a " |
694 | "32-bit system\n"); | 670 | "32-bit system\n"); |
695 | rc = -EINVAL; | 671 | rc = -EINVAL; |
696 | goto fail; | 672 | goto fail; |
697 | } | 673 | } |
698 | #else /* CONFIG_64BIT */ | ||
699 | if (arch == ARCH_S390X) { | ||
700 | pr_alert("The 32-bit dump tool cannot be used for a " | ||
701 | "64-bit system\n"); | ||
702 | rc = -EINVAL; | ||
703 | goto fail; | ||
704 | } | ||
705 | #endif /* CONFIG_64BIT */ | ||
706 | 674 | ||
707 | rc = get_mem_info(&mem_size, &mem_end); | 675 | rc = get_mem_info(&mem_size, &mem_end); |
708 | if (rc) | 676 | if (rc) |
diff --git a/drivers/s390/cio/cio.c b/drivers/s390/cio/cio.c index 3578105989a0..07fc5d9e7f10 100644 --- a/drivers/s390/cio/cio.c +++ b/drivers/s390/cio/cio.c | |||
@@ -143,13 +143,11 @@ cio_start_key (struct subchannel *sch, /* subchannel structure */ | |||
143 | orb->cmd.spnd = priv->options.suspend; | 143 | orb->cmd.spnd = priv->options.suspend; |
144 | orb->cmd.ssic = priv->options.suspend && priv->options.inter; | 144 | orb->cmd.ssic = priv->options.suspend && priv->options.inter; |
145 | orb->cmd.lpm = (lpm != 0) ? lpm : sch->lpm; | 145 | orb->cmd.lpm = (lpm != 0) ? lpm : sch->lpm; |
146 | #ifdef CONFIG_64BIT | ||
147 | /* | 146 | /* |
148 | * for 64 bit we always support 64 bit IDAWs with 4k page size only | 147 | * for 64 bit we always support 64 bit IDAWs with 4k page size only |
149 | */ | 148 | */ |
150 | orb->cmd.c64 = 1; | 149 | orb->cmd.c64 = 1; |
151 | orb->cmd.i2k = 0; | 150 | orb->cmd.i2k = 0; |
152 | #endif | ||
153 | orb->cmd.key = key >> 4; | 151 | orb->cmd.key = key >> 4; |
154 | /* issue "Start Subchannel" */ | 152 | /* issue "Start Subchannel" */ |
155 | orb->cmd.cpa = (__u32) __pa(cpa); | 153 | orb->cmd.cpa = (__u32) __pa(cpa); |
diff --git a/drivers/s390/cio/qdio.h b/drivers/s390/cio/qdio.h index a563e4c00590..7e70f9298cc1 100644 --- a/drivers/s390/cio/qdio.h +++ b/drivers/s390/cio/qdio.h | |||
@@ -84,7 +84,6 @@ enum qdio_irq_states { | |||
84 | #define QDIO_SIGA_WRITEQ 0x04 | 84 | #define QDIO_SIGA_WRITEQ 0x04 |
85 | #define QDIO_SIGA_QEBSM_FLAG 0x80 | 85 | #define QDIO_SIGA_QEBSM_FLAG 0x80 |
86 | 86 | ||
87 | #ifdef CONFIG_64BIT | ||
88 | static inline int do_sqbs(u64 token, unsigned char state, int queue, | 87 | static inline int do_sqbs(u64 token, unsigned char state, int queue, |
89 | int *start, int *count) | 88 | int *start, int *count) |
90 | { | 89 | { |
@@ -122,12 +121,6 @@ static inline int do_eqbs(u64 token, unsigned char *state, int queue, | |||
122 | 121 | ||
123 | return (_ccq >> 32) & 0xff; | 122 | return (_ccq >> 32) & 0xff; |
124 | } | 123 | } |
125 | #else | ||
126 | static inline int do_sqbs(u64 token, unsigned char state, int queue, | ||
127 | int *start, int *count) { return 0; } | ||
128 | static inline int do_eqbs(u64 token, unsigned char *state, int queue, | ||
129 | int *start, int *count, int ack) { return 0; } | ||
130 | #endif /* CONFIG_64BIT */ | ||
131 | 124 | ||
132 | struct qdio_irq; | 125 | struct qdio_irq; |
133 | 126 | ||
diff --git a/drivers/s390/cio/qdio_setup.c b/drivers/s390/cio/qdio_setup.c index f76bff68d1de..48b3866a9ded 100644 --- a/drivers/s390/cio/qdio_setup.c +++ b/drivers/s390/cio/qdio_setup.c | |||
@@ -91,10 +91,7 @@ EXPORT_SYMBOL_GPL(qdio_reset_buffers); | |||
91 | */ | 91 | */ |
92 | static inline int qebsm_possible(void) | 92 | static inline int qebsm_possible(void) |
93 | { | 93 | { |
94 | #ifdef CONFIG_64BIT | ||
95 | return css_general_characteristics.qebsm; | 94 | return css_general_characteristics.qebsm; |
96 | #endif | ||
97 | return 0; | ||
98 | } | 95 | } |
99 | 96 | ||
100 | /* | 97 | /* |
diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c index 3d7f19fb9a4e..33890c9850de 100644 --- a/drivers/s390/crypto/ap_bus.c +++ b/drivers/s390/crypto/ap_bus.c | |||
@@ -174,12 +174,10 @@ static int ap_interrupts_available(void) | |||
174 | * | 174 | * |
175 | * Returns 1 if AP configuration information is available. | 175 | * Returns 1 if AP configuration information is available. |
176 | */ | 176 | */ |
177 | #ifdef CONFIG_64BIT | ||
178 | static int ap_configuration_available(void) | 177 | static int ap_configuration_available(void) |
179 | { | 178 | { |
180 | return test_facility(2) && test_facility(12); | 179 | return test_facility(2) && test_facility(12); |
181 | } | 180 | } |
182 | #endif | ||
183 | 181 | ||
184 | /** | 182 | /** |
185 | * ap_test_queue(): Test adjunct processor queue. | 183 | * ap_test_queue(): Test adjunct processor queue. |
@@ -239,7 +237,6 @@ static inline struct ap_queue_status ap_reset_queue(ap_qid_t qid) | |||
239 | return reg1; | 237 | return reg1; |
240 | } | 238 | } |
241 | 239 | ||
242 | #ifdef CONFIG_64BIT | ||
243 | /** | 240 | /** |
244 | * ap_queue_interruption_control(): Enable interruption for a specific AP. | 241 | * ap_queue_interruption_control(): Enable interruption for a specific AP. |
245 | * @qid: The AP queue number | 242 | * @qid: The AP queue number |
@@ -261,9 +258,7 @@ ap_queue_interruption_control(ap_qid_t qid, void *ind) | |||
261 | : "cc" ); | 258 | : "cc" ); |
262 | return reg1_out; | 259 | return reg1_out; |
263 | } | 260 | } |
264 | #endif | ||
265 | 261 | ||
266 | #ifdef CONFIG_64BIT | ||
267 | static inline struct ap_queue_status | 262 | static inline struct ap_queue_status |
268 | __ap_query_functions(ap_qid_t qid, unsigned int *functions) | 263 | __ap_query_functions(ap_qid_t qid, unsigned int *functions) |
269 | { | 264 | { |
@@ -282,9 +277,7 @@ __ap_query_functions(ap_qid_t qid, unsigned int *functions) | |||
282 | *functions = (unsigned int)(reg2 >> 32); | 277 | *functions = (unsigned int)(reg2 >> 32); |
283 | return reg1; | 278 | return reg1; |
284 | } | 279 | } |
285 | #endif | ||
286 | 280 | ||
287 | #ifdef CONFIG_64BIT | ||
288 | static inline int __ap_query_configuration(struct ap_config_info *config) | 281 | static inline int __ap_query_configuration(struct ap_config_info *config) |
289 | { | 282 | { |
290 | register unsigned long reg0 asm ("0") = 0x04000000UL; | 283 | register unsigned long reg0 asm ("0") = 0x04000000UL; |
@@ -302,7 +295,6 @@ static inline int __ap_query_configuration(struct ap_config_info *config) | |||
302 | 295 | ||
303 | return reg1; | 296 | return reg1; |
304 | } | 297 | } |
305 | #endif | ||
306 | 298 | ||
307 | /** | 299 | /** |
308 | * ap_query_functions(): Query supported functions. | 300 | * ap_query_functions(): Query supported functions. |
@@ -317,7 +309,6 @@ static inline int __ap_query_configuration(struct ap_config_info *config) | |||
317 | */ | 309 | */ |
318 | static int ap_query_functions(ap_qid_t qid, unsigned int *functions) | 310 | static int ap_query_functions(ap_qid_t qid, unsigned int *functions) |
319 | { | 311 | { |
320 | #ifdef CONFIG_64BIT | ||
321 | struct ap_queue_status status; | 312 | struct ap_queue_status status; |
322 | int i; | 313 | int i; |
323 | status = __ap_query_functions(qid, functions); | 314 | status = __ap_query_functions(qid, functions); |
@@ -348,9 +339,6 @@ static int ap_query_functions(ap_qid_t qid, unsigned int *functions) | |||
348 | } | 339 | } |
349 | } | 340 | } |
350 | return -EBUSY; | 341 | return -EBUSY; |
351 | #else | ||
352 | return -EINVAL; | ||
353 | #endif | ||
354 | } | 342 | } |
355 | 343 | ||
356 | /** | 344 | /** |
@@ -364,7 +352,6 @@ static int ap_query_functions(ap_qid_t qid, unsigned int *functions) | |||
364 | */ | 352 | */ |
365 | static int ap_queue_enable_interruption(ap_qid_t qid, void *ind) | 353 | static int ap_queue_enable_interruption(ap_qid_t qid, void *ind) |
366 | { | 354 | { |
367 | #ifdef CONFIG_64BIT | ||
368 | struct ap_queue_status status; | 355 | struct ap_queue_status status; |
369 | int t_depth, t_device_type, rc, i; | 356 | int t_depth, t_device_type, rc, i; |
370 | 357 | ||
@@ -404,9 +391,6 @@ static int ap_queue_enable_interruption(ap_qid_t qid, void *ind) | |||
404 | } | 391 | } |
405 | } | 392 | } |
406 | return rc; | 393 | return rc; |
407 | #else | ||
408 | return -EINVAL; | ||
409 | #endif | ||
410 | } | 394 | } |
411 | 395 | ||
412 | /** | 396 | /** |
@@ -1238,7 +1222,6 @@ static struct bus_attribute *const ap_bus_attrs[] = { | |||
1238 | */ | 1222 | */ |
1239 | static void ap_query_configuration(void) | 1223 | static void ap_query_configuration(void) |
1240 | { | 1224 | { |
1241 | #ifdef CONFIG_64BIT | ||
1242 | if (ap_configuration_available()) { | 1225 | if (ap_configuration_available()) { |
1243 | if (!ap_configuration) | 1226 | if (!ap_configuration) |
1244 | ap_configuration = | 1227 | ap_configuration = |
@@ -1248,9 +1231,6 @@ static void ap_query_configuration(void) | |||
1248 | __ap_query_configuration(ap_configuration); | 1231 | __ap_query_configuration(ap_configuration); |
1249 | } else | 1232 | } else |
1250 | ap_configuration = NULL; | 1233 | ap_configuration = NULL; |
1251 | #else | ||
1252 | ap_configuration = NULL; | ||
1253 | #endif | ||
1254 | } | 1234 | } |
1255 | 1235 | ||
1256 | /** | 1236 | /** |
diff --git a/drivers/s390/net/ctcm_mpc.c b/drivers/s390/net/ctcm_mpc.c index 2dbc77b5137b..edf16bfba8ee 100644 --- a/drivers/s390/net/ctcm_mpc.c +++ b/drivers/s390/net/ctcm_mpc.c | |||
@@ -130,11 +130,7 @@ void ctcmpc_dumpit(char *buf, int len) | |||
130 | __u32 ct, sw, rm, dup; | 130 | __u32 ct, sw, rm, dup; |
131 | char *ptr, *rptr; | 131 | char *ptr, *rptr; |
132 | char tbuf[82], tdup[82]; | 132 | char tbuf[82], tdup[82]; |
133 | #ifdef CONFIG_64BIT | ||
134 | char addr[22]; | 133 | char addr[22]; |
135 | #else | ||
136 | char addr[12]; | ||
137 | #endif | ||
138 | char boff[12]; | 134 | char boff[12]; |
139 | char bhex[82], duphex[82]; | 135 | char bhex[82], duphex[82]; |
140 | char basc[40]; | 136 | char basc[40]; |
@@ -147,11 +143,7 @@ void ctcmpc_dumpit(char *buf, int len) | |||
147 | 143 | ||
148 | for (ct = 0; ct < len; ct++, ptr++, rptr++) { | 144 | for (ct = 0; ct < len; ct++, ptr++, rptr++) { |
149 | if (sw == 0) { | 145 | if (sw == 0) { |
150 | #ifdef CONFIG_64BIT | ||
151 | sprintf(addr, "%16.16llx", (__u64)rptr); | 146 | sprintf(addr, "%16.16llx", (__u64)rptr); |
152 | #else | ||
153 | sprintf(addr, "%8.8X", (__u32)rptr); | ||
154 | #endif | ||
155 | 147 | ||
156 | sprintf(boff, "%4.4X", (__u32)ct); | 148 | sprintf(boff, "%4.4X", (__u32)ct); |
157 | bhex[0] = '\0'; | 149 | bhex[0] = '\0'; |
@@ -162,11 +154,7 @@ void ctcmpc_dumpit(char *buf, int len) | |||
162 | if (sw == 8) | 154 | if (sw == 8) |
163 | strcat(bhex, " "); | 155 | strcat(bhex, " "); |
164 | 156 | ||
165 | #if CONFIG_64BIT | ||
166 | sprintf(tbuf, "%2.2llX", (__u64)*ptr); | 157 | sprintf(tbuf, "%2.2llX", (__u64)*ptr); |
167 | #else | ||
168 | sprintf(tbuf, "%2.2X", (__u32)*ptr); | ||
169 | #endif | ||
170 | 158 | ||
171 | tbuf[2] = '\0'; | 159 | tbuf[2] = '\0'; |
172 | strcat(bhex, tbuf); | 160 | strcat(bhex, tbuf); |