From: Dan Carpenter <dan.carpenter@linaro.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Markus Elfring <Markus.Elfring@web.de>,
sparclinux@vger.kernel.org,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Andreas Larsson <andreas@gaisler.com>,
Christoph Lameter <cl@linux.com>,
"David S. Miller" <davem@davemloft.net>,
Finn Thain <fthain@linux-m68k.org>, Tejun Heo <tj@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org,
Miaoqian Lin <linmq006@gmail.com>
Subject: Re: [PATCH] sparc: time: Use pointer from memcpy() call for assignment in setup_sparc64_timer()
Date: Fri, 31 Oct 2025 14:27:11 +0300 [thread overview]
Message-ID: <aQSdD5RFHvzJOlak@stanley.mountain> (raw)
In-Reply-To: <CAMuHMdXL+YXxwAM+HkawzTMxL2ez5O4bQ-j-LCCXTjz=NoLOKQ@mail.gmail.com>
On Fri, Oct 31, 2025 at 11:08:39AM +0100, Geert Uytterhoeven wrote:
>
> The above function could be shortened by writing
>
> (sevt = memcpy(this_cpu_ptr(&sparc64_events), &sparc64_clockevent,
> sizeof(*sevt)))->cpumask = cpumask_of(smp_processor_id());
Heh.
regards,
dan carpenter
prev parent reply other threads:[~2025-10-31 11:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-31 7:46 [PATCH] sparc: time: Use pointer from memcpy() call for assignment in setup_sparc64_timer() Markus Elfring
2025-10-31 8:01 ` Geert Uytterhoeven
2025-10-31 8:46 ` Markus Elfring
2025-10-31 9:51 ` David Laight
2025-10-31 10:08 ` Geert Uytterhoeven
2025-10-31 11:27 ` Dan Carpenter [this message]
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=aQSdD5RFHvzJOlak@stanley.mountain \
--to=dan.carpenter@linaro.org \
--cc=Markus.Elfring@web.de \
--cc=alexandre.belloni@bootlin.com \
--cc=andreas@gaisler.com \
--cc=cl@linux.com \
--cc=davem@davemloft.net \
--cc=fthain@linux-m68k.org \
--cc=geert@linux-m68k.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linmq006@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sparclinux@vger.kernel.org \
--cc=tj@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.