On Wed, Oct 05, 2022 at 01:40:28PM -0700, Florian Fainelli wrote: > From: Alexey Dobriyan <adobriyan@xxxxxxxxx> > > commit 128dbd78bd673f9edbc4413072b23efb6657feb0 upstream > > strdup() prototype doesn't live in stdlib.h . > > Add limits.h for PATH_MAX definition as well. > > This fixes the build on Android. > > Signed-off-by: Alexey Dobriyan (SK hynix) <adobriyan@xxxxxxxxx> > Acked-by: Namhyung Kim <namhyung@xxxxxxxxxx> > Link: http://lore.kernel.org/lkml/YRukaQbrgDWhiwGr@localhost.localdomain > Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> > Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx> > --- > > This patch is necessary to build perf with a musl-libc toolchain, not > just Android's bionic. > > Resending because missed stable the first time Both backports now queued up, thanks. greg k-h