Fix flags definitions to be longs
Subsystems (5)
PATCH 3/11 Fix flags definitions to be longs
Hi!
This is a larger patch that fixes hopefully all definitions of flags (used with save/restore_flags and spin_[un]lock_irqsave/restore) to long. This breaks on x86-64 and probably also on other architectures.
drivers/char/rio/riotable.c +1 -1
@@ -445,7 +445,7 @@int Next =0 ;struct Map *MapP;struct Host *HostP; -int oldspl; +long oldspl;disable (oldspl);/* strange but true! */
drivers/char/synclink.c +3 -2
@@ -8013,7 +8013,8 @@int mgsl_sppp_open (struct net_device *d) {struct mgsl_struct *info = d->priv; -int err, flags; +int err; +long flags;if (debug_level >=DEBUG_LEVEL_INFO )printk ("mgsl_sppp_open(%s)\n" ,info->netname);
@@ -8056,7 +8057,7 @@void mgsl_sppp_tx_timeout (struct net_device *dev) {struct mgsl_struct *info = dev->priv; -int flags; +long flags;if (debug_level >=DEBUG_LEVEL_INFO )printk ("mgsl_sppp_tx_timeout(%s)\n" ,info->netname);
drivers/isdn/divert/divert_init.c +1 -1
@@ -70,7 +70,7 @@/* Module deinit code */ /**********************/ static void __exit divert_exit(void) -{int flags; +{long flags;int i;save_flags (flags);
drivers/isdn/divert/divert_procfs.c +5 -4
@@ -50,7 +50,7 @@ put_info_buffer(char *cp) {struct divert_info *ib; -int flags; +long flags;if (if_used <=0 )return ;
@@ -145,7 +145,7 @@static int isdn_divert_open (struct inode *ino,struct file *filep) { -int flags; +long flags;lock_kernel ();save_flags (flags);
@@ -168,7 +168,7 @@ isdn_divert_close(struct inode *ino, struct file *filep) { struct divert_info *inf; -int flags; +long flags;lock_kernel ();save_flags (flags);
@@ -198,7 +198,8 @@ uint cmd, ulong arg) {divert_ioctl dioctl; -int i, flags; +int i; +long flags;divert_rule *rulep;char *cp;
drivers/isdn/divert/isdn_divert.c +12 -9
@@ -67,7 +67,7 @@/* timer callback function */ /***************************/ static void deflect_timer_expire (ulong arg) -{int flags; +{long flags;struct call_struc *cs = (struct call_struc *) arg;save_flags (flags);
@@ -125,7 +125,8 @@int cf_command (int drvid,int mode,u_char proc,char *msn,u_char service,char *fwd_nr,ulong *procid) -{int retval,msnlen,flags; +{long flags; +int retval,msnlen;int fwd_len;char *p,*ielenp,tmp[60 ];struct call_struc *cs;
@@ -220,7 +221,7 @@int deflect_extern_action (u_char cmd,ulong callid,char *to_nr) {struct call_struc *cs;isdn_ctrl ic; -int flags; +long flags;int i;if ((cmd &0x7F ) >2 )return (-EINVAL );/* invalid command */
@@ -291,7 +292,7 @@/********************************/ int insertrule (int idx,divert_rule *newrule) {struct deflect_struc *ds,*ds1=NULL ; -int flags; +long flags;if (!(ds = (struct deflect_struc *)kmalloc (sizeof (struct deflect_struc ),GFP_KERNEL )))
@@ -337,7 +338,7 @@/***********************************/ int deleterule (int idx) {struct deflect_struc *ds,*ds1; -int flags; +long flags;if (idx <0 ) {save_flags (flags);
@@ -405,7 +406,7 @@/*************************************************/ int isdn_divert_icall (isdn_ctrl *ic) {int retval =0 ; -int flags; +long flags;struct call_struc *cs =NULL ;struct deflect_struc *dv;char *p,*p1;
@@ -557,7 +558,7 @@void deleteprocs (void ) {struct call_struc *cs, *cs1; -int flags; +long flags;save_flags (flags);cli ();
@@ -714,7 +715,8 @@/*********************************************/ int prot_stat_callback (isdn_ctrl *ic) {struct call_struc *cs, *cs1; -int i,flags; +int i; +long flags; cs = divert_head;/* start of list */ cs1 =NULL ;
@@ -805,7 +807,8 @@/***************************/ int isdn_divert_stat_callback (isdn_ctrl *ic) {struct call_struc *cs, *cs1; -int flags, retval; +long flags; +int retval; retval =-1 ; cs = divert_head;/* start of list */
drivers/isdn/eicon/linio.c +2 -2
@@ -683,7 +683,7 @@kfree (ptr); } -int UxCardLock (ux_diva_card_t *card) +long UxCardLock (ux_diva_card_t *card) {unsigned long flags;
@@ -695,7 +695,7 @@ } -void UxCardUnlock (ux_diva_card_t *card,int ipl) +void UxCardUnlock (ux_diva_card_t *card,long ipl) {//spin_unlock_irqrestore(&diva_lock, ipl);
drivers/isdn/eicon/uxio.h +2 -2
@@ -75,8 +75,8 @@* Lock and unlock access to a card */ -int UxCardLock (ux_diva_card_t *card); -void UxCardUnlock (ux_diva_card_t *card,int ipl); +long UxCardLock (ux_diva_card_t *card); +void UxCardUnlock (ux_diva_card_t *card,long ipl);/* * Set the mapping address for PCI cards
drivers/isdn/hisax/hfc_pci.c +10 -7
@@ -84,7 +84,7 @@void release_io_hfcpci (struct IsdnCardState *cs) { -int flags; +long flags;save_flags (flags);cli ();
@@ -299,7 +299,8 @@u_char *ptr, *ptr1, new_f2;struct sk_buff *skb;struct IsdnCardState *cs = bcs->cs; -int flags, total, maxlen, new_z2; +long flags; +int total, maxlen, new_z2;z_type *zp;save_flags (flags);
@@ -633,7 +634,8 @@ hfcpci_fill_fifo(struct BCState *bcs) {struct IsdnCardState *cs = bcs->cs; -int flags, maxlen, fcnt; +long flags; +int maxlen, fcnt;int count, new_z1;bzfifo_type *bz;u_char *bdata;
@@ -810,7 +812,7 @@static int hfcpci_auxcmd (struct IsdnCardState *cs,isdn_ctrl * ic) { -int flags; +long flags;int i = *(unsigned int *) ic->parm.num; if ((ic->arg == 98) &&
@@ -1160,7 +1162,7 @@ {struct IsdnCardState *cs = (struct IsdnCardState *) st->l1.hardware;struct sk_buff *skb = arg; -int flags; +long flags;switch (pr) {case (PH_DATA |REQUEST ):
@@ -1314,7 +1316,8 @@ mode_hfcpci(struct BCState *bcs, int mode, int bc) { struct IsdnCardState *cs = bcs->cs; -int flags, fifo2; +long flags; +int fifo2; if (cs->debug & L1_DEB_HSCX) debugl1(cs, "HFCPCI bchannel mode %d bchan %d/%d",
@@ -1548,7 +1551,7 @@static void hfcpci_bh (struct IsdnCardState *cs) { -int flags; +long flags;/* struct PStack *stptr; */ if (!cs)
drivers/isdn/hisax/hfc_sx.c +14 -13
@@ -73,7 +73,7 @@/******************************/ static inline void Write_hfc (struct IsdnCardState *cs,u_char regnum,u_char val) -{ registerint flags; +{long flags;save_flags (flags);cli ();
@@ -84,8 +84,8 @@static inline u_char Read_hfc (struct IsdnCardState *cs,u_char regnum) -{ registerint flags; - registeru_char ret; +{long flags; +u_char ret;save_flags (flags);cli ();
@@ -101,7 +101,7 @@/**************************************************/ static void fifo_select (struct IsdnCardState *cs,u_char fifo) -{int flags; +{long flags;if (fifo == cs->hw.hfcsx.last_fifo)return ;/* still valid */
@@ -123,7 +123,7 @@/******************************************/ static void reset_fifo (struct IsdnCardState *cs,u_char fifo) -{int flags; +{long flags;save_flags (flags);cli ();
@@ -337,7 +337,7 @@void release_io_hfcsx (struct IsdnCardState *cs) { -int flags; +long flags;save_flags (flags);cli ();
@@ -599,7 +599,7 @@ hfcsx_fill_fifo(struct BCState *bcs) {struct IsdnCardState *cs = bcs->cs; -int flags; +long flags;if (!bcs->tx_skb)return ;
@@ -670,7 +670,7 @@static int hfcsx_auxcmd (struct IsdnCardState *cs,isdn_ctrl * ic) { -int flags; +long flags;int i = *(unsigned int *) ic->parm.num; if ((ic->arg == 98) &&
@@ -729,7 +729,7 @@static void receive_emsg (struct IsdnCardState *cs) { -int flags; +long flags;int count =5 ;u_char *ptr;struct sk_buff *skb;
@@ -961,7 +961,7 @@ {struct IsdnCardState *cs = (struct IsdnCardState *) st->l1.hardware;struct sk_buff *skb = arg; -int flags; +long flags;switch (pr) {case (PH_DATA |REQUEST ):
@@ -1115,7 +1115,8 @@ mode_hfcsx(struct BCState *bcs, int mode, int bc) { struct IsdnCardState *cs = bcs->cs; -int flags, fifo2; +long flags; +int fifo2; if (cs->debug & L1_DEB_HSCX) debugl1(cs, "HFCSX bchannel mode %d bchan %d/%d",
@@ -1338,7 +1339,7 @@static void hfcsx_bh (struct IsdnCardState *cs) { -int flags; +long flags;/* struct PStack *stptr; */ if (!cs)
@@ -1478,7 +1479,7 @@ {struct IsdnCardState *cs = card->cs;char tmp[64 ]; -int flags; +long flags;strcpy (tmp, hfcsx_revision);printk (KERN_INFO "HiSax: HFC-SX driver Rev. %s\n" ,HiSax_getrev (tmp));
drivers/isdn/hisax/l3dss1.c +3 -2
@@ -44,7 +44,8 @@static unsigned char new_invoke_id (struct PStack *p) {unsigned char retval; -int flags,i; +long flags; +int i; i =32 ;/* maximum search depth */
@@ -72,7 +73,7 @@/* free a used invoke id */ /*************************/ static void free_invoke_id (struct PStack *p,unsigned char id) -{int flags; +{long flags;if (!id)return ;/* 0 = invalid value */
drivers/isdn/hisax/l3ni1.c +3 -2
@@ -48,7 +48,8 @@static unsigned char new_invoke_id (struct PStack *p) {unsigned char retval; -int flags,i; +long flags; +int i; i =32 ;/* maximum search depth */
@@ -76,7 +77,7 @@/* free a used invoke id */ /*************************/ static void free_invoke_id (struct PStack *p,unsigned char id) -{int flags; +{long flags;if (!id)return ;/* 0 = invalid value */
drivers/isdn/icn/icn.c +1 -1
@@ -607,7 +607,7 @@int left;u_char c;int ch; -int flags; +long flags;int i;u_char *p;isdn_ctrl cmd;
drivers/isdn/isdn_common.c +4 -3
@@ -280,7 +280,7 @@ }if (tf) { -int flags; +long flags;save_flags (flags);cli ();
@@ -292,7 +292,8 @@void isdn_timer_ctrl (int tf,int onoff) { -int flags, old_tflags; +long flags; +int old_tflags;save_flags (flags);cli ();
@@ -2393,7 +2394,7 @@*/ static void __exit isdn_exit(void) { -int flags; +long flags;int i;#ifdef CONFIG_ISDN_PPP
drivers/isdn/isdn_net.c +6 -6
@@ -583,7 +583,7 @@isdn_net_dev *p = dev->netdev;int anymore =0 ;int i; -int flags; +ulong flags;isdn_ctrl cmd;while (p) {
@@ -2787,7 +2787,7 @@ chidx = lp->pre_channel; }if (cfg->exclusive >0 ) { -int flags; +ulong flags;/* If binding is exclusive, try to grab the channel */ save_flags (flags);
@@ -3043,7 +3043,7 @@int inout = phone->outgoing &1 ;isdn_net_phone *n;isdn_net_phone *m; -int flags; +ulong flags;if (p) {save_flags (flags);
@@ -3079,7 +3079,7 @@ {isdn_net_phone *n;isdn_net_phone *m; -int flags; +ulong flags;int i;save_flags (flags);
@@ -3128,7 +3128,7 @@static int isdn_net_realrm (isdn_net_dev * p,isdn_net_dev * q) { -int flags; +ulong flags;save_flags (flags);cli ();
@@ -3214,7 +3214,7 @@int isdn_net_rmall (void ) { -int flags; +ulong flags;int ret;/* Walk through netdev-chain */
drivers/isdn/isdnloop/isdnloop.c +1 -1
@@ -323,7 +323,7 @@int left;u_char c;int ch; -int flags; +unsigned long flags;u_char *p;isdn_ctrl cmd;
drivers/net/dl2k.c +1 -1
@@ -470,7 +470,7 @@unsigned entry;u32 ioaddr;int tx_shift; -unsigned flags; +unsigned long flags; ioaddr = dev->base_addr; entry = np->cur_tx %TX_RING_SIZE ;
drivers/net/irda/vlsi_ir.c +1 -1
@@ -728,7 +728,7 @@u8 irintr;int boguscount =20 ;int no_speed_check =0 ; -unsigned flags; +unsigned long flags; iobase = ndev->base_addr;
drivers/net/wan/cycx_x25.c +1 -1
@@ -1347,7 +1347,7 @@ {x25_channel_t *chan = dev->priv;cycx_t *card = chan->card; -u32 flags =0 ; +long flags;char *string_state =NULL ;spin_lock_irqsave (&card->lock, flags);
drivers/net/wireless/airo.c +6 -6
@@ -1228,7 +1228,7 @@/* Check to see if there is something to receive */ if ( status &EV_RX ) {struct sk_buff *skb =NULL ; -int flags; +long flags;u16 fc, len, hdrlen =0 ;struct {u16 status, len;
@@ -1559,7 +1559,7 @@// Im really paranoid about letting it run forever! int max_tries =600000 ;int rc =SUCCESS ; -int flags; +long flags;spin_lock_irqsave (&ai->cmd_lock, flags);OUT4500 (ai,PARAM0 , pCmd->parm0);
@@ -1664,7 +1664,7 @@u16 next;int words;int i; -int flags; +long flags;spin_lock_irqsave (&ai->aux_lock, flags); page =IN4500 (ai,SWS0 +whichbap);
@@ -1738,7 +1738,7 @@static int PC4500_readrid (struct airo_info *ai,u16 rid,void *pBuf,int len) {u16 status; -int flags; +long flags;int rc =SUCCESS ;spin_lock_irqsave (&ai->bap1_lock, flags);
@@ -1780,7 +1780,7 @@ const void *pBuf, int len) {u16 status; -int flags; +long flags;int rc =SUCCESS ;spin_lock_irqsave (&ai->bap1_lock, flags);
@@ -1810,7 +1810,7 @@Resp rsp;u16 txFid;u16 txControl; -int flags; +long flags; cmd.cmd =CMD_ALLOCATETX ; cmd.parm0 = lenPayload;
drivers/sound/gus_wave.c +1 -1
@@ -1952,7 +1952,7 @@int voice, cmd;unsigned short p1, p2;unsigned int plong; -unsigned flags; +unsigned long flags; cmd = event_rec[2 ]; voice = event_rec[3 ];
drivers/usb/pwc-if.c +6 -3
@@ -461,7 +461,8 @@*/ static inline int pwc_next_fill_frame (struct pwc_device *pdev) { -int ret, flags; +int ret; +unsigned long flags; ret =0 ;spin_lock_irqsave (&pdev->ptrlock, flags);
@@ -512,7 +513,8 @@*/ static void pwc_reset_buffers (struct pwc_device *pdev) { -int i, flags; +int i; +unsigned long flags;spin_lock_irqsave (&pdev->ptrlock, flags); pdev->full_frames =NULL ;
@@ -541,7 +543,8 @@*/ static int pwc_handle_frame (struct pwc_device *pdev) { -int ret =0 , flags; +int ret =0 ; +unsigned long flags;spin_lock_irqsave (&pdev->ptrlock, flags);/* First grab our read_frame; this is removed from all lists, so
drivers/video/sis/sis_main.c +1 -1
@@ -593,7 +593,7 @@struct fb_fix_screeninfo fix;struct display *display;struct display_switch *sw; -u32 flags; +long flags;if (con >=0 ) display = &fb_display[con];
Signature · 2 lines
Vojtech Pavlik SuSE Labs