ipc/shm.c:494:18: warning: unused variable âhsâ [-Wunused-variable]
From: Borislav Petkov
Date: Wed May 08 2013 - 10:33:35 EST
Hi,
looks like this warning came in with
af73e4d9506d3b797509f3c030e7dcd554f7d9c4 and fires in the
# CONFIG_HUGETLB_PAGE is not set
case because
struct hstate *hs = hstate_sizelog((shmflg >> SHM_HUGE_SHIFT)
& SHM_HUGE_MASK);
becomes
struct hstate *hs = ((void *)0)
due to
#define hstate_sizelog(s) NULL
Hmmm, I don't have a quick solution off the top of my head from staring
at the code.
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/