Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3968863imu; Mon, 14 Jan 2019 12:20:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN73nPJLJBccddZZrNAQutjSjKWVwbqY5OiOIsmi28KTp683kzLBLOZ0dgERQZ7jDNv7+Vih X-Received: by 2002:a63:5b48:: with SMTP id l8mr305529pgm.80.1547497238320; Mon, 14 Jan 2019 12:20:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547497238; cv=none; d=google.com; s=arc-20160816; b=zDZHCAHgxioYnMPlV5yPFEcnJQui2W8etj/S8XSy4g+50rgv3+ETh9oQRxDpTLG32G q+eljKRfRAFYXREaR54KFyYF07UiDsToepPAXnziIafj6GK7ngiDcVwNFo0p3DXBHtDL TGX+KC1eZy6SpA1T2tSEcTYtdJuBcrsAaoKLi5pqf5rw3GRfL3zYmiEEn5T/+n+aFi+r l1Wlm5iu2rg4ryD4zKwlEj0hCHnKs3Ynlyv9mCGLklWxZvNUWkZOf73on5x3e2xEEd2Z NIlrzlXq80he5NwSocyGxYyhLe5yAbRM0ZM6cSLxcV+VLij0I0aWKB2Hyee+oLySeqRE qrow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EnUk7Vfdk/xAtPXiFSxFZAr/2Ww8OZUZk/tQppj/ZsE=; b=b0aaI9+dhQAPyhEzFXv11RUKnlxVPVzwWRnNxfI4L2TdhKkM93CXMEQFKQ5MyO+D5a 3/LMOGeqKx0hlXgE3f/QMmneICZiuFwASK7iyaKJjuW9zFmewHZoSbsAkn/svmqO+tkI Bl/92C25thyOknqEOiQmlU7iUYgqWCQFUg7IIWuRJ50iWcs2ZAg3RLd+6ffSpbeMiC57 ZHQyrnDM2qHpy5B/eaWh+6gk7zX4dmX7fJcjHyptzw4aMiTAj25LlBHnoShWdSF5mOpX yqiwsOOJcN488ld+t9KjhPhRkT5yi10jb/FRr4dmLEinE++7ReR3tFqQVa9eyAJ17y1I Uy5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Tl7N9JoK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g21si1056428plo.435.2019.01.14.12.20.23; Mon, 14 Jan 2019 12:20:38 -0800 (PST) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Tl7N9JoK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726981AbfANUSH (ORCPT + 99 others); Mon, 14 Jan 2019 15:18:07 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43510 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726875AbfANUSH (ORCPT ); Mon, 14 Jan 2019 15:18:07 -0500 Received: by mail-wr1-f68.google.com with SMTP id r10so349416wrs.10; Mon, 14 Jan 2019 12:18:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EnUk7Vfdk/xAtPXiFSxFZAr/2Ww8OZUZk/tQppj/ZsE=; b=Tl7N9JoKz9qxCeOiMJ7uR/aL4XfuGYqrDEc5HxJ79R8D7ufHXmLqoKW/kcwpH9fsS+ 8+btMry+Gg2yPcbzfAX4j+OzToyL+RRgiObEQDgMtZqfrB2Ysbujy1+Ofzkr/Mshvhis hA88n/weKQrRbS1bDlw39JKb9qFhIHKcR6yCaoWfPt61PVQubye2n/ny+HxN6TCbPW9k 3iFPGC3KMN49cmJwkiqGfbiuQwJNa9T7ggCcTmaP9CTDhzWhbc9BATPBzOAxVvWX6ZRb 2hkVya3McFJeZRGweRAP/jWOAyDAp7EEo1QELIq54ox//DKITmllLG+/ui6RC1wpr4NT kXgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=EnUk7Vfdk/xAtPXiFSxFZAr/2Ww8OZUZk/tQppj/ZsE=; b=GbqNjflYs2+0FH/+ajZnie28QnwuexBPtRXZ52Q9SfigA9NlkC3nKgwEzElbhSDLY1 NcS91fYxHHFg9JlgpEpDOr2QSBMhtgry/Q6JWQH8Nge7GVEyC1qGYZQT7G97C0dgNpx2 gbqO8LVrsX6f2AaxnRQ8d2MPu6PIW0+o7xOSZ+e1c6HgiFRWzkknjDDWLsah3dSDYQjy z9wkBVMyZ1/TF4wJoG62Efglcvg87cFOzcqWm3WKNVubYMgCEOpOTi1mHGKAGZVd3nrO DjHLO7afIAnxE2WgJbONVla/dsR2nFlx6QdLA6uExgRA8tmFFajUW4EEKjg7jr6WT4fE +UHQ== X-Gm-Message-State: AJcUukfmvwaKbLR+WfjpoifVw149oPUJwUWLByv74DyECCNqzam/HqzG FnxIJei0fzU8WesSmBWH/yo= X-Received: by 2002:a5d:56d2:: with SMTP id m18mr166855wrw.113.1547497085317; Mon, 14 Jan 2019 12:18:05 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id c12sm70875285wrs.82.2019.01.14.12.18.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:18:04 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 4C11511422AD; Mon, 14 Jan 2019 21:18:03 +0100 (CET) From: Mathieu Malaterre To: David Howells Cc: Mathieu Malaterre , James Morris , "Serge E. Hallyn" , keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] security: keys: annotate implicit fall through Date: Mon, 14 Jan 2019 21:17:23 +0100 Message-Id: <20190114201725.13289-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warning (W=1). This commit remove the following warning: security/keys/keyring.c:248:10: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre --- security/keys/keyring.c | 1 + 1 file changed, 1 insertion(+) diff --git a/security/keys/keyring.c b/security/keys/keyring.c index eadebb92986a..b1ff07d9ce37 100644 --- a/security/keys/keyring.c +++ b/security/keys/keyring.c @@ -246,6 +246,7 @@ static unsigned long keyring_get_key_chunk(const void *data, int level) (ASSOC_ARRAY_KEY_CHUNK_SIZE - 8)); n--; offset = 1; + /* fall through */ default: offset += sizeof(chunk) - 1; offset += (level - 3) * sizeof(chunk); -- 2.19.2