History

Merge tag 'char-misc-5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc

Pull char / misc driver fixes from Greg KH: "Here are a number of small driver fixes for 5.9-rc5 Included in here are: - habanalabs driver fixes - interconnect driver fixes - soundwire driver fixes - dyndbg fixes for reported issues, and then reverts to fix it all up to a sane state. - phy driver fixes All of these have been in linux-next for a while with no reported issues" * tag 'char-misc-5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: Revert "dyndbg: accept query terms like file=bar and module=foo" Revert "dyndbg: fix problem parsing format="foo bar"" scripts/tags.sh: exclude tools directory from tags generation video: fbdev: fix OOB read in vga_8planes_imageblit() dyndbg: fix problem parsing format="foo bar" dyndbg: refine export, rename to dynamic_debug_exec_queries() dyndbg: give %3u width in pr-format, cosmetic only interconnect: qcom: Fix small BW votes being truncated to zero soundwire: fix double free of dangling pointer interconnect: Show bandwidth for disabled paths as zero in debugfs habanalabs: fix report of RAZWI initiator coordinates habanalabs: prevent user buff overflow phy: omap-usb2-phy: disable PHY charger detect phy: qcom-qmp: Use correct values for ipq8074 PCIe Gen2 PHY init soundwire: bus: fix typo in comment on INTSTAT registers phy: qualcomm: fix return value check in qcom_ipq806x_usb_phy_probe() phy: qualcomm: fix platform_no_drv_owner.cocci warnings

Linus Torvalds committed 6 years ago

Commit 2a1a4be2 parents 84b1349 952e93415 files · +172 −92Browse files

Showing the changes to include/linux (1 of 15 files). Show all

Unified · Split

include/linux/dynamic_debug.h+16−4
@@ -49,6 +49,10 @@ struct _ddebug { · 48 unmodified lines
4949
5050
5151 #if defined(CONFIG_DYNAMIC_DEBUG_CORE)
52+
53+/* exported for module authors to exercise >control */
54+int dynamic_debug_exec_queries(const char *query, const char *modname);
55+
5256 int ddebug_add_module(struct _ddebug *tab, unsigned int n,
5357 const char *modname);
5458 extern int ddebug_remove_module(const char *mod_name);
@@ -105,7 +109,7 @@ void __dynamic_ibdev_dbg(struct _ddebug *descriptor, · 50 unmodified lines
105109 static_branch_unlikely(&descriptor.key.dd_key_false)
106110 #endif
107111
108−#else /* !HAVE_JUMP_LABEL */
112+#else /* !CONFIG_JUMP_LABEL */
109113
110114 #define _DPRINTK_KEY_INIT
111115
@@ -117,7 +121,7 @@ void __dynamic_ibdev_dbg(struct _ddebug *descriptor, · 5 unmodified lines
117121 unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT)
118122 #endif
119123
120−#endif
124+#endif /* CONFIG_JUMP_LABEL */
121125
122126 #define __dynamic_func_call(id, fmt, func, ...) do { \
123127 DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
@@ -172,10 +176,11 @@ void __dynamic_ibdev_dbg(struct _ddebug *descriptor, · 48 unmodified lines
172176 KERN_DEBUG, prefix_str, prefix_type, \
173177 rowsize, groupsize, buf, len, ascii)
174178
175−#else
179+#else /* !CONFIG_DYNAMIC_DEBUG_CORE */
176180
177181 #include <linux/string.h>
178182 #include <linux/errno.h>
183+#include <linux/printk.h>
179184
180185 static inline int ddebug_add_module(struct _ddebug *tab, unsigned int n,
181186 const char *modname)
@@ -210,6 +215,13 @@ static inline int ddebug_dyndbg_module_param_cb(char *param, char *val, · 28 unmodified lines
210215 print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, \
211216 rowsize, groupsize, buf, len, ascii); \
212217 } while (0)
213−#endif
218+
219+static inline int dynamic_debug_exec_queries(const char *query, const char *modname)
220+{
221+ pr_warn("kernel not built with CONFIG_DYNAMIC_DEBUG_CORE\n");
222+ return 0;
223+}
224+
225+#endif /* !CONFIG_DYNAMIC_DEBUG_CORE */
214226
215227 #endif