Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MIPS] IP27: Remove #if 0'ed code.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

-57
-23
include/asm-mips/sn/klconfig.h
··· 69 69 /* 70 70 * Some IMPORTANT OFFSETS. These are the offsets on all NODES. 71 71 */ 72 - #if 0 73 - #define RAMBASE 0 74 - #define ARCSSPB_OFF 0x1000 /* shift it to sys/arcs/spb.h */ 75 - 76 - #define OFF_HWGRAPH 0 77 - #endif 78 - 79 72 #define MAX_MODULE_ID 255 80 73 #define SIZE_PAD 4096 /* 4k padding for structures */ 81 74 /* ··· 157 164 158 165 159 166 #define KL_CONFIG_HDR(_nasid) ((kl_config_hdr_t *)(KLCONFIG_ADDR(_nasid))) 160 - #if 0 161 - #define KL_CONFIG_MALLOC_HDR(_nasid) \ 162 - (KL_CONFIG_HDR(_nasid)->ch_malloc_hdr) 163 - #endif 164 167 #define KL_CONFIG_INFO_OFFSET(_nasid) \ 165 168 (KL_CONFIG_HDR(_nasid)->ch_board_info) 166 169 #define KL_CONFIG_INFO_SET_OFFSET(_nasid, _off) \ ··· 589 600 unsigned char port_flag; 590 601 klconf_off_t port_offset; 591 602 } klport_t; 592 - 593 - #if 0 594 - /* 595 - * This is very similar to the klport_s but instead of having a componant 596 - * offset it has a board offset. 597 - */ 598 - typedef struct klxbow_port_s { 599 - nasid_t port_nasid; 600 - unsigned char port_flag; 601 - klconf_off_t board_offset; 602 - } klxbow_port_t; 603 - #endif 604 603 605 604 typedef struct klcpu_s { /* CPU */ 606 605 klinfo_t cpu_info;
-16
include/asm-mips/sn/sn0/hubio.h
··· 486 486 #define ICRBN_A_CERR_SHFT 54 487 487 #define ICRBN_A_ERR_MASK 0x3ff 488 488 489 - #if 0 /* Disabled, this causes namespace polution and break allmodconfig */ 490 - /* 491 - * Easy access macros. 492 - */ 493 - #define a_error icrba_fields_s.error 494 - #define a_ecode icrba_fields_s.ecode 495 - #define a_lnetuce icrba_fields_s.lnetuce 496 - #define a_mark icrba_fields_s.mark 497 - #define a_xerr icrba_fields_s.xerr 498 - #define a_sidn icrba_fields_s.sidn 499 - #define a_tnum icrba_fields_s.tnum 500 - #define a_addr icrba_fields_s.addr 501 - #define a_valid icrba_fields_s.valid 502 - #define a_iow icrba_fields_s.iow 503 - #endif 504 - 505 489 #endif /* !__ASSEMBLY__ */ 506 490 507 491 #define IIO_ICRB_ADDR_SHFT 2 /* Shift to get proper address */
-18
include/asm-mips/sn/sn0/hubpi.h
··· 398 398 399 399 /* PI_RT_FILTER_CTRL mask and shift definitions */ 400 400 401 - #if 0 402 - /* 403 - * XXX - This register's definition has changed, but it's only implemented 404 - * in Hub 2. 405 - */ 406 - #define PRFC_DROP_COUNT_SHFT 27 407 - #define PRFC_DROP_COUNT_MASK (UINT64_CAST 0x3ff << 27) 408 - #define PRFC_DROP_CTR_SHFT 18 409 - #define PRFC_DROP_CTR_MASK (UINT64_CAST 0x1ff << 18) 410 - #define PRFC_MASK_ENABLE_SHFT 10 411 - #define PRFC_MASK_ENABLE_MASK (UINT64_CAST 0x7f << 10) 412 - #define PRFC_MASK_CTR_SHFT 2 413 - #define PRFC_MASK_CTR_MASK (UINT64_CAST 0xff << 2) 414 - #define PRFC_OFFSET_SHFT 0 415 - #define PRFC_OFFSET_MASK (UINT64_CAST 3) 416 - #endif /* 0 */ 417 - 418 - 419 401 /* 420 402 * Bits for NACK_CNT_A/B and NACK_CMP 421 403 */