linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the driver-core tree
@ 2019-08-01  5:05 Stephen Rothwell
  2019-08-01  6:10 ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Rothwell @ 2019-08-01  5:05 UTC (permalink / raw)
  To: Greg KH
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Suzuki K Poulose

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

Hi all,

After merging the driver-core tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/i2c/i2c-core-acpi.c:347:12: warning: 'i2c_acpi_find_match_adapter' defined but not used [-Wunused-function]
 static int i2c_acpi_find_match_adapter(struct device *dev, const void *data)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

  00500147cbd3 ("drivers: Introduce device lookup variants by ACPI_COMPANION device")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: linux-next: build warning after merge of the driver-core tree
  2019-08-01  5:05 linux-next: build warning after merge of the driver-core tree Stephen Rothwell
@ 2019-08-01  6:10 ` Greg KH
  2019-08-01 10:20   ` [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper Suzuki K Poulose
  0 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2019-08-01  6:10 UTC (permalink / raw)
  To: Stephen Rothwell, Suzuki K Poulose
  Cc: Linux Next Mailing List, Linux Kernel Mailing List

On Thu, Aug 01, 2019 at 03:05:37PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the driver-core tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
> 
> drivers/i2c/i2c-core-acpi.c:347:12: warning: 'i2c_acpi_find_match_adapter' defined but not used [-Wunused-function]
>  static int i2c_acpi_find_match_adapter(struct device *dev, const void *data)
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Introduced by commit
> 
>   00500147cbd3 ("drivers: Introduce device lookup variants by ACPI_COMPANION device")

Oops, missed that one.

Suzuki, can you send a follow-on patch to fix this up?

thanks,

greg k-h

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

* [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper
  2019-08-01  6:10 ` Greg KH
@ 2019-08-01 10:20   ` Suzuki K Poulose
  2019-08-01 10:20     ` [PATCH 2/3] drivers: Fix typo in parameter description for driver_find_device_by_acpi_dev Suzuki K Poulose
                       ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Suzuki K Poulose @ 2019-08-01 10:20 UTC (permalink / raw)
  To: gregkh
  Cc: linux-kernel, linux-next, sfr, lkp, Suzuki K Poulose,
	Mika Westerberg, Wolfram Sang

The patch "drivers: Introduce device lookup variants by ACPI_COMPANION device"
converted an incorrect instance in i2c driver to a new helper. Revert this
change.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Wolfram Sang <wsa@the-dreams.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
---
 drivers/i2c/i2c-core-acpi.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/i2c/i2c-core-acpi.c b/drivers/i2c/i2c-core-acpi.c
index bc80aafb521f..f60f7a95d48e 100644
--- a/drivers/i2c/i2c-core-acpi.c
+++ b/drivers/i2c/i2c-core-acpi.c
@@ -357,7 +357,10 @@ static int i2c_acpi_find_match_adapter(struct device *dev, const void *data)
 
 struct i2c_adapter *i2c_acpi_find_adapter_by_handle(acpi_handle handle)
 {
-	struct device *dev = bus_find_device_by_acpi_dev(&i2c_bus_type, handle);
+	struct device *dev;
+
+	dev = bus_find_device(&i2c_bus_type, NULL, handle,
+			      i2c_acpi_find_match_adapter);
 
 	return dev ? i2c_verify_adapter(dev) : NULL;
 }
-- 
2.21.0


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

* [PATCH 2/3] drivers: Fix typo in parameter description for driver_find_device_by_acpi_dev
  2019-08-01 10:20   ` [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper Suzuki K Poulose
@ 2019-08-01 10:20     ` Suzuki K Poulose
  2019-08-01 10:20     ` [PATCH 3/3] drivers: Fix htmldocs warnings with bus_find_next_device() Suzuki K Poulose
  2019-08-01 13:54     ` [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper Greg KH
  2 siblings, 0 replies; 8+ messages in thread
From: Suzuki K Poulose @ 2019-08-01 10:20 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, linux-next, sfr, lkp, Suzuki K Poulose

Fix a typo in the comment describing the parameters for the new API, which
triggers the following warning for htmldocs:

include/linux/device.h:479: warning: Function parameter or member 'drv' not described in 'driver_find_device_by_acpi_dev'

Reported-by: kbuild test robot <lkp@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
---
 include/linux/device.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/device.h b/include/linux/device.h
index 26af63847ca7..b17548b94c3e 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -467,7 +467,7 @@ driver_find_device_by_fwnode(struct device_driver *drv,
 /**
  * driver_find_device_by_devt- device iterator for locating a particular device
  * by devt.
- * @driver: the driver we're iterating
+ * @drv: the driver we're iterating
  * @devt: devt pointer to match.
  */
 static inline struct device *driver_find_device_by_devt(struct device_driver *drv,
-- 
2.21.0


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

* [PATCH 3/3] drivers: Fix htmldocs warnings with bus_find_next_device()
  2019-08-01 10:20   ` [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper Suzuki K Poulose
  2019-08-01 10:20     ` [PATCH 2/3] drivers: Fix typo in parameter description for driver_find_device_by_acpi_dev Suzuki K Poulose
@ 2019-08-01 10:20     ` Suzuki K Poulose
  2019-08-01 13:54     ` [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper Greg KH
  2 siblings, 0 replies; 8+ messages in thread
From: Suzuki K Poulose @ 2019-08-01 10:20 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, linux-next, sfr, lkp, Suzuki K Poulose

Document the parameters for bus_find_next_device() to avoid
htmldocs build warnings as reported below :

include/linux/device.h:236: warning: Function parameter or member 'bus' not described in 'bus_find_next_device'
include/linux/device.h:236: warning: Function parameter or member 'cur' not described in 'bus_find_next_device'

Reported-by: kbuild test robot <lkp@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
---
 include/linux/device.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/device.h b/include/linux/device.h
index b17548b94c3e..ea0238c73a9c 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -229,6 +229,8 @@ static inline struct device *bus_find_device_by_devt(struct bus_type *bus,
 /**
  * bus_find_next_device - Find the next device after a given device in a
  * given bus.
+ * @bus: bus type
+ * @cur: device to begin the search with.
  */
 static inline struct device *
 bus_find_next_device(struct bus_type *bus,struct device *cur)
-- 
2.21.0


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

* Re: [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper
  2019-08-01 10:20   ` [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper Suzuki K Poulose
  2019-08-01 10:20     ` [PATCH 2/3] drivers: Fix typo in parameter description for driver_find_device_by_acpi_dev Suzuki K Poulose
  2019-08-01 10:20     ` [PATCH 3/3] drivers: Fix htmldocs warnings with bus_find_next_device() Suzuki K Poulose
@ 2019-08-01 13:54     ` Greg KH
  2019-08-01 14:03       ` Suzuki K Poulose
  2 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2019-08-01 13:54 UTC (permalink / raw)
  To: Suzuki K Poulose
  Cc: linux-kernel, linux-next, sfr, lkp, Mika Westerberg, Wolfram Sang

On Thu, Aug 01, 2019 at 11:20:24AM +0100, Suzuki K Poulose wrote:
> The patch "drivers: Introduce device lookup variants by ACPI_COMPANION device"
> converted an incorrect instance in i2c driver to a new helper. Revert this
> change.
> 
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
> Cc: Wolfram Sang <wsa@the-dreams.de>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Fixes: 00500147cbd3 ("drivers: Introduce device lookup variants by ACPI_COMPANION device")

I'll go add this...

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

* Re: [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper
  2019-08-01 13:54     ` [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper Greg KH
@ 2019-08-01 14:03       ` Suzuki K Poulose
  2019-08-01 14:05         ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: Suzuki K Poulose @ 2019-08-01 14:03 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, linux-next, sfr, lkp, mika.westerberg, wsa

On 08/01/2019 02:54 PM, Greg KH wrote:
> On Thu, Aug 01, 2019 at 11:20:24AM +0100, Suzuki K Poulose wrote:
>> The patch "drivers: Introduce device lookup variants by ACPI_COMPANION device"
>> converted an incorrect instance in i2c driver to a new helper. Revert this
>> change.
>>
>> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
>> Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
>> Cc: Wolfram Sang <wsa@the-dreams.de>
>> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> 
> Fixes: 00500147cbd3 ("drivers: Introduce device lookup variants by ACPI_COMPANION device")
> 
> I'll go add this...

Thanks Greg ! Sorry, I thought the commit ids may change in linus's and
thus I referred to the "commit subject"

Cheers



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

* Re: [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper
  2019-08-01 14:03       ` Suzuki K Poulose
@ 2019-08-01 14:05         ` Greg KH
  0 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2019-08-01 14:05 UTC (permalink / raw)
  To: Suzuki K Poulose; +Cc: linux-kernel, linux-next, sfr, lkp, mika.westerberg, wsa

On Thu, Aug 01, 2019 at 03:03:06PM +0100, Suzuki K Poulose wrote:
> On 08/01/2019 02:54 PM, Greg KH wrote:
> > On Thu, Aug 01, 2019 at 11:20:24AM +0100, Suzuki K Poulose wrote:
> > > The patch "drivers: Introduce device lookup variants by ACPI_COMPANION device"
> > > converted an incorrect instance in i2c driver to a new helper. Revert this
> > > change.
> > > 
> > > Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > > Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
> > > Cc: Wolfram Sang <wsa@the-dreams.de>
> > > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > 
> > Fixes: 00500147cbd3 ("drivers: Introduce device lookup variants by ACPI_COMPANION device")
> > 
> > I'll go add this...
> 
> Thanks Greg ! Sorry, I thought the commit ids may change in linus's and
> thus I referred to the "commit subject"

Once they are in my -next branch, they will not change.

thanks,

greg k-h

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

end of thread, other threads:[~2019-08-01 14:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-01  5:05 linux-next: build warning after merge of the driver-core tree Stephen Rothwell
2019-08-01  6:10 ` Greg KH
2019-08-01 10:20   ` [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper Suzuki K Poulose
2019-08-01 10:20     ` [PATCH 2/3] drivers: Fix typo in parameter description for driver_find_device_by_acpi_dev Suzuki K Poulose
2019-08-01 10:20     ` [PATCH 3/3] drivers: Fix htmldocs warnings with bus_find_next_device() Suzuki K Poulose
2019-08-01 13:54     ` [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper Greg KH
2019-08-01 14:03       ` Suzuki K Poulose
2019-08-01 14:05         ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).