Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3654353pxb; Mon, 24 Jan 2022 14:32:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfAb08Xeruwa6H5EA0cE/ph06X5p5v6NSQmXZ80c7yfrYFnFB7cGz17tsb1KFNvmNBPvly X-Received: by 2002:a17:90b:4c43:: with SMTP id np3mr450265pjb.88.1643063547367; Mon, 24 Jan 2022 14:32:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643063547; cv=none; d=google.com; s=arc-20160816; b=E2fqTf/cDDmzxeDCXebUwkVK0VTu90Rzdo62GBagvG2q7gtTLL9m9Zgcr3WabVdK9D u6AFZc7RA66VvGGLUtg8CQH/57gNzJ9rspp0t0+B+gCGvu7tf0S+2YRuPZs7sELI9VCH tLdOqPVwANX7l8DoS6+iTy2GQHljU+d0yNlUH4huc5a6Kxpe/EiMk/6MjlvwzgmDdfpF ZyJiNFkBTy4eXqmBdnbM6C5w7hG8bF4ruwRYod8kfA3PxybehwhQt2/Ky1+215gajFXD P15HbQY5wdVKdzL7VXn1L83FHaHAJ3Rr1hrv185NmF7Pj+VE+bL069XmeFsWhgFuQb+G bVgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=A2tlEP7IscG5J9Ft6/R/TwiXdysX/BDrrBurvnpw4nM=; b=ayAkyXp2zzwbeu1WZ5FlewfeIP68RL5PDkrNgStPjgxvdl5DDkBRdJTJACS8jkDhK+ EK3GU5HZjPmXGkF6fn93KLKJBLhECLIN6mS5EA9KH0icTs8i1jM5u4OlcnTVJP049IQG OQEA4uLFxdzEkmAh4yyUfFABXufx4mSDn1RYUN1Pe2mndibNSafuRYuzYr9egT5Jap3/ aBNjTUH6JPbeIAHrsaX1ebEnae7zKRoSpfzM+ZFgU8GgrKgKhdhhuZisR8bIntoUjHzN WQSqqzRW4ibo1ocXOsBaLDAk5HTt79TCZOeCsMm6WpgmDozmP8N8SdEyknquE9p8fE+G TJhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Vi1Phsms; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m16si14385906pfc.211.2022.01.24.14.32.15; Mon, 24 Jan 2022 14:32:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Vi1Phsms; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1587099AbiAXW1p (ORCPT + 99 others); Mon, 24 Jan 2022 17:27:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1454565AbiAXVdI (ORCPT ); Mon, 24 Jan 2022 16:33:08 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4818EC075D06; Mon, 24 Jan 2022 12:21:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 03408B810BD; Mon, 24 Jan 2022 20:21:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EFF9C340E8; Mon, 24 Jan 2022 20:21:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055673; bh=485Pel/umrmGTI7pbf0TizhUtAcoT/WJdPbsQcA5Gb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vi1PhsmsfhP4cyFTKGRgKOYU6Gmp3migt0Re946tPbFWyMUe7RILFVt3hsakJpDnt 1ZoJoNqjVZ8eDjIIHqMLVToVG60cHfojV8Gf6DUUEmfZWzQ2yE8fWr4CSCR6UmMYnG XgIEPThRwRwUzj8RM8wFppaikjTm54DV/G0et0Pc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anders Roxell , Christian Brauner , Shuah Khan , Sasha Levin Subject: [PATCH 5.15 229/846] selftests: clone3: clone3: add case CLONE3_ARGS_NO_TEST Date: Mon, 24 Jan 2022 19:35:46 +0100 Message-Id: <20220124184108.822268012@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anders Roxell [ Upstream commit a531b0c23c0fc68ad758cc31a74cf612a4dafeb0 ] Building selftests/clone3 with clang warns about enumeration not handled in switch case: clone3.c:54:10: warning: enumeration value 'CLONE3_ARGS_NO_TEST' not handled in switch [-Wswitch] switch (test_mode) { ^ Add the missing switch case with a comment. Fixes: 17a810699c18 ("selftests: add tests for clone3()") Signed-off-by: Anders Roxell Acked-by: Christian Brauner Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/clone3/clone3.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/clone3/clone3.c b/tools/testing/selftests/clone3/clone3.c index 42be3b9258301..076cf4325f783 100644 --- a/tools/testing/selftests/clone3/clone3.c +++ b/tools/testing/selftests/clone3/clone3.c @@ -52,6 +52,12 @@ static int call_clone3(uint64_t flags, size_t size, enum test_mode test_mode) size = sizeof(struct __clone_args); switch (test_mode) { + case CLONE3_ARGS_NO_TEST: + /* + * Uses default 'flags' and 'SIGCHLD' + * assignment. + */ + break; case CLONE3_ARGS_ALL_0: args.flags = 0; args.exit_signal = 0; -- 2.34.1