All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Trivial Russell <trivial@rustcorp.com.au>
To: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: [TRIVIAL] Documentation_vm_hugetlbfs.txt
Date: Thu, 04 Sep 2003 13:20:27 +1000	[thread overview]
Message-ID: <20030904033017.D77DA2C018@lists.samba.org> (raw)

From:  Maciej Soltysiak <solt@dns.toxicfilms.tv>

  Hi Rusty,
  
  here's a patch to change the hugetlbfs examples actually being possible to
  compile. errno is being used while it's not included.
  
  Regards,
  Maciej
  

--- trivial-2.6.0-test4-bk5/Documentation/vm/hugetlbpage.txt.orig	2003-09-04 13:01:50.000000000 +1000
+++ trivial-2.6.0-test4-bk5/Documentation/vm/hugetlbpage.txt	2003-09-04 13:01:50.000000000 +1000
@@ -107,6 +107,7 @@
 #include <sys/shm.h>
 #include <sys/types.h>
 #include <sys/mman.h>
+#include <errno.h>
 
 extern int errno;
 #define SHM_HUGETLB 04000
@@ -167,6 +168,7 @@
 #include <stdio.h>
 #include <sys/mman.h>
 #include <fcntl.h>
+#include <errno.h>
 
 #define FILE_NAME "/mnt/hugepagefile"
 #define LENGTH (256*1024*1024)
-- 
  What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
  Don't blame me: the Monkey is driving
  File: Maciej Soltysiak <solt@dns.toxicfilms.tv>: [TRIVIAL][2.6] Documentation_vm_hugetlbfs.txt

                 reply	other threads:[~2003-09-04  3:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20030904033017.D77DA2C018@lists.samba.org \
    --to=trivial@rustcorp.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.