qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Header Protection on mac_dbdma.h
Date: Mon, 9 Feb 2009 18:03:12 +0100	[thread overview]
Message-ID: <20090209170312.GC15149@volta.aurel32.net> (raw)
In-Reply-To: <8E614A70-215E-4AB5-BDFB-79CEB62914A0@hotmail.com>

On Sun, Feb 08, 2009 at 10:29:45PM -0700, C.W. Betts wrote:
> I noticed that the header hw/mac_dbdma.h isn't protected from multiple  
> inclusions.  The patch fixes that.

AFAIK, this file is never included twice, so strictly speaking this
patch is not necessary.

Given that about half of the .h files in the hw/ directory do not have 
header protection from multiple inclusions, I would clearly prefer 
fixing all of them, instead of fixing random ones.

> Index: hw/mac_dbdma.h
> ===================================================================
> --- hw/mac_dbdma.h	(revision 6564)
> +++ hw/mac_dbdma.h	(working copy)
> @@ -19,6 +19,8 @@
>   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER  
> DEALINGS IN
>   * THE SOFTWARE.
>   */
> +#ifndef __MAC_DBDMA_H__
> +#define __MAC_DBDMA_H__
>
>  typedef struct {
>      void *opaque;
> @@ -39,3 +41,4 @@
>                              void *opaque);
>  void DBDMA_schedule(void);
>  void* DBDMA_init (int *dbdma_mem_index);
> +#endif
>

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

      parent reply	other threads:[~2009-02-09 17:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8E614A70-215E-4AB5-BDFB-79CEB62914A0@hotmail.com>
2009-02-09  5:29 ` [Qemu-devel] Header Protection on mac_dbdma.h C.W. Betts
2009-02-09 17:03 ` Aurelien Jarno [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=20090209170312.GC15149@volta.aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).