mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] x86/apic: remove declaration of unused hw_nmi_is_cpu_stuck
@ 2016-03-23  1:40 Yaowei Bai
  2016-03-23  1:40 ` [PATCH 2/2] x86/dma: is_device_dma_capable can be boolean Yaowei Bai
  2016-03-23 11:39 ` [tip:x86/urgent] x86/apic: Remove declaration of unused hw_nmi_is_cpu_stuck tip-bot for Yaowei Bai
  0 siblings, 2 replies; 3+ messages in thread
From: Yaowei Bai @ 2016-03-23  1:40 UTC (permalink / raw)
  To: tglx, mingo, hpa; +Cc: x86, linux-kernel, baiyaowei

Commit 10f9014912 ("x86: Cleanup hw_nmi.c cruft") removed unused
code in the hw_nmi.c file because of the redesign of the hardlockup
watchdog but left declaration of hw_nmi_is_cpu_stuck in linux/nmi.h,
so remvoe it.

Signed-off-by: Yaowei Bai <baiyaowei@cmss.chinamobile.com>
---
 include/linux/nmi.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/nmi.h b/include/linux/nmi.h
index 7ec5b86..4630eea 100644
--- a/include/linux/nmi.h
+++ b/include/linux/nmi.h
@@ -65,7 +65,6 @@ static inline bool trigger_allbutself_cpu_backtrace(void)
 #endif
 
 #ifdef CONFIG_LOCKUP_DETECTOR
-int hw_nmi_is_cpu_stuck(struct pt_regs *);
 u64 hw_nmi_get_sample_period(int watchdog_thresh);
 extern int nmi_watchdog_enabled;
 extern int soft_watchdog_enabled;
-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] x86/dma: is_device_dma_capable can be boolean
  2016-03-23  1:40 [PATCH 1/2] x86/apic: remove declaration of unused hw_nmi_is_cpu_stuck Yaowei Bai
@ 2016-03-23  1:40 ` Yaowei Bai
  2016-03-23 11:39 ` [tip:x86/urgent] x86/apic: Remove declaration of unused hw_nmi_is_cpu_stuck tip-bot for Yaowei Bai
  1 sibling, 0 replies; 3+ messages in thread
From: Yaowei Bai @ 2016-03-23  1:40 UTC (permalink / raw)
  To: tglx, mingo, hpa; +Cc: x86, linux-kernel, baiyaowei

This patch makes is_device_dma_capable return bool to improve
readability due to this particular function only using either
one or zero as its return value.

No functional change.

Signed-off-by: Yaowei Bai <baiyaowei@cmss.chinamobile.com>
---
 include/linux/dma-mapping.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
index 5e45cf9..175c20f 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
@@ -81,7 +81,7 @@ static inline int valid_dma_direction(int dma_direction)
 		(dma_direction == DMA_FROM_DEVICE));
 }
 
-static inline int is_device_dma_capable(struct device *dev)
+static inline bool is_device_dma_capable(struct device *dev)
 {
 	return dev->dma_mask != NULL && *dev->dma_mask != DMA_MASK_NONE;
 }
-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:x86/urgent] x86/apic: Remove declaration of unused hw_nmi_is_cpu_stuck
  2016-03-23  1:40 [PATCH 1/2] x86/apic: remove declaration of unused hw_nmi_is_cpu_stuck Yaowei Bai
  2016-03-23  1:40 ` [PATCH 2/2] x86/dma: is_device_dma_capable can be boolean Yaowei Bai
@ 2016-03-23 11:39 ` tip-bot for Yaowei Bai
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Yaowei Bai @ 2016-03-23 11:39 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, tglx, mingo, baiyaowei

Commit-ID:  f09e3f4fe42caad0c0f59c1489d2b3f512c070b5
Gitweb:     http://git.kernel.org/tip/f09e3f4fe42caad0c0f59c1489d2b3f512c070b5
Author:     Yaowei Bai <baiyaowei@cmss.chinamobile.com>
AuthorDate: Wed, 23 Mar 2016 09:40:09 +0800
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Wed, 23 Mar 2016 12:34:17 +0100

x86/apic: Remove declaration of unused hw_nmi_is_cpu_stuck

Commit 10f9014912 ("x86: Cleanup hw_nmi.c cruft") removed unused
code in the hw_nmi.c file because of the redesign of the hardlockup
watchdog but left declaration of hw_nmi_is_cpu_stuck in linux/nmi.h,
so remvoe it.

Signed-off-by: Yaowei Bai <baiyaowei@cmss.chinamobile.com>
Link: http://lkml.kernel.org/r/1458697210-3027-1-git-send-email-baiyaowei@cmss.chinamobile.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

---
 include/linux/nmi.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/nmi.h b/include/linux/nmi.h
index 7ec5b86..4630eea 100644
--- a/include/linux/nmi.h
+++ b/include/linux/nmi.h
@@ -65,7 +65,6 @@ static inline bool trigger_allbutself_cpu_backtrace(void)
 #endif
 
 #ifdef CONFIG_LOCKUP_DETECTOR
-int hw_nmi_is_cpu_stuck(struct pt_regs *);
 u64 hw_nmi_get_sample_period(int watchdog_thresh);
 extern int nmi_watchdog_enabled;
 extern int soft_watchdog_enabled;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-23 11:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-23  1:40 [PATCH 1/2] x86/apic: remove declaration of unused hw_nmi_is_cpu_stuck Yaowei Bai
2016-03-23  1:40 ` [PATCH 2/2] x86/dma: is_device_dma_capable can be boolean Yaowei Bai
2016-03-23 11:39 ` [tip:x86/urgent] x86/apic: Remove declaration of unused hw_nmi_is_cpu_stuck tip-bot for Yaowei Bai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome