From: Baolu Lu <baolu.lu@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Joerg Roedel <jroedel@suse.de>, Tina Zhang <tina.zhang@intel.com>,
iommu@lists.linux.dev, linux-kernel@vger.kernel.org
Cc: baolu.lu@linux.intel.com, David Woodhouse <dwmw2@infradead.org>,
Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>
Subject: Re: [PATCH v1 1/1] iommu/vt-d: Increase buffer size for device name
Date: Tue, 29 Oct 2024 12:40:28 +0800 [thread overview]
Message-ID: <a1383f11-dd68-44bc-9ebb-d8d96cb5421a@linux.intel.com> (raw)
In-Reply-To: <20241014104529.4025937-1-andriy.shevchenko@linux.intel.com>
On 2024/10/14 18:45, Andy Shevchenko wrote:
> GCC is not happy with the current code, e.g.:
>
> .../iommu/intel/dmar.c:1063:9: note: ‘sprintf’ output between 6 and 15 bytes into a destination of size 13
> 1063 | sprintf(iommu->name, "dmar%d", iommu->seq_id);
>
> When `make W=1` is supplied, this prevents kernel building. Fix it by
> increasing the buffer size for device name and use sizeoF() instead of
> hard coded constants.
>
> Signed-off-by: Andy Shevchenko<andriy.shevchenko@linux.intel.com>
> ---
> drivers/iommu/intel/dmar.c | 2 +-
> drivers/iommu/intel/iommu.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Queued for v6.13. Thank you!
--
baolu
prev parent reply other threads:[~2024-10-29 4:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-14 10:45 Andy Shevchenko
2024-10-29 4:40 ` Baolu Lu [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=a1383f11-dd68-44bc-9ebb-d8d96cb5421a@linux.intel.com \
--to=baolu.lu@linux.intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=dwmw2@infradead.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=jroedel@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=robin.murphy@arm.com \
--cc=tina.zhang@intel.com \
--cc=will@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®