Thread (4 messages) 4 messages, 3 authors, 2020-05-20

Re: [PATCH v11 2/3] i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2020-05-20 11:49:29
Also in: linux-devicetree, linux-i2c, lkml, openbmc

On Wed, May 20, 2020 at 02:37:13PM +0300, Avi Fishman wrote:
On Wed, May 20, 2020 at 1:24 PM Andy Shevchenko
[off-list ref] wrote:
quoted
On Wed, May 20, 2020 at 12:51:12PM +0300, Tali Perry wrote:
quoted
Add Nuvoton NPCM BMC I2C controller driver.
...
quoted
+#ifdef CONFIG_DEBUG_FS
Why?!
It is made to save code size if CONFIG_DEBUG_FS is not defined?
Nope (in cases I have commented on). Try again.
We see a lot of kernel code that is doing it.
Cargo cult, okay. So, somebody should try to understand what they are doing.
So could you elaborate what is the problem?
Problem 1: ugly code.
Problem 2: some of the code is not guarded (seems never been tested with disabled debugfs).
Problem 3: it's not needed.
quoted
quoted
+#include <linux/debugfs.h>
+#endif
-- 
With Best Regards,
Andy Shevchenko



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help