Re: [PATCH 17/35] sparsemem: put mem map for one node together.

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

 



On Tue, 09 Feb 2010 11:32:28 -0800
Yinghai Lu <yinghai@xxxxxxxxxx> wrote:

> +#ifdef CONFIG_NO_BOOTMEM
> +		free_early(__pa(vmemmap_buf_start), __pa(vmemmap_buf_end));
> +		if (vmemmap_buf_start < vmemmap_buf) {
> +			char name[15];
> +
> +			memset(name, 0, sizeof(name));

Is the memset actually needed?

> +			snprintf(name, 15, "MEMMAP %d", nodeid);

s/15/sizeof(name)/

> +			reserve_early_without_check(__pa(vmemmap_buf_start),
> +						    __pa(vmemmap_buf), name);
> +		}
> +#else
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux