]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sn: shubio.c cleanup
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 02:47:04 +0000 (18:47 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 02:47:04 +0000 (18:47 -0800)
From: Pat Gefre <pfg@sgi.com>

shubio.c cleanup

arch/ia64/sn/io/sn2/shubio.c
include/asm-ia64/sn/ioerror_handling.h
include/asm-ia64/sn/sgi.h

index 4567ff496f8c791256b027cddc01413c7b108cd5..e89148a5e3c17e2443ba34af7e823939e106754a 100644 (file)
@@ -158,8 +158,6 @@ hub_ioerror_handler(
        iopaddr_t       p;
        caddr_t         cp;
 
-       IOERROR_DUMP("hub_ioerror_handler", error_code, mode, ioerror);
-
        hubinfo_get(hub_v, &hinfo);
 
        if (!hinfo){
@@ -285,8 +283,6 @@ hub_ioerror_handler(
                        IOERROR_SETVALUE(ioerror,widgetnum,widgetnum);
                        IOERROR_SETVALUE(ioerror,xtalkaddr,xtalkaddr);
                } else {
-                       IOERROR_DUMP("hub_ioerror_handler", error_code, 
-                                               mode, ioerror);
                        IOERR_PRINTF(printk(
                                "hub_ioerror_handler: Invalid address passed"));
 
@@ -306,11 +302,6 @@ hub_ioerror_handler(
                         * widget is enabled.
                         */
                        if (!is_widget_pio_enabled(ioerror)) {
-                               if (error_state_get(hub_v) == 
-                                   ERROR_STATE_ACTION)
-                                       ioerror_dump("No outbound widget"
-                                                    " access - ", 
-                                                    error_code, mode, ioerror);
                                return(IOERROR_HANDLED);
                        }
                  
@@ -348,11 +339,6 @@ hub_ioerror_handler(
                         */
 
                        if (!is_widget_pio_enabled(ioerror)) {
-                               if (error_state_get(hub_v) == 
-                                   ERROR_STATE_ACTION)
-                                       ioerror_dump("No outbound widget"
-                                                    " access - ", 
-                                                    error_code, mode, ioerror);
                                return(IOERROR_HANDLED);
                        }
                  
@@ -476,7 +462,7 @@ error_return_code_t
 error_state_set(vertex_hdl_t v,error_state_t new_state)
 {
         error_state_t   old_state;
-        boolean_t       replace = B_TRUE;
+        int       replace = 1;
 
         /* Check if we have a valid hwgraph vertex */
         if ( v == (vertex_hdl_t)0 )
@@ -495,7 +481,7 @@ error_state_set(vertex_hdl_t v,error_state_t new_state)
          * for this vertex.
          */
         if (v_error_state_get(v,old_state) != GRAPH_SUCCESS)
-                replace = B_FALSE;
+                replace = 0;
 
         if (v_error_state_set(v,new_state,replace) != GRAPH_SUCCESS) {
                 return(ERROR_RETURN_CODE_CANNOT_SET_STATE);
index 3873a3ea16d512d32d0afd75d659c8fa4447d4d0..d04fc70c3f841ce1b57739d020cc5a4bd9ca6cc6 100644 (file)
@@ -231,10 +231,6 @@ hwgraph_info_get_LBL(v, INFO_LBL_ERROR_SKIP_ENV, (arbitrary_info_t *)&l)
 #define v_error_skip_env_clear(v)              \
 hwgraph_info_remove_LBL(v, INFO_LBL_ERROR_SKIP_ENV, 0)
 
-/* Skip point interfaces */
-extern error_return_code_t     error_skip_point_jump(vertex_hdl_t, boolean_t);
-extern error_return_code_t     error_skip_point_clear(vertex_hdl_t);
-
 /* REFERENCED */
 #if defined(CONFIG_SGI_IO_ERROR_HANDLING)
 
@@ -284,13 +280,5 @@ extern counter_t           error_retry_count_decrement(vertex_hdl_t);
 #define        IS_ERROR_INTR_CONTEXT(_ec)      ((_ec & IOECODE_DMA)            || \
                                         (_ec == IOECODE_PIO_WRITE))
 
-/* Some convenience macros on device state. This state is accessed only 
- * thru the calls the io error handling layer.
- */
-#if defined(CONFIG_SGI_IO_ERROR_HANDLING)
-extern boolean_t               is_device_shutdown(vertex_hdl_t);
-#define IS_DEVICE_SHUTDOWN(_d)         (is_device_shutdown(_d))
-#endif
-
 #endif /* __KERNEL__ */
 #endif /* _ASM_IA64_SN_IOERROR_HANDLING_H */
index 2ac31ecb971102e40381f3c2dac607ec5646d460..57b3b4ecf82624c5460a2f15ec19b471420fa35b 100644 (file)
@@ -25,8 +25,6 @@ typedef hwgfs_handle_t vertex_hdl_t;
 #define MAXDEVNAME 256
 #endif
 
-typedef enum { B_FALSE, B_TRUE } boolean_t;
-
 
 /*
  * Possible return values from graph routines.