Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4899533imm; Tue, 26 Jun 2018 02:26:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf+SUcy0qZcg5KKlvO1cita+4gfQv8nIAbMRGme/5k6B7jaEJQTvMIKy5opfRDZiOf6lrz1 X-Received: by 2002:a62:e401:: with SMTP id r1-v6mr766113pfh.172.1530005209016; Tue, 26 Jun 2018 02:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530005208; cv=none; d=google.com; s=arc-20160816; b=nJckRe43aYIxK6cQHc0rTPhLR/86lPczTZfsUvQwz/H60sOrzHRJJ8F0i6+HpPv1Rk RJtw6YtK1kTvB3EHhAKmtcCsRG32hiRrlmBUrdWsuPLltmEBKx4PAPVHT3sveus/wNbn Tpp4dG0jWcvGrsfvxdmJHe0skMMx9UKup1wY7IzygD1FawiZBGuLlYJ/ZETbO5vHeJHi e/94ltVXzPG7hdq+8V519+zvov3zjRpq2r0437ophGJ3bd8C3CYJSh4n8+8mobCZA1k9 wNMqTsIvzZ+DuDyDk0P4inLNhhET+IHHQzRfsirQ27MaRrnhh79owwXrVA9SeC7Jq+Vd lJpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BWZFKyr0QuQ/3/wIumZYa8zfJQ8uGNfifHMSxmZruhw=; b=UFjqzZFdm79Srs2gb+Nefr1fmPfOzNFcDESWWzbzrwbGzCV51505MHehjdX8OFRdGo BiEXsZyfEQrooABUHGz55cXjerw7dwXgsmS4beoU1dS88yqIX5QSWA/IookfIgCKnX/r axAKoVUs59mvnAbFklN7bhXa7F9IdPtQN4DFj3XunUUXBxfRrUxArlO/jk68QmmvFtFg GRzWdxmhHGTh2nvmJn7unYMFDy6MAlXCY5r8CeHH5mstPfJCAHdGtbJ8W9RbHYwzGa+D BsMGhdv6ihchWrZ9xh7VfmjYArUzi1EZpg+2+H57lM4hRyFjjmaA2Vz8ZRbLHX5WKzGS Eo4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y123-v6si785660pfc.302.2018.06.26.02.26.34; Tue, 26 Jun 2018 02:26:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934291AbeFZJYy (ORCPT + 99 others); Tue, 26 Jun 2018 05:24:54 -0400 Received: from osg.samsung.com ([64.30.133.232]:43310 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933868AbeFZJYr (ORCPT ); Tue, 26 Jun 2018 05:24:47 -0400 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id 37AB030B40; Tue, 26 Jun 2018 02:24:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C-32Gz-CQSbt; Tue, 26 Jun 2018 02:24:46 -0700 (PDT) Received: from smtp.s-opensource.com (177.41.130.70.dynamic.adsl.gvt.net.br [177.41.130.70]) by osg.samsung.com (Postfix) with ESMTPSA id CA1C330B28; Tue, 26 Jun 2018 02:24:44 -0700 (PDT) Received: from mchehab by smtp.s-opensource.com with local (Exim 4.91) (envelope-from ) id 1fXkDK-0000Xc-1B; Tue, 26 Jun 2018 06:24:42 -0300 From: Mauro Carvalho Chehab To: Takashi Iwai Cc: Mauro Carvalho Chehab , Linux Doc Mailing List , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , Jaroslav Kysela , alsa-devel@alsa-project.org Subject: [PATCH 2/4] alsa: multisound.sh: fix script to make it build with modern tools Date: Tue, 26 Jun 2018 06:24:38 -0300 Message-Id: <23ff79af9b3a8bf1f1a5a19508b735fc620c0a13.1530004939.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The script is old and produce some warnings and errors, because it lacks including stdlib.h and io.h is at sys/io.h. Fix it to run with the tools found on modern Linux distros. Tested building it on Fedora 28. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sound/cards/multisound.sh | 30 +++++++++++++------------ 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/Documentation/sound/cards/multisound.sh b/Documentation/sound/cards/multisound.sh index 7a7a88256dfd..0e0cb029421b 100755 --- a/Documentation/sound/cards/multisound.sh +++ b/Documentation/sound/cards/multisound.sh @@ -381,11 +381,11 @@ # This shar contains: # length mode name # ------ ---------- ------------------------------------------ -# 2046 -rw-rw-r-- MultiSound.d/setdigital.c -# 10235 -rw-rw-r-- MultiSound.d/pinnaclecfg.c +# 2064 -rw-rw-r-- MultiSound.d/setdigital.c +# 10224 -rw-rw-r-- MultiSound.d/pinnaclecfg.c # 106 -rw-rw-r-- MultiSound.d/Makefile -# 141 -rw-rw-r-- MultiSound.d/conv.l -# 1472 -rw-rw-r-- MultiSound.d/msndreset.c +# 146 -rw-rw-r-- MultiSound.d/conv.l +# 1491 -rw-rw-r-- MultiSound.d/msndreset.c # save_IFS="${IFS}" IFS="${IFS}:" @@ -471,6 +471,7 @@ X * X ********************************************************************/ X #include +#include #include #include #include @@ -538,8 +539,8 @@ e87217fc3e71288102ba41fd81f71ec4 MultiSound.d/setdigital.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'MultiSound.d/setdigital.c'`" - test 2046 -eq "$shar_count" || - $echo 'MultiSound.d/setdigital.c:' 'original size' '2046,' 'current size' "$shar_count!" + test 2064 -eq "$shar_count" || + $echo 'MultiSound.d/setdigital.c:' 'original size' '2064,' 'current size' "$shar_count!" fi fi # ============= MultiSound.d/pinnaclecfg.c ============== @@ -581,8 +582,8 @@ X #include #include #include -#include #include +#include X #define IREG_LOGDEVICE 0x07 #define IREG_ACTIVATE 0x30 @@ -992,8 +993,8 @@ SHAR_EOF SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'MultiSound.d/pinnaclecfg.c'`" - test 10235 -eq "$shar_count" || - $echo 'MultiSound.d/pinnaclecfg.c:' 'original size' '10235,' 'current size' "$shar_count!" + test 10224 -eq "$shar_count" || + $echo 'MultiSound.d/pinnaclecfg.c:' 'original size' '10224,' 'current size' "$shar_count!" fi fi # ============= MultiSound.d/Makefile ============== @@ -1039,7 +1040,7 @@ DB [0-9A-Fa-f]+H { int n; sscanf(yytext, "%xH", &n); printf("%c", n); } %% int yywrap() { return 1; } -main() { yylex(); } +void main() { yylex(); } SHAR_EOF $shar_touch -am 0828231798 'MultiSound.d/conv.l' && chmod 0664 'MultiSound.d/conv.l' || @@ -1052,8 +1053,8 @@ d2411fc32cd71a00dcdc1f009e858dd2 MultiSound.d/conv.l SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'MultiSound.d/conv.l'`" - test 141 -eq "$shar_count" || - $echo 'MultiSound.d/conv.l:' 'original size' '141,' 'current size' "$shar_count!" + test 146 -eq "$shar_count" || + $echo 'MultiSound.d/conv.l:' 'original size' '146,' 'current size' "$shar_count!" fi fi # ============= MultiSound.d/msndreset.c ============== @@ -1085,6 +1086,7 @@ X * X ********************************************************************/ X #include +#include #include #include #include @@ -1129,8 +1131,8 @@ c52f876521084e8eb25e12e01dcccb8a MultiSound.d/msndreset.c SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'MultiSound.d/msndreset.c'`" - test 1472 -eq "$shar_count" || - $echo 'MultiSound.d/msndreset.c:' 'original size' '1472,' 'current size' "$shar_count!" + test 1491 -eq "$shar_count" || + $echo 'MultiSound.d/msndreset.c:' 'original size' '1491,' 'current size' "$shar_count!" fi fi rm -fr _sh01426 -- 2.17.1