lkml.org 
[lkml]   [2022]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v3] hyperv: simplify and rename generate_guest_id
Date
From: Olaf Hering <olaf@aepfle.de> Sent: Monday, September 26, 2022 12:57 AM
>
> Sat, 24 Sep 2022 05:31:34 +0000 "Michael Kelley (LINUX)" <mikelley@microsoft.com>:
>
> > From: Olaf Hering <olaf@aepfle.de> Sent: Friday, September 23, 2022 2:09 PM
>
> > > A very long time ago I removed most usage of version.h AFAIR,
> > Could you elaborate?
>
> It is the cost of 'make LOCALVERSION=x' vs. 'make LOCALVERSION=y'.
>
> Too many drivers will be recompiled for no good reason as of today.
> I claim no consumer below drivers/ and sound/ has a valid usecase for version.h.
> But, someone else has to take the energy and argue them out of the tree.
>
> With the proposed change every consumer of asm-generic/mshyperv.h will be dirty,
> see 'touch include/asm-generic/mshyperv.h' for the impact. Therefore I think
> only the two existing c files should include this header, in case the provided
> information has a true value for the consumer.
>

Thanks, Olaf. That makes sense and I agree.

Li Kunyu -- that means you should "undo" part of your patch. Keep the use
of LINUX_VERSION_CODE and the #include of <linux/version.h> in the two
.c files, and pass LINUX_VERSION_CODE as an argument to hv_generate_guest_id().
Remove the #include of <linux/version.h> from include/asm-generic/mshyperv.h.

Michael

\
 
 \ /
  Last update: 2022-09-27 06:55    [W:0.040 / U:3.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site