From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABFC6C43461 for ; Tue, 8 Sep 2020 23:22:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 745872087C for ; Tue, 8 Sep 2020 23:22:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="dhgVv6yt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728954AbgIHXW5 (ORCPT ); Tue, 8 Sep 2020 19:22:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728442AbgIHXWz (ORCPT ); Tue, 8 Sep 2020 19:22:55 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7249FC061757 for ; Tue, 8 Sep 2020 16:22:55 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id b124so441963pfg.13 for ; Tue, 08 Sep 2020 16:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8vw8y/keL8WobWtmOV5HZRJN8/Uakg/hovhFlM5RtH0=; b=dhgVv6ytoDhKtI7epFtTsWzhO99dRLXs9qP6tHOGr0W9iPEBMxhPEYFzCPy4e45x1p iv7oDHrhvzoFHFQbgnieeDK9qlcnx9jCxpTM73Wv9OxRI1dQYBAzJ5GwMJlhCteDErSG EnPe8FFbiKqJ1TpYawiqNukVf+bzmUYQIoggE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8vw8y/keL8WobWtmOV5HZRJN8/Uakg/hovhFlM5RtH0=; b=q161ez9tPgICpliEH/5l2EGM2EiLBOUzpn3oQmlCdH9kZ3iRbw/Z9LuEaxl6Sr8IJg HRnladH1UPa5vakQTcxO0nwAHG0RiJE8OAH8elYGDfSuyCkaoEHmf5l8WsYr1ixbT6wP WJJiwJ+JW0s9LfywKV/d+Od6LJ9wPpphTIUUr10lSdArIR9vVvgYSEftEey3okTLSDPp vGLMpUn9fvjCdpILeCp+SOZEI6pesbcAKuP1ZBiqBxbzsiDe9ufelV04Zq2UCluE/GHq UMcxNw7p6Xh3KnnSq2LW5ZaA9EdqG/12UbGAFsTzevUB7+XB249fkzASnU6sdmHVK2j1 UhHw== X-Gm-Message-State: AOAM533JfBfLPrZ73jMBGDSX7JsKNUHvXrfHYA/iAfHI4Oyx8V39Gq4T IWmBJloFx8HgIV2bEALBa1/gjw== X-Google-Smtp-Source: ABdhPJyWsjXkHCgvBe7fbOxyDUTgQ0nowPHAXIjoEPMa62KZxAej8RSYGYurVX5t0SOTnFuQ0UNLDw== X-Received: by 2002:aa7:942a:: with SMTP id y10mr1046719pfo.68.1599607374934; Tue, 08 Sep 2020 16:22:54 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 194sm474000pfy.44.2020.09.08.16.22.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 16:22:54 -0700 (PDT) From: Kees Cook To: kafai@fb.com, songliubraving@fb.com, linux-kselftest@vger.kernel.org, luto@amacapital.net, wad@chromium.org, daniel@iogearbox.net, john.fastabend@gmail.com, kpsingh@chromium.org, shuah@kernel.org, netdev@vger.kernel.org, Zou Wei , yhs@fb.com, andriin@fb.com, bpf@vger.kernel.org, ast@kernel.org, linux-kernel@vger.kernel.org Cc: Kees Cook Subject: Re: [PATCH -next] selftests/seccomp: Use bitwise instead of arithmetic operator for flags Date: Tue, 8 Sep 2020 16:22:12 -0700 Message-Id: <159960731879.1678444.6814133998182138035.b4-ty@chromium.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <1586924101-65940-1-git-send-email-zou_wei@huawei.com> References: <1586924101-65940-1-git-send-email-zou_wei@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Wed, 15 Apr 2020 12:15:01 +0800, Zou Wei wrote: > This silences the following coccinelle warning: > > "WARNING: sum of probable bitmasks, consider |" > > tools/testing/selftests/seccomp/seccomp_bpf.c:3131:17-18: WARNING: sum of probable bitmasks, consider | > tools/testing/selftests/seccomp/seccomp_bpf.c:3133:18-19: WARNING: sum of probable bitmasks, consider | > tools/testing/selftests/seccomp/seccomp_bpf.c:3134:18-19: WARNING: sum of probable bitmasks, consider | > tools/testing/selftests/seccomp/seccomp_bpf.c:3135:18-19: WARNING: sum of probable bitmasks, consider | Applied, thanks! [1/1] selftests/seccomp: Use bitwise instead of arithmetic operator for flags https://git.kernel.org/kees/c/76993fe3c1e4 Sorry for the massive delay on this one! I lost this email in my inbox. :) -- Kees Cook