Commit 7dcb98cc authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] misc fixes

 - fix starfire.c printk compile warning (dma_addr_t can be 64 bit) (Martin
   Bligh)

 - Remove an ifdef from the scheduler
parent 07ce6ac0
...@@ -1847,15 +1847,15 @@ static int netdev_close(struct net_device *dev) ...@@ -1847,15 +1847,15 @@ static int netdev_close(struct net_device *dev)
#ifdef __i386__ #ifdef __i386__
if (debug > 2) { if (debug > 2) {
printk("\n"KERN_DEBUG" Tx ring at %8.8x:\n", printk("\n"KERN_DEBUG" Tx ring at %9.9Lx:\n",
np->tx_ring_dma); (u64) np->tx_ring_dma);
for (i = 0; i < 8 /* TX_RING_SIZE is huge! */; i++) for (i = 0; i < 8 /* TX_RING_SIZE is huge! */; i++)
printk(KERN_DEBUG " #%d desc. %8.8x %8.8x -> %8.8x.\n", printk(KERN_DEBUG " #%d desc. %8.8x %8.8x -> %8.8x.\n",
i, le32_to_cpu(np->tx_ring[i].status), i, le32_to_cpu(np->tx_ring[i].status),
le32_to_cpu(np->tx_ring[i].first_addr), le32_to_cpu(np->tx_ring[i].first_addr),
le32_to_cpu(np->tx_done_q[i].status)); le32_to_cpu(np->tx_done_q[i].status));
printk(KERN_DEBUG " Rx ring at %8.8x -> %p:\n", printk(KERN_DEBUG " Rx ring at %9.9Lx -> %p:\n",
np->rx_ring_dma, np->rx_done_q); (u64) np->rx_ring_dma, np->rx_done_q);
if (np->rx_done_q) if (np->rx_done_q)
for (i = 0; i < 8 /* RX_RING_SIZE */; i++) { for (i = 0; i < 8 /* RX_RING_SIZE */; i++) {
printk(KERN_DEBUG " #%d desc. %8.8x -> %8.8x\n", printk(KERN_DEBUG " #%d desc. %8.8x -> %8.8x\n",
......
...@@ -14,8 +14,6 @@ extern struct page *highmem_start_page; ...@@ -14,8 +14,6 @@ extern struct page *highmem_start_page;
/* declarations for linux/mm/highmem.c */ /* declarations for linux/mm/highmem.c */
unsigned int nr_free_highpages(void); unsigned int nr_free_highpages(void);
extern void check_highmem_ptes(void);
#else /* CONFIG_HIGHMEM */ #else /* CONFIG_HIGHMEM */
static inline unsigned int nr_free_highpages(void) { return 0; } static inline unsigned int nr_free_highpages(void) { return 0; }
...@@ -30,6 +28,13 @@ static inline void *kmap(struct page *page) { return page_address(page); } ...@@ -30,6 +28,13 @@ static inline void *kmap(struct page *page) { return page_address(page); }
#endif /* CONFIG_HIGHMEM */ #endif /* CONFIG_HIGHMEM */
#if defined(CONFIG_DEBUG_HIGHMEM) && defined(CONFIG_HIGHMEM)
extern void check_highmem_ptes(void);
#else
static inline void check_highmem_ptes(void)
{}
#endif
/* when CONFIG_HIGHMEM is not set these will be plain clear/copy_page */ /* when CONFIG_HIGHMEM is not set these will be plain clear/copy_page */
static inline void clear_user_highpage(struct page *page, unsigned long vaddr) static inline void clear_user_highpage(struct page *page, unsigned long vaddr)
{ {
......
...@@ -986,9 +986,7 @@ asmlinkage void schedule(void) ...@@ -986,9 +986,7 @@ asmlinkage void schedule(void)
} }
} }
#if CONFIG_DEBUG_HIGHMEM
check_highmem_ptes(); check_highmem_ptes();
#endif
need_resched: need_resched:
preempt_disable(); preempt_disable();
prev = current; prev = current;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment