Linux-Next discussions
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the devsec-tsm tree
@ 2025-05-08  8:10 Stephen Rothwell
  2025-05-09  0:37 ` Dan Williams
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2025-05-08  8:10 UTC (permalink / raw)
  To: Dan Williams, sathyanarayanan.kuppuswamy, yilun.xu, sameo, aik,
	suzuki.poulose, steven.price, lukas, Greg KH
  Cc: Cedric Xing, Thomas Weißschuh, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]

Hi all,

After merging the devsec-tsm tree, today's linux-next build (x86_64
allmodconfig) failed like this:

drivers/virt/coco/guest/tsm-mr.c: In function 'tsm_mr_create_attribute_group':
drivers/virt/coco/guest/tsm-mr.c:228:29: error: assignment to 'const struct bin_attribute * const*' from incompatible pointer type 'struct bin_attribute **' [-Wincompatible-pointer-types]
  228 |         ctx->agrp.bin_attrs = no_free_ptr(bas);
      |                             ^

Caused by commit

  29b07a7b8f41 ("tsm-mr: Add TVM Measurement Register support")

interacting with commit

  9bec944506fa ("sysfs: constify attribute_group::bin_attrs")

from the driver-core tree.

I have applied the following merge resolution for today (there must be
a better solution).

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Thu, 8 May 2025 17:52:55 +1000
Subject: [PATCH] fix up for "tsm-mr: Add TVM Measurement Register support"

interacting with "sysfs: constify attribute_group::bin_attrs" from the
driver-core tree.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/virt/coco/guest/tsm-mr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/virt/coco/guest/tsm-mr.c b/drivers/virt/coco/guest/tsm-mr.c
index d75b08548292..37e6650bfb6c 100644
--- a/drivers/virt/coco/guest/tsm-mr.c
+++ b/drivers/virt/coco/guest/tsm-mr.c
@@ -225,7 +225,7 @@ tsm_mr_create_attribute_group(const struct tsm_measurements *tm)
 
 	init_rwsem(&ctx->rwsem);
 	ctx->agrp.name = "measurements";
-	ctx->agrp.bin_attrs = no_free_ptr(bas);
+	ctx->agrp.bin_attrs = (const struct bin_attribute *const *)no_free_ptr(bas);
 	ctx->tm = tm;
 	return &no_free_ptr(ctx)->agrp;
 }
-- 
2.47.2

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-05-13  4:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-08  8:10 linux-next: build failure after merge of the devsec-tsm tree Stephen Rothwell
2025-05-09  0:37 ` Dan Williams
2025-05-09  7:12   ` Greg KH
2025-05-12 17:40     ` Xing, Cedric
2025-05-12 18:45     ` Dan Williams
2025-05-10  7:05   ` Thomas Weißschuh
2025-05-13  4:56     ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox