linux/arch/ia64/sn/kernel
Thierry Reding 882d6f384b [IA64] sn: Fix zeroing of PDAs
The code uses a the following to zero out a PDA:

	memset(pda, 0, sizeof(pda));

But sizeof(pda) will return the size of a pointer rather than the size
of the structure pointed to. This triggers the following warning from
GCC:

	arch/ia64/sn/kernel/setup.c:582:23: warning: argument to 'sizeof' in 'memset' call is the same pointer type 'struct pda_s *' as the destination; expected 'struct pda_s' or an explicit length [-Wsizeof-pointer-memaccess]
	  memset(pda, 0, sizeof(pda));
	                       ^

Fix this by passing in the size of the structure using sizeof(*pda)
instead.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2014-07-29 16:26:37 -07:00
..
sn2 ia64: single_open() leaks 2013-05-05 00:09:04 -04:00
bte_error.c
bte.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
huberror.c [IA64] genirq fixup for SGI/SN 2012-02-22 11:11:06 -08:00
idle.c
io_acpi_init.c ACPI / driver core: Store an ACPI device pointer in struct acpi_dev_node 2013-11-14 23:14:43 +01:00
io_common.c IA64: drivers: remove __dev* attributes. 2013-01-03 15:57:13 -08:00
io_init.c PCI changes for the v3.11 merge window: 2013-07-03 16:31:35 -07:00
iomv.c
irq.c ia64: Validate online cpus in irq_set_affinity() callbacks 2014-03-12 13:07:40 +01:00
klconflib.c
machvec.c
Makefile ia64: change to new flag variables 2011-03-17 14:02:56 +01:00
mca.c
msi_sn.c ia64: Validate online cpus in irq_set_affinity() callbacks 2014-03-12 13:07:40 +01:00
pio_phys.S
setup.c [IA64] sn: Fix zeroing of PDAs 2014-07-29 16:26:37 -07:00
tiocx.c tiocx: check retval from bus_register() 2013-03-19 16:14:52 -07:00