On Fri, Jun 12, 2026 at 03:09:32AM +0000, Pasha Tatashin wrote:
> On Wed, 10 Jun 2026 16:09:07 -0700, Vipin Sharma <[email protected]> wrote:
> > diff --git a/tools/testing/selftests/liveupdate/lib/libliveupdate.mk 
> > b/tools/testing/selftests/liveupdate/lib/libliveupdate.mk
> > new file mode 100644
> > index 000000000000..0fb738c02330
> > --- /dev/null
> > +++ b/tools/testing/selftests/liveupdate/lib/libliveupdate.mk
> > @@ -0,0 +1,20 @@
> > [ ... skip 14 lines ... ]
> > +   $(Q)mkdir -p $@
> > +
> > +$(LIBLIVEUPDATE_O): $(LIBLIVEUPDATE_OUTPUT)/%.o : 
> > $(LIBLIVEUPDATE_SRCDIR)/%.c | $(LIBLIVEUPDATE_OUTPUT)
> > +   $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
> > +
> > +EXTRA_CLEAN += $(LIBLIVEUPDATE_OUTPUT)
> 
> since this file contains utility functions (luo_open_device, luo_test, 
> etc.), naming it liveupdate.c makes it sound like the main 
> implementation rather than a test helper library. Using something 
> distinct like lu_utils.c would make more sense.

Okay, I will rename the new file to lu_utils.[ch]

> 
> >
> > diff --git a/tools/testing/selftests/liveupdate/luo_test_utils.c 
> > b/tools/testing/selftests/liveupdate/lib/liveupdate.c
> > similarity index 99%
> > rename from tools/testing/selftests/liveupdate/luo_test_utils.c
> > rename to tools/testing/selftests/liveupdate/lib/liveupdate.c
> > index 333a3530051b..897c200f3845 100644
> > --- a/tools/testing/selftests/liveupdate/luo_test_utils.c
> > +++ b/tools/testing/selftests/liveupdate/lib/liveupdate.c
> > @@ -22,7 +22,7 @@
> >  #include <errno.h>
> >  #include <stdarg.h>
> >  
> > -#include "luo_test_utils.h"
> > +#include <libliveupdate.h>
> 
> Linux kernel coding style generally prefers block headers to be sorted 
> alphabetically.
> 

Okay, I will reoder them here and in the other files.

Thanks!


Reply via email to