From: Georgy Yakovlev Date: Wed, 2 Jun 2021 20:59:26 +0000 (-0700) Subject: lscpu: fix build on powerpc X-Git-Tag: v2.37.1~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb87dcc80e12ee8fd418681af1632e456ae3c15a;p=thirdparty%2Futil-linux.git lscpu: fix build on powerpc fails with error: label at end of compound statement and fix typo as bonus. Signed-off-by: Georgy Yakovlev --- diff --git a/sys-utils/lscpu-cputype.c b/sys-utils/lscpu-cputype.c index 898775822e..2cc0ca9298 100644 --- a/sys-utils/lscpu-cputype.c +++ b/sys-utils/lscpu-cputype.c @@ -717,7 +717,7 @@ int lscpu_read_archext(struct lscpu_cxt *cxt) } #if defined(HAVE_LIBRTAS) - /* Get PowerPC speficic info */ + /* Get PowerPC specific info */ if (!cxt->noalive) { int rc, len, ntypes; @@ -738,8 +738,8 @@ int lscpu_read_archext(struct lscpu_cxt *cxt) ct->physsockets = strbe16toh(buf, 4); ct->physchips = strbe16toh(buf, 6); ct->physcoresperchip = strbe16toh(buf, 8); -nortas: } +nortas: #endif return 0; }