Re: [PATCH] allow vesafb to build when no CONFIG_MTRR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +#ifdef CONFIG_MTRR
>  	if (mtrr) {
> -		int temp_size = size_total;
> +		unsigned int temp_size = size_total;
>  		/* Find the largest power-of-two */
>  		while (temp_size & (temp_size - 1))
>                  	temp_size &= (temp_size - 1);
> @@ -396,6 +401,7 @@ static int __init vesafb_probe(struct de
>  			temp_size >>= 1;
>  		}
>  	}
> +#endif

I'd just do that to avoid cluttering up the source with
#ifdef's, otherwise it looks ok to me ;)

  Gerd

-- 
-mm seems unusually stable at present.
	-- akpm about 2.6.12-rc3-mm3
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux