From: "Thomas Weißschuh" <thomas@weissschuh.net>
To: Nathan Chancellor <nathan@kernel.org>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Thomas Weißschuh" <linux@weissschuh.net>,
"Nipun Gupta" <nipun.gupta@amd.com>,
"Nikhil Agarwal" <nikhil.agarwal@amd.com>,
linux-kernel@vger.kernel.org, patches@lists.linux.dev
Subject: Re: [PATCH] cdx: Fix cdx_mmap_resource() after constifying attr in ->mmap()
Date: Fri, 8 Nov 2024 13:11:08 -0500 (EST) [thread overview]
Message-ID: <d4fd2fc7-bd3a-4ce1-91a2-9afdc092e881@weissschuh.net> (raw)
In-Reply-To: <20241108175437.GD2564051@thelio-3990X>
Nov 8, 2024 12:54:41 Nathan Chancellor <nathan@kernel.org>:
> On Fri, Nov 08, 2024 at 12:23:50PM -0500, Thomas Weißschuh wrote:
>> Nov 7, 2024 12:07:56 Nathan Chancellor <nathan@kernel.org>:
>>> Fixes: 94a20fb9af16 ("sysfs: treewide: constify attribute callback of bin_attribute::mmap()")
>>
>> I'm not sure about the Fixes tag.
>> cdx.c is not yet in mainline and this change should be folded into the cdx patch or the sysfs patch, depending on their order in the merge window.
>> I guess Greg will take care of it.
>
> This code is in mainline, so I think the Fixes tag is correct?
Indeed. Sorry for the noise.
I re-checked this before writing the other mail, but somehow failed.
(Maybe because I did it on a phone)
I'm wondering how this got through 0day, too.
Anyways, it shouldn't matter.
Thanks again for the fix!
> $ git grep cdx_mmap_resource v6.12-rc1 drivers/cdx/cdx.c
> v6.12-rc1:drivers/cdx/cdx.c: * cdx_mmap_resource - map a CDX resource into user memory space
> v6.12-rc1:drivers/cdx/cdx.c:static int cdx_mmap_resource(struct file *fp, struct kobject *kobj,
> v6.12-rc1:drivers/cdx/cdx.c: res_attr->mmap = cdx_mmap_resource;
>
> The error is reproducible on driver-core-next since that is what I based
> this change on.
>
> Thanks for the review!
>
> Cheers,
> Nathan
next prev parent reply other threads:[~2024-11-08 18:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-07 17:07 [PATCH] cdx: Fix cdx_mmap_resource() after constifying attr in ->mmap() Nathan Chancellor
2024-11-08 14:45 ` Thorsten Leemhuis
2024-11-08 17:23 ` Thomas Weißschuh
2024-11-08 17:54 ` Nathan Chancellor
2024-11-08 18:11 ` Thomas Weißschuh [this message]
2024-11-11 11:06 ` Agarwal, Nikhil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d4fd2fc7-bd3a-4ce1-91a2-9afdc092e881@weissschuh.net \
--to=thomas@weissschuh.net \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=nathan@kernel.org \
--cc=nikhil.agarwal@amd.com \
--cc=nipun.gupta@amd.com \
--cc=patches@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox