#ifndef _S390_IDALS_H
#define _S390_IDALS_H
-#include <linux/config.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/types.h>
idal_is_needed(void *vaddr, unsigned int length)
{
#ifdef __s390x__
- return ((__pa(vaddr) + length) >> 31) != 0;
+ return ((__pa(vaddr) + length - 1) >> 31) != 0;
#else
return 0;
#endif