LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: David Daney <ddaney@caviumnetworks.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mips@linux-mips.org, Tomaso.Paoletti@caviumnetworks.com
Subject: Re: [PATCH] serial: Initialize spinlocks in 8250 and don't clobber them.
Date: Tue, 21 Oct 2008 16:50:18 +0100 [thread overview]
Message-ID: <20081021165018.28794974@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <48FDF6CB.4070605@caviumnetworks.com>
> 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.
prev parent reply other threads:[~2008-10-21 15:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-14 21:37 David Daney
2008-10-20 21:17 ` Andrew Morton
2008-10-20 21:37 ` David Daney
2008-10-21 9:38 ` Alan Cox
2008-10-21 15:35 ` David Daney
2008-10-21 15:50 ` Alan Cox [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081021165018.28794974@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=Tomaso.Paoletti@caviumnetworks.com \
--cc=akpm@linux-foundation.org \
--cc=ddaney@caviumnetworks.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=linux-serial@vger.kernel.org \
--subject='Re: [PATCH] serial: Initialize spinlocks in 8250 and don'\''t clobber them.' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).