lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 26 May 2020 17:19:07 +0200
From:   "Rafael J. Wysocki" <>
To:     Krzysztof Wilczyński <>
Cc:     Greg Kroah-Hartman <>,
        Dan Carpenter <>,
        "Rafael J. Wysocki" <>,
        Len Brown <>, Kevin Hilman <>,
        Ulf Hansson <>,
        Pavel Machek <>, Johan Hovold <>,
        Alex Elder <>,
        Bjorn Helgaas <>,
        "James E.J. Bottomley" <>,
        "Martin K. Petersen" <>,
        Felipe Balbi <>,
        Julian Wiedmann <>,
        Karsten Graul <>,
        Ursula Braun <>,
        Jakub Kicinski <>,
        Bjorn Andersson <>,
        John Stultz <>,
        "David S. Miller" <>,, netdev <>,
        ACPI Devel Maling List <>,
        Linux PCI <>,
        Linux PM <>,,
        "open list:TARGET SUBSYSTEM" <>,
        "open list:ULTRA-WIDEBAND (UWB) SUBSYSTEM:" 
Subject: Re: [PATCH 8/8] net/iucv: Use the new device_to_pm() helper to access
 struct dev_pm_ops

On Tue, May 26, 2020 at 5:07 PM Krzysztof Wilczyński <> wrote:
> Hello Greg,
> [...]
> > It's "interesting" how using your new helper doesn't actually make the
> > code smaller.  Perhaps it isn't a good helper function?
> The idea for the helper was inspired by the comment Dan made to Bjorn
> about Bjorn's change, as per:
> It looked like a good idea to try to reduce the following:
>   dev->driver && dev->driver->pm && dev->driver->pm->prepare
> Into something more succinct.  Albeit, given the feedback from yourself
> and Rafael, I gather that this helper is not really a good addition.

IMO it could be used for reducing code duplication like you did in the
PCI code, but not necessarily in the other places where the code in
question is not exactly duplicated.


Powered by blists - more mailing lists