public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Reunbreak the MEM_ENCRYPT build
@ 2023-06-28 19:03 Matthew Wilcox
  2023-06-28 19:52 ` Linus Torvalds
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Wilcox @ 2023-06-28 19:03 UTC (permalink / raw)
  To: Linus Torvalds, Thomas Gleixner; +Cc: linux-kernel

Current top of tree doesn't build for me:

../arch/x86/include/asm/mem_encrypt.h:23:20: error: static declaration of ‘mem_encrypt_init’ follows non-static declaration
   23 | static inline void mem_encrypt_init(void) { }
      |                    ^~~~~~~~~~~~~~~~
In file included from ../include/linux/printk.h:6,
                 from ../include/linux/kernel.h:30,
                 from ../arch/x86/include/asm/percpu.h:27,
                 from ../arch/x86/include/asm/preempt.h:6:
../include/linux/init.h:158:6: note: previous declaration of ‘mem_encrypt_init’ with type ‘void(void)’
  158 | void mem_encrypt_init(void);
      |      ^~~~~~~~~~~~~~~~

I applied this locally:

diff --git a/include/linux/init.h b/include/linux/init.h
index 1200fa99e848..266c3e1640d4 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -155,7 +155,6 @@ void __init init_rootfs(void);

 void init_IRQ(void);
 void time_init(void);
-void mem_encrypt_init(void);
 void poking_init(void);
 void pgtable_cache_init(void);

Probably this is the wrong fix.


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

* Re: Reunbreak the MEM_ENCRYPT build
  2023-06-28 19:03 Reunbreak the MEM_ENCRYPT build Matthew Wilcox
@ 2023-06-28 19:52 ` Linus Torvalds
  2023-06-28 21:33   ` Thomas Gleixner
  2023-06-29  0:19   ` Stephen Rothwell
  0 siblings, 2 replies; 4+ messages in thread
From: Linus Torvalds @ 2023-06-28 19:52 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: Thomas Gleixner, linux-kernel

On Wed, 28 Jun 2023 at 12:03, Matthew Wilcox <willy@infradead.org> wrote:
>
> Probably this is the wrong fix.

No, that looks like the obviously correct fix, I just don't see how we
all missed that stale declaration.

I guess we all had X86_MEM_ENCRYPT enabled, which hides the problem.
And other architectures wouldn't have had the issue.

                 Linus

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

* Re: Reunbreak the MEM_ENCRYPT build
  2023-06-28 19:52 ` Linus Torvalds
@ 2023-06-28 21:33   ` Thomas Gleixner
  2023-06-29  0:19   ` Stephen Rothwell
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Gleixner @ 2023-06-28 21:33 UTC (permalink / raw)
  To: Linus Torvalds, Matthew Wilcox; +Cc: linux-kernel

On Wed, Jun 28 2023 at 12:52, Linus Torvalds wrote:
> On Wed, 28 Jun 2023 at 12:03, Matthew Wilcox <willy@infradead.org> wrote:
>>
>> Probably this is the wrong fix.
>
> No, that looks like the obviously correct fix, I just don't see how we
> all missed that stale declaration.
>
> I guess we all had X86_MEM_ENCRYPT enabled, which hides the problem.
> And other architectures wouldn't have had the issue.

Sigh. I'm sure that I fixed that before. No idea how I missed it in the
final reference merge (again).

Sorry.

        tglx

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

* Re: Reunbreak the MEM_ENCRYPT build
  2023-06-28 19:52 ` Linus Torvalds
  2023-06-28 21:33   ` Thomas Gleixner
@ 2023-06-29  0:19   ` Stephen Rothwell
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2023-06-29  0:19 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Matthew Wilcox, Thomas Gleixner, linux-kernel

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

Hi Linus,

On Wed, 28 Jun 2023 12:52:24 -0700 Linus Torvalds <torvalds@linux-foundation.org> wrote:
>
> On Wed, 28 Jun 2023 at 12:03, Matthew Wilcox <willy@infradead.org> wrote:
> >
> > Probably this is the wrong fix.  
> 
> No, that looks like the obviously correct fix, I just don't see how we
> all missed that stale declaration.
> 
> I guess we all had X86_MEM_ENCRYPT enabled, which hides the problem.
> And other architectures wouldn't have had the issue.

https://lore.kernel.org/all/20230620145357.12d6b23f@canb.auug.org.au/

:-(
-- 
Cheers,
Stephen Rothwell

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

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

end of thread, other threads:[~2023-06-29  0:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-28 19:03 Reunbreak the MEM_ENCRYPT build Matthew Wilcox
2023-06-28 19:52 ` Linus Torvalds
2023-06-28 21:33   ` Thomas Gleixner
2023-06-29  0:19   ` Stephen Rothwell

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