[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130508143411.GD30955@pd.tnic>
Date: Wed, 8 May 2013 16:34:11 +0200
From: Borislav Petkov <bp@...en8.de>
To: Naoya Horiguchi <n-horiguchi@...jp.nec.com>
Cc: lkml <linux-kernel@...r.kernel.org>
Subject: ipc/shm.c:494:18: warning: unused variable ‘hs’ [-Wunused-variable]
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists