Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp837774pxb; Wed, 3 Nov 2021 13:16:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw49reHU5khrWxnvegY+1aX6yvbOUbm2DNlJGJS4Aw1DpUqDs1epyK7nKY098pROgNSP7Kc X-Received: by 2002:a17:907:d1f:: with SMTP id gn31mr18546667ejc.468.1635970580459; Wed, 03 Nov 2021 13:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635970580; cv=none; d=google.com; s=arc-20160816; b=PVyLnbUdykfBjmsKfu6/RWVSo1k+gj1xYJdxePyMC8mF5x9A/QF4htUHRSZ21td5RJ gkL0UUgA0Loc6h6qmcFRLJDGFiCvacjMsy5w7wlvo2YLagrZRNYSge0JwXIvQYR+gUpD ajt+Pc1ohp/qnpFicsroAbbw8xdsIQ0oig0Gdb3Y03P6kgn5CPxcS4EtwYlPuE0rwiuh F96BCziNkYCY83ugZQX8kLiG9r5BPa5Px2qqZwT6YNoVsCCcojbkvBr+t7HwDV7wpp9n 1KbXUY5UbJWF5JghmRv8AE0aT7JMkI8gYFaXteLjJA1rftng+ZHCGHZtgsn3OzwuzYJ+ D22Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=jz1HALHw2e3PHU1qjzoKG4w3uBh5BQe+CnU54irwwuk=; b=RLG1wo7I1zCw0dobjxE/EqextMww38qBSKwCrSCkYpoCv5Ipf9A7yrNlAPzQlvaPap SifxqtmV0FeLgaEeiBX/v5lt/ObwyIUWKiN6bbME8+DPMobQerbfkS9xHPnpsEWMrf6e lS+OALQ/+6PUHTwl82iLnYny3AjLqnDaXBu4r3vnEFey2EbW63RcqQJdZCQ+kBXafPHv Yp1JZ2e49puBJOD9wsTZyP06C54QSbD81Bfptskgz5ejgxL1IuUamuabL2KbY8emZiRl nEUpWDNCfVSGT/b77n8LM32sTuKK+qR5Dv88TceqkGB6X6F9PiOl7u6xyw8LcvXc8Cu/ Ag4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rSD2qAcx; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si4471825eda.253.2021.11.03.13.15.54; Wed, 03 Nov 2021 13:16:20 -0700 (PDT) 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=@linaro.org header.s=google header.b=rSD2qAcx; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229697AbhKCUQg (ORCPT + 99 others); Wed, 3 Nov 2021 16:16:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230172AbhKCUQf (ORCPT ); Wed, 3 Nov 2021 16:16:35 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6958EC061203 for ; Wed, 3 Nov 2021 13:13:58 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id d12so3967792lfv.6 for ; Wed, 03 Nov 2021 13:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jz1HALHw2e3PHU1qjzoKG4w3uBh5BQe+CnU54irwwuk=; b=rSD2qAcx1HPdKBiGQNjLLwt1XctRU7KMzYWxU3AQ6/xeKhOlQRc9lA2u5Z2vRRvH4N iWm8UlOpvSfiY7odM6v6Oq22pQbBLWHc4ZvHZxLgMfWlaqnZ4X//4/FhlDAQRjhls7oC GnZgDsGQc7KCSJjLLYZGYorccK00ymvHUwt6r0ePjV7GaBXsPpSI1X6nFDUlM0ytyW1p wV7yJc+rc2bSjr1WzeN16OIGB97EphF9it7ptQZumLMX+YBl/7qmPT7JnDBh4P6WBymj E0EZ3qSeh86bmB3PqCD0EvXY5/BmkZO9sg28t6ZlUW9IyZIFDmsVMTj7k9qXZsmo+y5x 2j+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jz1HALHw2e3PHU1qjzoKG4w3uBh5BQe+CnU54irwwuk=; b=pEqJ1QWRNPqUBH7cwI20VqNEf2/rZOrX7VOF6GGLd0z6QKzyQqma3q1w0jzcdE+Fvo y8Sc66NZq0+A1EAtlzAE4a490hsuIEhIwYfoNjSOm18gVT4OJNitOFF1pGM8MzviVWmF u2BSiEFomKISEXD99NbURKG7p1b6un42ufxWI132AxSBmrfd972Muk7eSSRu8wZ+vPfb Yhf3DKW/Z5DgR81xI6VPGwhWZbQMIO3CZ0Rb+yBGQY2zrqao2wCw+vV8f0QZ36RT+ASb N6FisU8oJO8EEhvw/eoNkHBo7P8AZOzfYSS42I/Q/zFqz9JszaXvI9KV+hRWdsSeIX82 dx9Q== X-Gm-Message-State: AOAM5339QeUeHfK+50xQok0zXcE/mxyWMdicNq5LcBli57q20szTN0Q9 hTEFiFOdgWCIFPgnHeGv1IalXA== X-Received: by 2002:a05:6512:33d0:: with SMTP id d16mr15409549lfg.485.1635970436666; Wed, 03 Nov 2021 13:13:56 -0700 (PDT) Received: from localhost (c-9b28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.155]) by smtp.gmail.com with ESMTPSA id u5sm290415lfo.280.2021.11.03.13.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 13:13:56 -0700 (PDT) From: Anders Roxell To: christian@brauner.io, shuah@kernel.org Cc: nathan@kernel.org, ndesaulniers@google.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, llvm@lists.linux.dev, Anders Roxell Subject: [PATCH] selftests: clone3: clone3: add case CLONE3_ARGS_NO_TEST Date: Wed, 3 Nov 2021 21:13:50 +0100 Message-Id: <20211103201350.3866089-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 ede5da0c67b4..3fd49f419466 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.33.0