mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@kernel.org>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>, Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org>
Subject: [2.6 patch] make sched_feat_{names,open} static
Date: Mon, 5 May 2008 21:29:42 +0300	[thread overview]
Message-ID: <20080505182942.GA17139@cs181133002.pp.htv.fi> (raw)

This patch makes the following needlessly global code in kernel/sched.c  
static:
- sched_feat_names[]
- sched_feat_open()

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---

This patch has been sent on:
- 23 Apr 2008

 kernel/sched.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

2a1e54c660bb9c574133bda95468b1ea28239e95 diff --git a/kernel/sched.c b/kernel/sched.c
index 57ba7ea..19df986 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -757,14 +757,14 @@ const_debug unsigned int sysctl_sched_features =
 #define SCHED_FEAT(name, enabled)	\
 	#name ,
 
-__read_mostly char *sched_feat_names[] = {
+static __read_mostly char *sched_feat_names[] = {
 #include "sched_features.h"
 	NULL
 };
 
 #undef SCHED_FEAT
 
-int sched_feat_open(struct inode *inode, struct file *filp)
+static int sched_feat_open(struct inode *inode, struct file *filp)
 {
 	filp->private_data = inode->i_private;
 	return 0;


             reply	other threads:[~2008-05-05 18:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-05 18:29 Adrian Bunk [this message]
2008-05-05 20:19 ` [rfc] the kernel workflow & trivial "global -> static" patches (was: Re: [2.6 patch] make sched_feat_{names,open} static) Ingo Molnar
2008-05-05 20:40   ` Randy.Dunlap
2008-05-05 21:51     ` Arjan van de Ven
2008-05-05 23:19       ` david
2008-05-05 23:40         ` Arjan van de Ven
2008-05-05 23:45       ` Theodore Tso
2008-05-06  3:23         ` Arjan van de Ven
2008-05-06  5:48       ` Arjan van de Ven
2008-05-05 20:42   ` Andrew Morton
2008-05-05 21:07     ` Adrian Bunk
2008-05-05 21:26       ` Andrew Morton
2008-05-05 21:45         ` Adrian Bunk
2008-05-05 21:46         ` Arjan van de Ven
2008-05-06  7:46           ` Andy Whitcroft
2008-05-05 21:02   ` Adrian Bunk
2008-05-06  0:21   ` [rfc] the kernel workflow & trivial "global -> static" patches Andi Kleen
2008-05-06  6:18     ` Adrian Bunk
2008-05-06 11:13       ` Andi Kleen
2008-05-06 11:25         ` Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2008-04-23  9:52 [2.6 patch] make sched_feat_{names,open} static Adrian Bunk

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=20080505182942.GA17139@cs181133002.pp.htv.fi \
    --to=bunk@kernel.org \
    --cc=a.p.zijlstra@chello.nl \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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

all inboxes | Powered by JetHome®