diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-09-26 18:04:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-04 06:36:07 -0400 |
commit | 621a5f7ad9cd1ce7933f1d302067cbd58354173c (patch) | |
tree | a9cd51d4b4e70286a339ffc463618d0f33279c67 | |
parent | 6e58f752a6502b43e039fd7df2c7c5cde8dde437 (diff) |
debugfs: Pass bool pointer to debugfs_create_bool()
Its a bit odd that debugfs_create_bool() takes 'u32 *' as an argument,
when all it needs is a boolean pointer.
It would be better to update this API to make it accept 'bool *'
instead, as that will make it more consistent and often more convenient.
Over that bool takes just a byte.
That required updates to all user sites as well, in the same commit
updating the API. regmap core was also using
debugfs_{read|write}_file_bool(), directly and variable types were
updated for that to be bool as well.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
33 files changed, 78 insertions, 78 deletions
diff --git a/Documentation/filesystems/debugfs.txt b/Documentation/filesystems/debugfs.txt index 463f595733e8..4f45f71149cb 100644 --- a/Documentation/filesystems/debugfs.txt +++ b/Documentation/filesystems/debugfs.txt | |||
@@ -105,7 +105,7 @@ a variable of type size_t. | |||
105 | Boolean values can be placed in debugfs with: | 105 | Boolean values can be placed in debugfs with: |
106 | 106 | ||
107 | struct dentry *debugfs_create_bool(const char *name, umode_t mode, | 107 | struct dentry *debugfs_create_bool(const char *name, umode_t mode, |
108 | struct dentry *parent, u32 *value); | 108 | struct dentry *parent, bool *value); |
109 | 109 | ||
110 | A read on the resulting file will yield either Y (for non-zero values) or | 110 | A read on the resulting file will yield either Y (for non-zero values) or |
111 | N, followed by a newline. If written to, it will accept either upper- or | 111 | N, followed by a newline. If written to, it will accept either upper- or |
diff --git a/arch/arm64/kernel/debug-monitors.c b/arch/arm64/kernel/debug-monitors.c index cebf78661a55..1c4cd4a0d7cc 100644 --- a/arch/arm64/kernel/debug-monitors.c +++ b/arch/arm64/kernel/debug-monitors.c | |||
@@ -58,7 +58,7 @@ static u32 mdscr_read(void) | |||
58 | * Allow root to disable self-hosted debug from userspace. | 58 | * Allow root to disable self-hosted debug from userspace. |
59 | * This is useful if you want to connect an external JTAG debugger. | 59 | * This is useful if you want to connect an external JTAG debugger. |
60 | */ | 60 | */ |
61 | static u32 debug_enabled = 1; | 61 | static bool debug_enabled = true; |
62 | 62 | ||
63 | static int create_debug_debugfs_entry(void) | 63 | static int create_debug_debugfs_entry(void) |
64 | { | 64 | { |
@@ -69,7 +69,7 @@ fs_initcall(create_debug_debugfs_entry); | |||
69 | 69 | ||
70 | static int __init early_debug_disable(char *buf) | 70 | static int __init early_debug_disable(char *buf) |
71 | { | 71 | { |
72 | debug_enabled = 0; | 72 | debug_enabled = false; |
73 | return 0; | 73 | return 0; |
74 | } | 74 | } |
75 | 75 | ||
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index 9db196de003c..5a72e2b140fc 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h | |||
@@ -138,7 +138,7 @@ struct acpi_ec { | |||
138 | unsigned long gpe; | 138 | unsigned long gpe; |
139 | unsigned long command_addr; | 139 | unsigned long command_addr; |
140 | unsigned long data_addr; | 140 | unsigned long data_addr; |
141 | u32 global_lock; | 141 | bool global_lock; |
142 | unsigned long flags; | 142 | unsigned long flags; |
143 | unsigned long reference_count; | 143 | unsigned long reference_count; |
144 | struct mutex mutex; | 144 | struct mutex mutex; |
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index cc557886ab23..5b907f2c62b9 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h | |||
@@ -122,9 +122,9 @@ struct regmap { | |||
122 | unsigned int num_reg_defaults_raw; | 122 | unsigned int num_reg_defaults_raw; |
123 | 123 | ||
124 | /* if set, only the cache is modified not the HW */ | 124 | /* if set, only the cache is modified not the HW */ |
125 | u32 cache_only; | 125 | bool cache_only; |
126 | /* if set, only the HW is modified not the cache */ | 126 | /* if set, only the HW is modified not the cache */ |
127 | u32 cache_bypass; | 127 | bool cache_bypass; |
128 | /* if set, remember to free reg_defaults_raw */ | 128 | /* if set, remember to free reg_defaults_raw */ |
129 | bool cache_free; | 129 | bool cache_free; |
130 | 130 | ||
@@ -132,7 +132,7 @@ struct regmap { | |||
132 | const void *reg_defaults_raw; | 132 | const void *reg_defaults_raw; |
133 | void *cache; | 133 | void *cache; |
134 | /* if set, the cache contains newer data than the HW */ | 134 | /* if set, the cache contains newer data than the HW */ |
135 | u32 cache_dirty; | 135 | bool cache_dirty; |
136 | /* if set, the HW registers are known to match map->reg_defaults */ | 136 | /* if set, the HW registers are known to match map->reg_defaults */ |
137 | bool no_sync_defaults; | 137 | bool no_sync_defaults; |
138 | 138 | ||
diff --git a/drivers/base/regmap/regcache-lzo.c b/drivers/base/regmap/regcache-lzo.c index 2d53f6f138e1..736e0d378567 100644 --- a/drivers/base/regmap/regcache-lzo.c +++ b/drivers/base/regmap/regcache-lzo.c | |||
@@ -355,9 +355,9 @@ static int regcache_lzo_sync(struct regmap *map, unsigned int min, | |||
355 | if (ret > 0 && val == map->reg_defaults[ret].def) | 355 | if (ret > 0 && val == map->reg_defaults[ret].def) |
356 | continue; | 356 | continue; |
357 | 357 | ||
358 | map->cache_bypass = 1; | 358 | map->cache_bypass = true; |
359 | ret = _regmap_write(map, i, val); | 359 | ret = _regmap_write(map, i, val); |
360 | map->cache_bypass = 0; | 360 | map->cache_bypass = false; |
361 | if (ret) | 361 | if (ret) |
362 | return ret; | 362 | return ret; |
363 | dev_dbg(map->dev, "Synced register %#x, value %#x\n", | 363 | dev_dbg(map->dev, "Synced register %#x, value %#x\n", |
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index 6f8a13ec32a4..4c07802986b2 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c | |||
@@ -54,11 +54,11 @@ static int regcache_hw_init(struct regmap *map) | |||
54 | return -ENOMEM; | 54 | return -ENOMEM; |
55 | 55 | ||
56 | if (!map->reg_defaults_raw) { | 56 | if (!map->reg_defaults_raw) { |
57 | u32 cache_bypass = map->cache_bypass; | 57 | bool cache_bypass = map->cache_bypass; |
58 | dev_warn(map->dev, "No cache defaults, reading back from HW\n"); | 58 | dev_warn(map->dev, "No cache defaults, reading back from HW\n"); |
59 | 59 | ||
60 | /* Bypass the cache access till data read from HW*/ | 60 | /* Bypass the cache access till data read from HW*/ |
61 | map->cache_bypass = 1; | 61 | map->cache_bypass = true; |
62 | tmp_buf = kmalloc(map->cache_size_raw, GFP_KERNEL); | 62 | tmp_buf = kmalloc(map->cache_size_raw, GFP_KERNEL); |
63 | if (!tmp_buf) { | 63 | if (!tmp_buf) { |
64 | ret = -ENOMEM; | 64 | ret = -ENOMEM; |
@@ -285,9 +285,9 @@ static int regcache_default_sync(struct regmap *map, unsigned int min, | |||
285 | if (!regcache_reg_needs_sync(map, reg, val)) | 285 | if (!regcache_reg_needs_sync(map, reg, val)) |
286 | continue; | 286 | continue; |
287 | 287 | ||
288 | map->cache_bypass = 1; | 288 | map->cache_bypass = true; |
289 | ret = _regmap_write(map, reg, val); | 289 | ret = _regmap_write(map, reg, val); |
290 | map->cache_bypass = 0; | 290 | map->cache_bypass = false; |
291 | if (ret) { | 291 | if (ret) { |
292 | dev_err(map->dev, "Unable to sync register %#x. %d\n", | 292 | dev_err(map->dev, "Unable to sync register %#x. %d\n", |
293 | reg, ret); | 293 | reg, ret); |
@@ -315,7 +315,7 @@ int regcache_sync(struct regmap *map) | |||
315 | int ret = 0; | 315 | int ret = 0; |
316 | unsigned int i; | 316 | unsigned int i; |
317 | const char *name; | 317 | const char *name; |
318 | unsigned int bypass; | 318 | bool bypass; |
319 | 319 | ||
320 | BUG_ON(!map->cache_ops); | 320 | BUG_ON(!map->cache_ops); |
321 | 321 | ||
@@ -333,7 +333,7 @@ int regcache_sync(struct regmap *map) | |||
333 | map->async = true; | 333 | map->async = true; |
334 | 334 | ||
335 | /* Apply any patch first */ | 335 | /* Apply any patch first */ |
336 | map->cache_bypass = 1; | 336 | map->cache_bypass = true; |
337 | for (i = 0; i < map->patch_regs; i++) { | 337 | for (i = 0; i < map->patch_regs; i++) { |
338 | ret = _regmap_write(map, map->patch[i].reg, map->patch[i].def); | 338 | ret = _regmap_write(map, map->patch[i].reg, map->patch[i].def); |
339 | if (ret != 0) { | 339 | if (ret != 0) { |
@@ -342,7 +342,7 @@ int regcache_sync(struct regmap *map) | |||
342 | goto out; | 342 | goto out; |
343 | } | 343 | } |
344 | } | 344 | } |
345 | map->cache_bypass = 0; | 345 | map->cache_bypass = false; |
346 | 346 | ||
347 | if (map->cache_ops->sync) | 347 | if (map->cache_ops->sync) |
348 | ret = map->cache_ops->sync(map, 0, map->max_register); | 348 | ret = map->cache_ops->sync(map, 0, map->max_register); |
@@ -384,7 +384,7 @@ int regcache_sync_region(struct regmap *map, unsigned int min, | |||
384 | { | 384 | { |
385 | int ret = 0; | 385 | int ret = 0; |
386 | const char *name; | 386 | const char *name; |
387 | unsigned int bypass; | 387 | bool bypass; |
388 | 388 | ||
389 | BUG_ON(!map->cache_ops); | 389 | BUG_ON(!map->cache_ops); |
390 | 390 | ||
@@ -637,11 +637,11 @@ static int regcache_sync_block_single(struct regmap *map, void *block, | |||
637 | if (!regcache_reg_needs_sync(map, regtmp, val)) | 637 | if (!regcache_reg_needs_sync(map, regtmp, val)) |
638 | continue; | 638 | continue; |
639 | 639 | ||
640 | map->cache_bypass = 1; | 640 | map->cache_bypass = true; |
641 | 641 | ||
642 | ret = _regmap_write(map, regtmp, val); | 642 | ret = _regmap_write(map, regtmp, val); |
643 | 643 | ||
644 | map->cache_bypass = 0; | 644 | map->cache_bypass = false; |
645 | if (ret != 0) { | 645 | if (ret != 0) { |
646 | dev_err(map->dev, "Unable to sync register %#x. %d\n", | 646 | dev_err(map->dev, "Unable to sync register %#x. %d\n", |
647 | regtmp, ret); | 647 | regtmp, ret); |
@@ -668,14 +668,14 @@ static int regcache_sync_block_raw_flush(struct regmap *map, const void **data, | |||
668 | dev_dbg(map->dev, "Writing %zu bytes for %d registers from 0x%x-0x%x\n", | 668 | dev_dbg(map->dev, "Writing %zu bytes for %d registers from 0x%x-0x%x\n", |
669 | count * val_bytes, count, base, cur - map->reg_stride); | 669 | count * val_bytes, count, base, cur - map->reg_stride); |
670 | 670 | ||
671 | map->cache_bypass = 1; | 671 | map->cache_bypass = true; |
672 | 672 | ||
673 | ret = _regmap_raw_write(map, base, *data, count * val_bytes); | 673 | ret = _regmap_raw_write(map, base, *data, count * val_bytes); |
674 | if (ret) | 674 | if (ret) |
675 | dev_err(map->dev, "Unable to sync registers %#x-%#x. %d\n", | 675 | dev_err(map->dev, "Unable to sync registers %#x-%#x. %d\n", |
676 | base, cur - map->reg_stride, ret); | 676 | base, cur - map->reg_stride, ret); |
677 | 677 | ||
678 | map->cache_bypass = 0; | 678 | map->cache_bypass = false; |
679 | 679 | ||
680 | *data = NULL; | 680 | *data = NULL; |
681 | 681 | ||
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 6b9b91267959..509477681661 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c | |||
@@ -80,8 +80,8 @@ struct qca_data { | |||
80 | spinlock_t hci_ibs_lock; /* HCI_IBS state lock */ | 80 | spinlock_t hci_ibs_lock; /* HCI_IBS state lock */ |
81 | u8 tx_ibs_state; /* HCI_IBS transmit side power state*/ | 81 | u8 tx_ibs_state; /* HCI_IBS transmit side power state*/ |
82 | u8 rx_ibs_state; /* HCI_IBS receive side power state */ | 82 | u8 rx_ibs_state; /* HCI_IBS receive side power state */ |
83 | u32 tx_vote; /* Clock must be on for TX */ | 83 | bool tx_vote; /* Clock must be on for TX */ |
84 | u32 rx_vote; /* Clock must be on for RX */ | 84 | bool rx_vote; /* Clock must be on for RX */ |
85 | struct timer_list tx_idle_timer; | 85 | struct timer_list tx_idle_timer; |
86 | u32 tx_idle_delay; | 86 | u32 tx_idle_delay; |
87 | struct timer_list wake_retrans_timer; | 87 | struct timer_list wake_retrans_timer; |
diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index 5ef347a13cb5..c59314523f4c 100644 --- a/drivers/iommu/amd_iommu_init.c +++ b/drivers/iommu/amd_iommu_init.c | |||
@@ -138,7 +138,7 @@ u16 amd_iommu_last_bdf; /* largest PCI device id we have | |||
138 | to handle */ | 138 | to handle */ |
139 | LIST_HEAD(amd_iommu_unity_map); /* a list of required unity mappings | 139 | LIST_HEAD(amd_iommu_unity_map); /* a list of required unity mappings |
140 | we find in ACPI */ | 140 | we find in ACPI */ |
141 | u32 amd_iommu_unmap_flush; /* if true, flush on every unmap */ | 141 | bool amd_iommu_unmap_flush; /* if true, flush on every unmap */ |
142 | 142 | ||
143 | LIST_HEAD(amd_iommu_list); /* list of all AMD IOMMUs in the | 143 | LIST_HEAD(amd_iommu_list); /* list of all AMD IOMMUs in the |
144 | system */ | 144 | system */ |
diff --git a/drivers/iommu/amd_iommu_types.h b/drivers/iommu/amd_iommu_types.h index f65908841be0..861550a1ad1f 100644 --- a/drivers/iommu/amd_iommu_types.h +++ b/drivers/iommu/amd_iommu_types.h | |||
@@ -674,7 +674,7 @@ extern unsigned long *amd_iommu_pd_alloc_bitmap; | |||
674 | * If true, the addresses will be flushed on unmap time, not when | 674 | * If true, the addresses will be flushed on unmap time, not when |
675 | * they are reused | 675 | * they are reused |
676 | */ | 676 | */ |
677 | extern u32 amd_iommu_unmap_flush; | 677 | extern bool amd_iommu_unmap_flush; |
678 | 678 | ||
679 | /* Smallest max PASID supported by any IOMMU in the system */ | 679 | /* Smallest max PASID supported by any IOMMU in the system */ |
680 | extern u32 amd_iommu_max_pasid; | 680 | extern u32 amd_iommu_max_pasid; |
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index e25ee16c658e..d74b6aa8ae27 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h | |||
@@ -528,7 +528,7 @@ struct mei_device { | |||
528 | DECLARE_BITMAP(host_clients_map, MEI_CLIENTS_MAX); | 528 | DECLARE_BITMAP(host_clients_map, MEI_CLIENTS_MAX); |
529 | unsigned long me_client_index; | 529 | unsigned long me_client_index; |
530 | 530 | ||
531 | u32 allow_fixed_address; | 531 | bool allow_fixed_address; |
532 | 532 | ||
533 | struct mei_cl wd_cl; | 533 | struct mei_cl wd_cl; |
534 | enum mei_wd_states wd_state; | 534 | enum mei_wd_states wd_state; |
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h index fa0c7b54ec7a..5384f999c24b 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |||
@@ -767,8 +767,8 @@ struct adapter { | |||
767 | bool tid_release_task_busy; | 767 | bool tid_release_task_busy; |
768 | 768 | ||
769 | struct dentry *debugfs_root; | 769 | struct dentry *debugfs_root; |
770 | u32 use_bd; /* Use SGE Back Door intfc for reading SGE Contexts */ | 770 | bool use_bd; /* Use SGE Back Door intfc for reading SGE Contexts */ |
771 | u32 trace_rss; /* 1 implies that different RSS flit per filter is | 771 | bool trace_rss; /* 1 implies that different RSS flit per filter is |
772 | * used per filter else if 0 default RSS flit is | 772 | * used per filter else if 0 default RSS flit is |
773 | * used for all 4 filters. | 773 | * used for all 4 filters. |
774 | */ | 774 | */ |
diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h index 12542144fe12..b6a08177b6ee 100644 --- a/drivers/net/wireless/ath/ath10k/core.h +++ b/drivers/net/wireless/ath/ath10k/core.h | |||
@@ -680,7 +680,7 @@ struct ath10k { | |||
680 | bool monitor_started; | 680 | bool monitor_started; |
681 | unsigned int filter_flags; | 681 | unsigned int filter_flags; |
682 | unsigned long dev_flags; | 682 | unsigned long dev_flags; |
683 | u32 dfs_block_radar_events; | 683 | bool dfs_block_radar_events; |
684 | 684 | ||
685 | /* protected by conf_mutex */ | 685 | /* protected by conf_mutex */ |
686 | bool radar_enabled; | 686 | bool radar_enabled; |
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h index fa6e89e5c421..ba12f7f4061d 100644 --- a/drivers/net/wireless/ath/ath5k/ath5k.h +++ b/drivers/net/wireless/ath/ath5k/ath5k.h | |||
@@ -1367,7 +1367,7 @@ struct ath5k_hw { | |||
1367 | u8 ah_retry_long; | 1367 | u8 ah_retry_long; |
1368 | u8 ah_retry_short; | 1368 | u8 ah_retry_short; |
1369 | 1369 | ||
1370 | u32 ah_use_32khz_clock; | 1370 | bool ah_use_32khz_clock; |
1371 | 1371 | ||
1372 | u8 ah_coverage_class; | 1372 | u8 ah_coverage_class; |
1373 | bool ah_ack_bitrate_high; | 1373 | bool ah_ack_bitrate_high; |
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 1dd0339de372..8823fadada89 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -385,7 +385,7 @@ static void ath9k_hw_init_config(struct ath_hw *ah) | |||
385 | 385 | ||
386 | ah->config.dma_beacon_response_time = 1; | 386 | ah->config.dma_beacon_response_time = 1; |
387 | ah->config.sw_beacon_response_time = 6; | 387 | ah->config.sw_beacon_response_time = 6; |
388 | ah->config.cwm_ignore_extcca = 0; | 388 | ah->config.cwm_ignore_extcca = false; |
389 | ah->config.analog_shiftreg = 1; | 389 | ah->config.analog_shiftreg = 1; |
390 | 390 | ||
391 | ah->config.rx_intr_mitigation = true; | 391 | ah->config.rx_intr_mitigation = true; |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index e8454db17634..52971b48ab6a 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -332,14 +332,14 @@ enum ath9k_hw_hang_checks { | |||
332 | struct ath9k_ops_config { | 332 | struct ath9k_ops_config { |
333 | int dma_beacon_response_time; | 333 | int dma_beacon_response_time; |
334 | int sw_beacon_response_time; | 334 | int sw_beacon_response_time; |
335 | u32 cwm_ignore_extcca; | 335 | bool cwm_ignore_extcca; |
336 | u32 pcie_waen; | 336 | u32 pcie_waen; |
337 | u8 analog_shiftreg; | 337 | u8 analog_shiftreg; |
338 | u32 ofdm_trig_low; | 338 | u32 ofdm_trig_low; |
339 | u32 ofdm_trig_high; | 339 | u32 ofdm_trig_high; |
340 | u32 cck_trig_high; | 340 | u32 cck_trig_high; |
341 | u32 cck_trig_low; | 341 | u32 cck_trig_low; |
342 | u32 enable_paprd; | 342 | bool enable_paprd; |
343 | int serialize_regmode; | 343 | int serialize_regmode; |
344 | bool rx_intr_mitigation; | 344 | bool rx_intr_mitigation; |
345 | bool tx_intr_mitigation; | 345 | bool tx_intr_mitigation; |
diff --git a/drivers/net/wireless/b43/debugfs.c b/drivers/net/wireless/b43/debugfs.c index e807bd930647..b4bcd94aff6c 100644 --- a/drivers/net/wireless/b43/debugfs.c +++ b/drivers/net/wireless/b43/debugfs.c | |||
@@ -676,15 +676,15 @@ static void b43_add_dynamic_debug(struct b43_wldev *dev) | |||
676 | e->dyn_debug_dentries[id] = d; \ | 676 | e->dyn_debug_dentries[id] = d; \ |
677 | } while (0) | 677 | } while (0) |
678 | 678 | ||
679 | add_dyn_dbg("debug_xmitpower", B43_DBG_XMITPOWER, 0); | 679 | add_dyn_dbg("debug_xmitpower", B43_DBG_XMITPOWER, false); |
680 | add_dyn_dbg("debug_dmaoverflow", B43_DBG_DMAOVERFLOW, 0); | 680 | add_dyn_dbg("debug_dmaoverflow", B43_DBG_DMAOVERFLOW, false); |
681 | add_dyn_dbg("debug_dmaverbose", B43_DBG_DMAVERBOSE, 0); | 681 | add_dyn_dbg("debug_dmaverbose", B43_DBG_DMAVERBOSE, false); |
682 | add_dyn_dbg("debug_pwork_fast", B43_DBG_PWORK_FAST, 0); | 682 | add_dyn_dbg("debug_pwork_fast", B43_DBG_PWORK_FAST, false); |
683 | add_dyn_dbg("debug_pwork_stop", B43_DBG_PWORK_STOP, 0); | 683 | add_dyn_dbg("debug_pwork_stop", B43_DBG_PWORK_STOP, false); |
684 | add_dyn_dbg("debug_lo", B43_DBG_LO, 0); | 684 | add_dyn_dbg("debug_lo", B43_DBG_LO, false); |
685 | add_dyn_dbg("debug_firmware", B43_DBG_FIRMWARE, 0); | 685 | add_dyn_dbg("debug_firmware", B43_DBG_FIRMWARE, false); |
686 | add_dyn_dbg("debug_keys", B43_DBG_KEYS, 0); | 686 | add_dyn_dbg("debug_keys", B43_DBG_KEYS, false); |
687 | add_dyn_dbg("debug_verbose_stats", B43_DBG_VERBOSESTATS, 0); | 687 | add_dyn_dbg("debug_verbose_stats", B43_DBG_VERBOSESTATS, false); |
688 | 688 | ||
689 | #undef add_dyn_dbg | 689 | #undef add_dyn_dbg |
690 | } | 690 | } |
diff --git a/drivers/net/wireless/b43/debugfs.h b/drivers/net/wireless/b43/debugfs.h index 50517b801cb4..d05377745011 100644 --- a/drivers/net/wireless/b43/debugfs.h +++ b/drivers/net/wireless/b43/debugfs.h | |||
@@ -68,7 +68,7 @@ struct b43_dfsentry { | |||
68 | u32 shm32read_addr_next; | 68 | u32 shm32read_addr_next; |
69 | 69 | ||
70 | /* Enabled/Disabled list for the dynamic debugging features. */ | 70 | /* Enabled/Disabled list for the dynamic debugging features. */ |
71 | u32 dyn_debug[__B43_NR_DYNDBG]; | 71 | bool dyn_debug[__B43_NR_DYNDBG]; |
72 | /* Dentries for the dynamic debugging entries. */ | 72 | /* Dentries for the dynamic debugging entries. */ |
73 | struct dentry *dyn_debug_dentries[__B43_NR_DYNDBG]; | 73 | struct dentry *dyn_debug_dentries[__B43_NR_DYNDBG]; |
74 | }; | 74 | }; |
diff --git a/drivers/net/wireless/b43legacy/debugfs.c b/drivers/net/wireless/b43legacy/debugfs.c index 1965edb765a2..090910ea259e 100644 --- a/drivers/net/wireless/b43legacy/debugfs.c +++ b/drivers/net/wireless/b43legacy/debugfs.c | |||
@@ -369,11 +369,11 @@ static void b43legacy_add_dynamic_debug(struct b43legacy_wldev *dev) | |||
369 | e->dyn_debug_dentries[id] = d; \ | 369 | e->dyn_debug_dentries[id] = d; \ |
370 | } while (0) | 370 | } while (0) |
371 | 371 | ||
372 | add_dyn_dbg("debug_xmitpower", B43legacy_DBG_XMITPOWER, 0); | 372 | add_dyn_dbg("debug_xmitpower", B43legacy_DBG_XMITPOWER, false); |
373 | add_dyn_dbg("debug_dmaoverflow", B43legacy_DBG_DMAOVERFLOW, 0); | 373 | add_dyn_dbg("debug_dmaoverflow", B43legacy_DBG_DMAOVERFLOW, false); |
374 | add_dyn_dbg("debug_dmaverbose", B43legacy_DBG_DMAVERBOSE, 0); | 374 | add_dyn_dbg("debug_dmaverbose", B43legacy_DBG_DMAVERBOSE, false); |
375 | add_dyn_dbg("debug_pwork_fast", B43legacy_DBG_PWORK_FAST, 0); | 375 | add_dyn_dbg("debug_pwork_fast", B43legacy_DBG_PWORK_FAST, false); |
376 | add_dyn_dbg("debug_pwork_stop", B43legacy_DBG_PWORK_STOP, 0); | 376 | add_dyn_dbg("debug_pwork_stop", B43legacy_DBG_PWORK_STOP, false); |
377 | 377 | ||
378 | #undef add_dyn_dbg | 378 | #undef add_dyn_dbg |
379 | } | 379 | } |
diff --git a/drivers/net/wireless/b43legacy/debugfs.h b/drivers/net/wireless/b43legacy/debugfs.h index ae3b0d0fa849..9ee32158b947 100644 --- a/drivers/net/wireless/b43legacy/debugfs.h +++ b/drivers/net/wireless/b43legacy/debugfs.h | |||
@@ -47,7 +47,7 @@ struct b43legacy_dfsentry { | |||
47 | struct b43legacy_txstatus_log txstatlog; | 47 | struct b43legacy_txstatus_log txstatlog; |
48 | 48 | ||
49 | /* Enabled/Disabled list for the dynamic debugging features. */ | 49 | /* Enabled/Disabled list for the dynamic debugging features. */ |
50 | u32 dyn_debug[__B43legacy_NR_DYNDBG]; | 50 | bool dyn_debug[__B43legacy_NR_DYNDBG]; |
51 | /* Dentries for the dynamic debugging entries. */ | 51 | /* Dentries for the dynamic debugging entries. */ |
52 | struct dentry *dyn_debug_dentries[__B43legacy_NR_DYNDBG]; | 52 | struct dentry *dyn_debug_dentries[__B43legacy_NR_DYNDBG]; |
53 | }; | 53 | }; |
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h index 5b972798bdff..ce52cf114fde 100644 --- a/drivers/net/wireless/iwlegacy/common.h +++ b/drivers/net/wireless/iwlegacy/common.h | |||
@@ -1425,9 +1425,9 @@ struct il_priv { | |||
1425 | #endif /* CONFIG_IWLEGACY_DEBUGFS */ | 1425 | #endif /* CONFIG_IWLEGACY_DEBUGFS */ |
1426 | 1426 | ||
1427 | struct work_struct txpower_work; | 1427 | struct work_struct txpower_work; |
1428 | u32 disable_sens_cal; | 1428 | bool disable_sens_cal; |
1429 | u32 disable_chain_noise_cal; | 1429 | bool disable_chain_noise_cal; |
1430 | u32 disable_tx_power_cal; | 1430 | bool disable_tx_power_cal; |
1431 | struct work_struct run_time_calib_work; | 1431 | struct work_struct run_time_calib_work; |
1432 | struct timer_list stats_periodic; | 1432 | struct timer_list stats_periodic; |
1433 | struct timer_list watchdog; | 1433 | struct timer_list watchdog; |
diff --git a/drivers/net/wireless/iwlwifi/mvm/mvm.h b/drivers/net/wireless/iwlwifi/mvm/mvm.h index b95a07ec9e36..72e8a03a5293 100644 --- a/drivers/net/wireless/iwlwifi/mvm/mvm.h +++ b/drivers/net/wireless/iwlwifi/mvm/mvm.h | |||
@@ -649,7 +649,7 @@ struct iwl_mvm { | |||
649 | const struct iwl_fw_bcast_filter *bcast_filters; | 649 | const struct iwl_fw_bcast_filter *bcast_filters; |
650 | #ifdef CONFIG_IWLWIFI_DEBUGFS | 650 | #ifdef CONFIG_IWLWIFI_DEBUGFS |
651 | struct { | 651 | struct { |
652 | u32 override; /* u32 for debugfs_create_bool */ | 652 | bool override; |
653 | struct iwl_bcast_filter_cmd cmd; | 653 | struct iwl_bcast_filter_cmd cmd; |
654 | } dbgfs_bcast_filtering; | 654 | } dbgfs_bcast_filtering; |
655 | #endif | 655 | #endif |
@@ -673,7 +673,7 @@ struct iwl_mvm { | |||
673 | bool disable_power_off; | 673 | bool disable_power_off; |
674 | bool disable_power_off_d3; | 674 | bool disable_power_off_d3; |
675 | 675 | ||
676 | u32 scan_iter_notif_enabled; /* must be u32 for debugfs_create_bool */ | 676 | bool scan_iter_notif_enabled; |
677 | 677 | ||
678 | struct debugfs_blob_wrapper nvm_hw_blob; | 678 | struct debugfs_blob_wrapper nvm_hw_blob; |
679 | struct debugfs_blob_wrapper nvm_sw_blob; | 679 | struct debugfs_blob_wrapper nvm_sw_blob; |
@@ -729,7 +729,7 @@ struct iwl_mvm { | |||
729 | int n_nd_channels; | 729 | int n_nd_channels; |
730 | bool net_detect; | 730 | bool net_detect; |
731 | #ifdef CONFIG_IWLWIFI_DEBUGFS | 731 | #ifdef CONFIG_IWLWIFI_DEBUGFS |
732 | u32 d3_wake_sysassert; /* must be u32 for debugfs_create_bool */ | 732 | bool d3_wake_sysassert; |
733 | bool d3_test_active; | 733 | bool d3_test_active; |
734 | bool store_d3_resume_sram; | 734 | bool store_d3_resume_sram; |
735 | void *d3_resume_sram; | 735 | void *d3_resume_sram; |
diff --git a/drivers/scsi/snic/snic_trc.c b/drivers/scsi/snic/snic_trc.c index 28a40a7ade38..f00ebf4717e0 100644 --- a/drivers/scsi/snic/snic_trc.c +++ b/drivers/scsi/snic/snic_trc.c | |||
@@ -148,7 +148,7 @@ snic_trc_init(void) | |||
148 | 148 | ||
149 | trc->max_idx = (tbuf_sz / SNIC_TRC_ENTRY_SZ); | 149 | trc->max_idx = (tbuf_sz / SNIC_TRC_ENTRY_SZ); |
150 | trc->rd_idx = trc->wr_idx = 0; | 150 | trc->rd_idx = trc->wr_idx = 0; |
151 | trc->enable = 1; | 151 | trc->enable = true; |
152 | SNIC_INFO("Trace Facility Enabled.\n Trace Buffer SZ %lu Pages.\n", | 152 | SNIC_INFO("Trace Facility Enabled.\n Trace Buffer SZ %lu Pages.\n", |
153 | tbuf_sz / PAGE_SIZE); | 153 | tbuf_sz / PAGE_SIZE); |
154 | ret = 0; | 154 | ret = 0; |
@@ -169,7 +169,7 @@ snic_trc_free(void) | |||
169 | { | 169 | { |
170 | struct snic_trc *trc = &snic_glob->trc; | 170 | struct snic_trc *trc = &snic_glob->trc; |
171 | 171 | ||
172 | trc->enable = 0; | 172 | trc->enable = false; |
173 | snic_trc_debugfs_term(); | 173 | snic_trc_debugfs_term(); |
174 | 174 | ||
175 | if (trc->buf) { | 175 | if (trc->buf) { |
diff --git a/drivers/scsi/snic/snic_trc.h b/drivers/scsi/snic/snic_trc.h index 427faee5f97e..b37f8867bfde 100644 --- a/drivers/scsi/snic/snic_trc.h +++ b/drivers/scsi/snic/snic_trc.h | |||
@@ -45,7 +45,7 @@ struct snic_trc { | |||
45 | u32 max_idx; /* Max Index into trace buffer */ | 45 | u32 max_idx; /* Max Index into trace buffer */ |
46 | u32 rd_idx; | 46 | u32 rd_idx; |
47 | u32 wr_idx; | 47 | u32 wr_idx; |
48 | u32 enable; /* Control Variable for Tracing */ | 48 | bool enable; /* Control Variable for Tracing */ |
49 | 49 | ||
50 | struct dentry *trc_enable; /* debugfs file object */ | 50 | struct dentry *trc_enable; /* debugfs file object */ |
51 | struct dentry *trc_file; | 51 | struct dentry *trc_file; |
diff --git a/drivers/uwb/uwb-debug.c b/drivers/uwb/uwb-debug.c index 0b1e5a9449b5..991374b13571 100644 --- a/drivers/uwb/uwb-debug.c +++ b/drivers/uwb/uwb-debug.c | |||
@@ -55,7 +55,7 @@ | |||
55 | struct uwb_dbg { | 55 | struct uwb_dbg { |
56 | struct uwb_pal pal; | 56 | struct uwb_pal pal; |
57 | 57 | ||
58 | u32 accept; | 58 | bool accept; |
59 | struct list_head rsvs; | 59 | struct list_head rsvs; |
60 | 60 | ||
61 | struct dentry *root_d; | 61 | struct dentry *root_d; |
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index 6c55ade071c3..b70c20fae502 100644 --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c | |||
@@ -439,7 +439,7 @@ ssize_t debugfs_read_file_bool(struct file *file, char __user *user_buf, | |||
439 | size_t count, loff_t *ppos) | 439 | size_t count, loff_t *ppos) |
440 | { | 440 | { |
441 | char buf[3]; | 441 | char buf[3]; |
442 | u32 *val = file->private_data; | 442 | bool *val = file->private_data; |
443 | 443 | ||
444 | if (*val) | 444 | if (*val) |
445 | buf[0] = 'Y'; | 445 | buf[0] = 'Y'; |
@@ -457,7 +457,7 @@ ssize_t debugfs_write_file_bool(struct file *file, const char __user *user_buf, | |||
457 | char buf[32]; | 457 | char buf[32]; |
458 | size_t buf_size; | 458 | size_t buf_size; |
459 | bool bv; | 459 | bool bv; |
460 | u32 *val = file->private_data; | 460 | bool *val = file->private_data; |
461 | 461 | ||
462 | buf_size = min(count, (sizeof(buf)-1)); | 462 | buf_size = min(count, (sizeof(buf)-1)); |
463 | if (copy_from_user(buf, user_buf, buf_size)) | 463 | if (copy_from_user(buf, user_buf, buf_size)) |
@@ -503,7 +503,7 @@ static const struct file_operations fops_bool = { | |||
503 | * code. | 503 | * code. |
504 | */ | 504 | */ |
505 | struct dentry *debugfs_create_bool(const char *name, umode_t mode, | 505 | struct dentry *debugfs_create_bool(const char *name, umode_t mode, |
506 | struct dentry *parent, u32 *value) | 506 | struct dentry *parent, bool *value) |
507 | { | 507 | { |
508 | return debugfs_create_file(name, mode, parent, value, &fops_bool); | 508 | return debugfs_create_file(name, mode, parent, value, &fops_bool); |
509 | } | 509 | } |
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 9beb636b97eb..8321fe3058d6 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h | |||
@@ -92,7 +92,7 @@ struct dentry *debugfs_create_size_t(const char *name, umode_t mode, | |||
92 | struct dentry *debugfs_create_atomic_t(const char *name, umode_t mode, | 92 | struct dentry *debugfs_create_atomic_t(const char *name, umode_t mode, |
93 | struct dentry *parent, atomic_t *value); | 93 | struct dentry *parent, atomic_t *value); |
94 | struct dentry *debugfs_create_bool(const char *name, umode_t mode, | 94 | struct dentry *debugfs_create_bool(const char *name, umode_t mode, |
95 | struct dentry *parent, u32 *value); | 95 | struct dentry *parent, bool *value); |
96 | 96 | ||
97 | struct dentry *debugfs_create_blob(const char *name, umode_t mode, | 97 | struct dentry *debugfs_create_blob(const char *name, umode_t mode, |
98 | struct dentry *parent, | 98 | struct dentry *parent, |
@@ -243,7 +243,7 @@ static inline struct dentry *debugfs_create_atomic_t(const char *name, umode_t m | |||
243 | 243 | ||
244 | static inline struct dentry *debugfs_create_bool(const char *name, umode_t mode, | 244 | static inline struct dentry *debugfs_create_bool(const char *name, umode_t mode, |
245 | struct dentry *parent, | 245 | struct dentry *parent, |
246 | u32 *value) | 246 | bool *value) |
247 | { | 247 | { |
248 | return ERR_PTR(-ENODEV); | 248 | return ERR_PTR(-ENODEV); |
249 | } | 249 | } |
diff --git a/include/linux/edac.h b/include/linux/edac.h index da3b72e95db3..7c6b7ba55589 100644 --- a/include/linux/edac.h +++ b/include/linux/edac.h | |||
@@ -772,7 +772,7 @@ struct mem_ctl_info { | |||
772 | #ifdef CONFIG_EDAC_DEBUG | 772 | #ifdef CONFIG_EDAC_DEBUG |
773 | struct dentry *debugfs; | 773 | struct dentry *debugfs; |
774 | u8 fake_inject_layer[EDAC_MAX_LAYERS]; | 774 | u8 fake_inject_layer[EDAC_MAX_LAYERS]; |
775 | u32 fake_inject_ue; | 775 | bool fake_inject_ue; |
776 | u16 fake_inject_count; | 776 | u16 fake_inject_count; |
777 | #endif | 777 | #endif |
778 | }; | 778 | }; |
diff --git a/include/linux/fault-inject.h b/include/linux/fault-inject.h index 798fad9e420d..3159a7dba034 100644 --- a/include/linux/fault-inject.h +++ b/include/linux/fault-inject.h | |||
@@ -18,7 +18,7 @@ struct fault_attr { | |||
18 | atomic_t times; | 18 | atomic_t times; |
19 | atomic_t space; | 19 | atomic_t space; |
20 | unsigned long verbose; | 20 | unsigned long verbose; |
21 | u32 task_filter; | 21 | bool task_filter; |
22 | unsigned long stacktrace_depth; | 22 | unsigned long stacktrace_depth; |
23 | unsigned long require_start; | 23 | unsigned long require_start; |
24 | unsigned long require_end; | 24 | unsigned long require_end; |
diff --git a/kernel/futex.c b/kernel/futex.c index 6e443efc65f4..395b967841b4 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
@@ -267,10 +267,10 @@ static struct futex_hash_bucket *futex_queues; | |||
267 | static struct { | 267 | static struct { |
268 | struct fault_attr attr; | 268 | struct fault_attr attr; |
269 | 269 | ||
270 | u32 ignore_private; | 270 | bool ignore_private; |
271 | } fail_futex = { | 271 | } fail_futex = { |
272 | .attr = FAULT_ATTR_INITIALIZER, | 272 | .attr = FAULT_ATTR_INITIALIZER, |
273 | .ignore_private = 0, | 273 | .ignore_private = false, |
274 | }; | 274 | }; |
275 | 275 | ||
276 | static int __init setup_fail_futex(char *str) | 276 | static int __init setup_fail_futex(char *str) |
diff --git a/lib/dma-debug.c b/lib/dma-debug.c index dace71fe41f7..fcb65d2a0b94 100644 --- a/lib/dma-debug.c +++ b/lib/dma-debug.c | |||
@@ -100,7 +100,7 @@ static LIST_HEAD(free_entries); | |||
100 | static DEFINE_SPINLOCK(free_entries_lock); | 100 | static DEFINE_SPINLOCK(free_entries_lock); |
101 | 101 | ||
102 | /* Global disable flag - will be set in case of an error */ | 102 | /* Global disable flag - will be set in case of an error */ |
103 | static u32 global_disable __read_mostly; | 103 | static bool global_disable __read_mostly; |
104 | 104 | ||
105 | /* Early initialization disable flag, set at the end of dma_debug_init */ | 105 | /* Early initialization disable flag, set at the end of dma_debug_init */ |
106 | static bool dma_debug_initialized __read_mostly; | 106 | static bool dma_debug_initialized __read_mostly; |
diff --git a/mm/failslab.c b/mm/failslab.c index fefaabaab76d..98fb490311eb 100644 --- a/mm/failslab.c +++ b/mm/failslab.c | |||
@@ -3,12 +3,12 @@ | |||
3 | 3 | ||
4 | static struct { | 4 | static struct { |
5 | struct fault_attr attr; | 5 | struct fault_attr attr; |
6 | u32 ignore_gfp_wait; | 6 | bool ignore_gfp_wait; |
7 | int cache_filter; | 7 | bool cache_filter; |
8 | } failslab = { | 8 | } failslab = { |
9 | .attr = FAULT_ATTR_INITIALIZER, | 9 | .attr = FAULT_ATTR_INITIALIZER, |
10 | .ignore_gfp_wait = 1, | 10 | .ignore_gfp_wait = true, |
11 | .cache_filter = 0, | 11 | .cache_filter = false, |
12 | }; | 12 | }; |
13 | 13 | ||
14 | bool should_failslab(size_t size, gfp_t gfpflags, unsigned long cache_flags) | 14 | bool should_failslab(size_t size, gfp_t gfpflags, unsigned long cache_flags) |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 48aaf7b9f253..805bbad2e24e 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2159,13 +2159,13 @@ failed: | |||
2159 | static struct { | 2159 | static struct { |
2160 | struct fault_attr attr; | 2160 | struct fault_attr attr; |
2161 | 2161 | ||
2162 | u32 ignore_gfp_highmem; | 2162 | bool ignore_gfp_highmem; |
2163 | u32 ignore_gfp_wait; | 2163 | bool ignore_gfp_wait; |
2164 | u32 min_order; | 2164 | u32 min_order; |
2165 | } fail_page_alloc = { | 2165 | } fail_page_alloc = { |
2166 | .attr = FAULT_ATTR_INITIALIZER, | 2166 | .attr = FAULT_ATTR_INITIALIZER, |
2167 | .ignore_gfp_wait = 1, | 2167 | .ignore_gfp_wait = true, |
2168 | .ignore_gfp_highmem = 1, | 2168 | .ignore_gfp_highmem = true, |
2169 | .min_order = 1, | 2169 | .min_order = 1, |
2170 | }; | 2170 | }; |
2171 | 2171 | ||
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h index 579a6350fb01..2d117cf0e953 100644 --- a/sound/soc/codecs/wm_adsp.h +++ b/sound/soc/codecs/wm_adsp.h | |||
@@ -53,7 +53,7 @@ struct wm_adsp { | |||
53 | 53 | ||
54 | int fw; | 54 | int fw; |
55 | int fw_ver; | 55 | int fw_ver; |
56 | u32 running; | 56 | bool running; |
57 | 57 | ||
58 | struct list_head ctl_list; | 58 | struct list_head ctl_list; |
59 | 59 | ||