public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Dumazet <dada1@cosmosbay.com>
To: Andrew Morton <akpm@osdl.org>,
	linux kernel <linux-kernel@vger.kernel.org>
Cc: Andi Kleen <ak@suse.de>, Ravikiran G Thirumalai <kiran@scalex86.org>
Subject: [PATCH] x86_64 : bring back __read_mostly support to linux-2.6.17-rc2
Date: Wed, 19 Apr 2006 15:30:01 +0200	[thread overview]
Message-ID: <44463B59.5070408@cosmosbay.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

It seems latest kernel (2.6.17-rc2) has a wrong/missing __read_mostly 
implementation for x86_64

__read_mostly macro should be declared outside of #if CONFIG_X86_VSMP block

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>


[-- Attachment #2: read_mostly.patch --]
[-- Type: text/plain, Size: 393 bytes --]

--- a/include/asm-x86_64/cache.h	2006-04-19 12:43:14.000000000 +0200
+++ b/include/asm-x86_64/cache.h	2006-04-19 14:11:50.000000000 +0200
@@ -20,8 +20,8 @@
        __attribute__((__section__(".data.page_aligned")))
 #endif
 
-#define __read_mostly __attribute__((__section__(".data.read_mostly")))
-
 #endif
 
+#define __read_mostly __attribute__((__section__(".data.read_mostly")))
+
 #endif

                 reply	other threads:[~2006-04-19 13:30 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=44463B59.5070408@cosmosbay.com \
    --to=dada1@cosmosbay.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=kiran@scalex86.org \
    --cc=linux-kernel@vger.kernel.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