Thread (10 messages) 10 messages, 4 authors, 2023-03-14

Re: [PATCH v4 1/4] PCI: Introduce pci_dev_for_each_resource()

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2023-03-14 18:41:58
Also in: linux-acpi, linux-alpha, linux-arm-kernel, linux-mips, linux-pci, linux-sh, lkml, sparclinux, xen-devel

On Fri, Mar 10, 2023 at 03:15:38PM -0700, Keith Busch wrote:
On Fri, Mar 10, 2023 at 07:14:13PM +0200, Andy Shevchenko wrote:
...
quoted
+#define pci_dev_for_each_resource_p(dev, res)				\
+	__pci_dev_for_each_resource(dev, res, i, unsigned int)
It looks dangerous to have a macro declare a variable when starting a new
scope. How do you know the name 'i' won't clash with something defined above?
I'll rename. Thank you.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help