[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20081021165018.28794974@lxorguk.ukuu.org.uk>
Date: Tue, 21 Oct 2008 16:50:18 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: David Daney <ddaney@...iumnetworks.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-mips@...ux-mips.org, Tomaso.Paoletti@...iumnetworks.com
Subject: Re: [PATCH] serial: Initialize spinlocks in 8250 and don't clobber
them.
> The question is: What is the best way to initialize some (or all) fields of a structure *except* a single lock field that was previously initialized?
Move the initialisation - or at least memset to zero then spin_lock_init
and fill in the other fields later.
--
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