Content-Type: multipart/mixed; boundary="===============8234520807183377317==" MIME-Version: 1.0 From: Hans de Goede To: kbuild-all@lists.01.org Subject: Re: [PATCH] asus-laptop: fix kobj_to_dev.cocci warnings Date: Tue, 23 Mar 2021 21:00:42 +0100 Message-ID: <6e2b729c-11c7-cdf9-18cc-8d3aa988e134@redhat.com> In-Reply-To: List-Id: --===============8234520807183377317== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, On 3/17/21 1:00 PM, Julia Lawall wrote: > From: kernel test robot > = > Use kobj_to_dev() instead of container_of() > = > Generated by: scripts/coccinelle/api/kobj_to_dev.cocci > = > CC: Denis Efremov > Reported-by: kernel test robot > Signed-off-by: kernel test robot > Signed-off-by: Julia Lawall Thank you for your patch, I've applied this patch to my review-hans = branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.= git/log/?h=3Dreview-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > --- > = > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t master > head: 1df27313f50a57497c1faeb6a6ae4ca939c85a7d > commit: a2fc3718bc22e85378085568ecc5765fb28cabce coccinelle: api: add kob= j_to_dev.cocci script > :::::: branch date: 5 hours ago > :::::: commit date: 7 months ago > = > asus-laptop.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > = > --- a/drivers/platform/x86/asus-laptop.c > +++ b/drivers/platform/x86/asus-laptop.c > @@ -1569,7 +1569,7 @@ static umode_t asus_sysfs_is_visible(str > struct attribute *attr, > int idx) > { > - struct device *dev =3D container_of(kobj, struct device, kobj); > + struct device *dev =3D kobj_to_dev(kobj); > struct asus_laptop *asus =3D dev_get_drvdata(dev); > acpi_handle handle =3D asus->handle; > bool supported; >=20 --===============8234520807183377317==--