[S390] dasd: add High Performance FICON support
[deliverable/linux.git] / arch / s390 / include / asm / idals.h
index e82c10efe65aee289c94fe59f761ce8c4c49acbb..aae276d00383cc90660f1e1771d0aee11ae36949 100644 (file)
@@ -44,24 +44,18 @@ idal_is_needed(void *vaddr, unsigned int length)
 /*
  * Return the number of idal words needed for an address/length pair.
  */
-static inline unsigned int
-idal_nr_words(void *vaddr, unsigned int length)
+static inline unsigned int idal_nr_words(void *vaddr, unsigned int length)
 {
-#ifdef __s390x__
-       if (idal_is_needed(vaddr, length))
-               return ((__pa(vaddr) & (IDA_BLOCK_SIZE-1)) + length + 
-                       (IDA_BLOCK_SIZE-1)) >> IDA_SIZE_LOG;
-#endif
-       return 0;
+       return ((__pa(vaddr) & (IDA_BLOCK_SIZE-1)) + length +
+               (IDA_BLOCK_SIZE-1)) >> IDA_SIZE_LOG;
 }
 
 /*
  * Create the list of idal words for an address/length pair.
  */
-static inline unsigned long *
-idal_create_words(unsigned long *idaws, void *vaddr, unsigned int length)
+static inline unsigned long *idal_create_words(unsigned long *idaws,
+                                              void *vaddr, unsigned int length)
 {
-#ifdef __s390x__
        unsigned long paddr;
        unsigned int cidaw;
 
@@ -74,7 +68,6 @@ idal_create_words(unsigned long *idaws, void *vaddr, unsigned int length)
                paddr += IDA_BLOCK_SIZE;
                *idaws++ = paddr;
        }
-#endif
        return idaws;
 }
 
This page took 0.024589 seconds and 5 git commands to generate.