public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ipc/shm.c:494:18: warning: unused variable ‘hs’ [-Wunused-variable]
@ 2013-05-08 14:34 Borislav Petkov
  2013-05-08 16:12 ` Naoya Horiguchi
  0 siblings, 1 reply; 6+ messages in thread
From: Borislav Petkov @ 2013-05-08 14:34 UTC (permalink / raw)
  To: Naoya Horiguchi; +Cc: lkml

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.
--

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-18  1:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-08 14:34 ipc/shm.c:494:18: warning: unused variable ‘hs’ [-Wunused-variable] Borislav Petkov
2013-05-08 16:12 ` Naoya Horiguchi
2013-05-08 18:45   ` Borislav Petkov
2013-05-08 20:48     ` [PATCH] ipc/shm.c: don't use auto variable hs in newseg() Naoya Horiguchi
2013-05-17 20:31       ` KOSAKI Motohiro
2013-05-18  1:46         ` Naoya Horiguchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox