Patch from Rusty Russell.
#define TX_NUM_FIFO 4
#define TX_BUF_SIZE 32
-#ifndef MIN
-#define MIN(a,b) ((a) < (b) ? (a) : (b))
-#endif
-
/* The async_struct in serial.h does not really give us what we
* need, so define our own here.
*/
bdp = info->tx_cur;
while (1) {
- c = MIN(count, TX_BUF_SIZE);
+ c = min(count, TX_BUF_SIZE);
if (c <= 0)
break;
*/
char_time = 1;
if (timeout)
- char_time = MIN(char_time, timeout);
+ char_time = min(char_time, timeout);
#ifdef SERIAL_DEBUG_RS_WAIT_UNTIL_SENT
printk("In rs_wait_until_sent(%d) check=%lu...", timeout, char_time);
printk("jiff=%lu...", jiffies);
#define TX_NUM_FIFO 4
#define TX_BUF_SIZE 32
-#ifndef MIN
-#define MIN(a,b) ((a) < (b) ? (a) : (b))
-#endif
-
/* The async_struct in serial.h does not really give us what we
* need, so define our own here.
*/
bdp = info->tx_cur;
while (1) {
- c = MIN(count, TX_BUF_SIZE);
+ c = min(count, TX_BUF_SIZE);
if (c <= 0)
break;
*/
char_time = 1;
if (timeout)
- char_time = MIN(char_time, timeout);
+ char_time = min(char_time, timeout);
#ifdef SERIAL_DEBUG_RS_WAIT_UNTIL_SENT
printk("In rs_wait_until_sent(%d) check=%lu...", timeout, char_time);
printk("jiff=%lu...", jiffies);
#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
-#ifndef MIN
-#define MIN(a,b) (((a) < (b)) ? (a) : (b))
-#endif
-
extern void sigreturn_exit(struct pt_regs *);
-#define GP_REGS_SIZE MIN(sizeof(elf_gregset_t), sizeof(struct pt_regs))
+#define GP_REGS_SIZE min(sizeof(elf_gregset_t), sizeof(struct pt_regs))
/*
* These are the flags in the MSR that the user is allowed to change