lkml.org 
[lkml]   [2003]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject2.5.63 - if/ifdef janitor work - include/linux/*
From
Date
Cleaning up include/linux...

--- include/linux/sched.h.dist 2003-02-24 14:05:07.000000000 -0500
+++ include/linux/sched.h 2003-02-27 01:36:55.213742840 -0500
@@ -466,7 +466,7 @@
#define PF_FSTRANS 0x00020000 /* inside a filesystem transaction */
#define PF_KSWAPD 0x00040000 /* I am kswapd */

-#if CONFIG_SMP
+#ifdef CONFIG_SMP
extern void set_cpus_allowed(task_t *p, unsigned long new_mask);
#else
# define set_cpus_allowed(p, new_mask) do { } while (0)
--- include/linux/blkdev.h.dist 2003-02-24 14:05:12.000000000 -0500
+++ include/linux/blkdev.h 2003-02-27 01:37:21.380998808 -0500
@@ -302,7 +302,7 @@
#define BLK_BOUNCE_ANY ((u64)blk_max_pfn << PAGE_SHIFT)
#define BLK_BOUNCE_ISA (ISA_DMA_THRESHOLD)

-#if CONFIG_MMU
+#ifdef CONFIG_MMU
extern int init_emergency_isa_pool(void);
extern void blk_queue_bounce(request_queue_t *q, struct bio **bio);
#else
--- include/linux/timer.h.dist 2003-02-24 14:05:38.000000000 -0500
+++ include/linux/timer.h 2003-02-27 01:37:44.631114260 -0500
@@ -65,7 +65,7 @@
extern int del_timer(struct timer_list * timer);
extern int mod_timer(struct timer_list *timer, unsigned long expires);

-#if CONFIG_SMP
+#ifdef CONFIG_SMP
extern int del_timer_sync(struct timer_list * timer);
#else
# define del_timer_sync(t) del_timer(t)
--- include/linux/nfs_fs_sb.h.dist 2003-02-24 14:06:03.000000000 -0500
+++ include/linux/nfs_fs_sb.h 2003-02-27 01:38:00.027853268 -0500
@@ -27,7 +27,7 @@
char * hostname; /* remote hostname */
struct nfs_fh fh;
struct sockaddr_in addr;
-#if CONFIG_NFS_V4
+#ifdef CONFIG_NFS_V4
/* Our own IP address, as a null-terminated string.
* This is used to generate the clientid, and the callback address.
*/
--- include/linux/tpqic02.h.dist 2003-02-24 14:05:11.000000000 -0500
+++ include/linux/tpqic02.h 2003-02-27 01:39:24.963929504 -0500
@@ -12,7 +12,7 @@

#include <linux/config.h>

-#if CONFIG_QIC02_TAPE || CONFIG_QIC02_TAPE_MODULE
+#if defined(CONFIG_QIC02_TAPE) || defined(CONFIG_QIC02_TAPE_MODULE)

/* need to have QIC02_TAPE_DRIVE and QIC02_TAPE_IFC expand to something */
#include <linux/mtio.h>
@@ -724,7 +724,7 @@
unsigned short dma_enable_value;
};

-#if MODULE
+#ifdef MODULE
static int qic02_tape_init(void);
#else
extern int qic02_tape_init(void); /* for mem.c */
--- include/linux/smp_lock.h.dist 2003-02-24 14:05:40.000000000 -0500
+++ include/linux/smp_lock.h 2003-02-27 01:45:00.424031816 -0500
@@ -5,7 +5,7 @@
#include <linux/sched.h>
#include <linux/spinlock.h>

-#if CONFIG_SMP || CONFIG_PREEMPT
+#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)

extern spinlock_t kernel_flag;

--- include/linux/interrupt.h.dist 2003-02-24 14:05:33.000000000 -0500
+++ include/linux/interrupt.h 2003-02-27 02:01:32.824663760 -0500
@@ -28,7 +28,7 @@
/*
* Temporary defines for UP kernels, until all code gets fixed.
*/
-#if !CONFIG_SMP
+#if !defined(CONFIG_SMP)
# define cli() local_irq_disable()
# define sti() local_irq_enable()
# define save_flags(x) local_save_flags(x)
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.024 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site