Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CE865C433EF for ; Tue, 26 Apr 2022 15:55:08 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id D8BE53CA450 for ; Tue, 26 Apr 2022 17:55:06 +0200 (CEST) Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 1EB963C9C87 for ; Tue, 26 Apr 2022 17:54:56 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 1C80E1A008A1 for ; Tue, 26 Apr 2022 17:54:55 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 42F031F380 for ; Tue, 26 Apr 2022 15:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1650988495; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kSbmtMEx8ZGIaUflq8qGopxYXlf7sorbnkKqVI/vuyQ=; b=WufwHCLCPbrfbOpRGEgvFmMNAzNwaBXJIVScz78/EsGageSPMqEsIJtoJC4dD6dRyxppJU 10rclwMaoUPe/jsx9lMZPj2ACsamCm42JQch6zv564sChPsIYnrUYN8iFr/F4E0Ze66/5E nNw+LcGi5ahBOVqnWLsB9HQCafr4idM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1650988495; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kSbmtMEx8ZGIaUflq8qGopxYXlf7sorbnkKqVI/vuyQ=; b=EOYtpIH1au0uciXpxdeBkVy26kePhITmKVuegWk6gjtbdqKP19p3Qi4sNRbY+CdJgiX0QS tULe2YSfYmt39gAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1785913AD5 for ; Tue, 26 Apr 2022 15:54:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id gRcNBc8VaGL7cgAAMHmgww (envelope-from ) for ; Tue, 26 Apr 2022 15:54:55 +0000 From: Cyril Hrubis To: ltp@lists.linux.it Date: Tue, 26 Apr 2022 17:57:09 +0200 Message-Id: <20220426155709.4821-1-chrubis@suse.cz> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-3.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH] [COMMITTED] userns06_capcheck: Fix build on some distros X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" The build fails on some distros because they compile with -Werror=return-type Fixes: f57e28cfb19 ("Rewrite userns06.c using new LTP API") Signed-off-by: Cyril Hrubis --- testcases/kernel/containers/userns/userns06_capcheck.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testcases/kernel/containers/userns/userns06_capcheck.c b/testcases/kernel/containers/userns/userns06_capcheck.c index bae4e4e33..c048ef63f 100644 --- a/testcases/kernel/containers/userns/userns06_capcheck.c +++ b/testcases/kernel/containers/userns/userns06_capcheck.c @@ -53,6 +53,8 @@ int main(int argc, char *argv[]) tst_res(TFAIL, "unexpected effective/permitted caps at %d", i); else tst_res(TPASS, "expected caps at %d", i); + + return 0; } #else @@ -61,5 +63,7 @@ int main(void) tst_reinit(); tst_brk(TCONF, "System is missing libcap"); + + return 0; } #endif -- 2.35.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp