Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5086317imu; Sun, 25 Nov 2018 16:32:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/WtPmvW1uVjWN81DQGrmez0ahuziayqfk9dJhziy5ruhcfeMZSrmBSC9UmJ455pJrUILdn1 X-Received: by 2002:a17:902:3225:: with SMTP id y34-v6mr24649898plb.227.1543192362723; Sun, 25 Nov 2018 16:32:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543192362; cv=none; d=google.com; s=arc-20160816; b=tvbdTElQz2ZH9+E9y1+e5Cn2GiztUTH72K4hKdeEy895jyv2MMEh8IZMD9yEsoLP7A ZQk5XZJ4aw2/4+89mi88i5cv9iLDNOsz9jLL0j5llXztqAwRauABFuChII0fbR0dSvcI nIc+HkSqvJYm1HTnMp7qIIO0L/ZW6sBHpG75zoa9AJGBeftGgfGhlXzsCXEhiaaG9QKL muQls+j004FfzwlTMJAqWECh16rdo09I/w/q85bgmI/AEJKG+Tnd1rU7kwnzdi0ECuVe bdTgmH2r394YhaEJHpVTaiUdywS86m9kXoh8pgWHKdwPSfYNVsmM5a4NfFIuTfdIxzQo kbZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=qLNxunBKeS7L/2I77pyJftMmlYM6z67XMFy8+TssWFA=; b=0lP5ehRE5x6RiRPQZE2eFWsUbWOj6W8yO7WKwwI/83Kt1wGhFcmdh4OTmUR0zqrd8F UjnvwLdT8dbMPpvoyeU0S63l68K6GylKKC75tJkyWhv54c1HNdY+qXQli99+4xy/cpga /OXpmCDPERPOdoJBtPIxAnXKo37bqaKXkFISbhZRwjt5BGXd8UcFdcy+xSQImN7iABnG NO4L/S3NpTI21JneloHywFE7dpA5PYvQpliiAid3hI39c3B8BY/QXYZvnVxBZT1yovJn MEzlVs2YKCdMpeyWGL/6zzSMLksmaEhqTfKvIypmtw9qAGsiSSc/nLhCIJke85aGOSn+ +C5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QWUXBf1i; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x191si17442310pfd.220.2018.11.25.16.32.27; Sun, 25 Nov 2018 16:32:42 -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=pass header.i=@gmail.com header.s=20161025 header.b=QWUXBf1i; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726146AbeKZLYQ (ORCPT + 99 others); Mon, 26 Nov 2018 06:24:16 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34409 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbeKZLYQ (ORCPT ); Mon, 26 Nov 2018 06:24:16 -0500 Received: by mail-pl1-f195.google.com with SMTP id f12-v6so13002123plo.1; Sun, 25 Nov 2018 16:31:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qLNxunBKeS7L/2I77pyJftMmlYM6z67XMFy8+TssWFA=; b=QWUXBf1igmwgFWdGsPQvWlVBp4QnL1ARION/vG6rpFESa1E0M8LzX5e1/rynTc1POQ byQjj+9DUnJ/xbBFTbWe27ZGcKjfzxKhdVOef9OwDBnFDN+txLChLthuhirUBpA1OCvB HEKwQQwzsau21NeZwf+saoqQ08sOjAeh3kDGoeHloyT46o+FEMAmNc2dxB75MnrWiUDc 80PwxyDb/aGMpDwIjvW3vWyM0FwDC5/mD6kz6ijIRmIt70/TI7CRfXnK+6WwPxdvFfLz bE8ZGKSQfMhxXquARbKL/vjLSDArZD34RDo6er5fzcMf9LafVNDRsqo9TVDnKgYnxp9U m/PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qLNxunBKeS7L/2I77pyJftMmlYM6z67XMFy8+TssWFA=; b=EBmPCjJnwXZfcgotXqfyH0D7mTHz5yoDuW/rfdknORbu+ssr5Emf4uN3EBgdAZ/yOd 0zQZglQ9hFpu4QOOua+86qACeJGQanb3rxtj1L1OENKajRCsRnEST4p0S6AAsNwzSqiz pefzgG4ZDa/9NY45+TxMQHsFR75HcCytqQNqIFtUMyA+1d9n+JbfH6xrWCD5d1kyOfsK jxOc4HssNglIYtR3YwXlr+sa+///gEJ5ZKruut8kdAOZcW4GiPRS9i2g6a53oHMIeuXL 8fVWYeo/v7LOSduek3GvAL3OUOJSMoTQE5Kr2/d0HdFw63nvg5WVmos6FWaeKbcAWpm0 3Y/Q== X-Gm-Message-State: AA+aEWZySAT2EAQ6jsS0lNOYiNvzeuZHBQSuaSR2xzAunBzid1Gfbi/s P0TX5W1hrxNGE70Eh3lnvYnG2WqOFbZlO1SM9jo= X-Received: by 2002:a17:902:7107:: with SMTP id a7mr25089919pll.290.1543192311905; Sun, 25 Nov 2018 16:31:51 -0800 (PST) MIME-Version: 1.0 References: <20181126111415.5cf17f39@canb.auug.org.au> In-Reply-To: <20181126111415.5cf17f39@canb.auug.org.au> From: Steve French Date: Sun, 25 Nov 2018 18:31:40 -0600 Message-ID: Subject: Re: linux-next: build warnings after merge of the cifs tree To: Stephen Rothwell , Sachin Prabhu Cc: CIFS , keescook@google.com, Linux-Next Mailing List , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both of those cases are intentional fallthroughs and there are existing comments in the code noting the reasons for them to fallthrough (also can see the reasoning for these in the commits which introduced them from Sachin c369c9a4a7c82) and dde2356c84662) On Sun, Nov 25, 2018 at 6:14 PM Stephen Rothwell wrote: > > Hi all, > > After merging the cifs tree, today's linux-next build (powerpc > ppc64_defconfig) produced these warnings: > > fs/cifs/sess.c: In function 'cifs_select_sectype': > fs/cifs/sess.c:527:3: warning: this statement may fall through [-Wimplicit-fallthrough=] > switch (requested) { > ^~~~~~ > fs/cifs/sess.c:540:2: note: here > case CIFS_NEGFLAVOR_LANMAN: > ^~~~ > fs/cifs/connect.c: In function 'cifs_parse_mount_options': > fs/cifs/connect.c:1825:8: warning: this statement may fall through [-Wimplicit-fallthrough=] > if (!(tmp_end < end && tmp_end[1] == delim)) { > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > fs/cifs/connect.c:1832:3: note: here > case Opt_pass: > ^~~~ > > Exposed by my use of -Wimplicit-fallthrough > > I am not sure why these only turned up now (as opposed to earlier today). > > -- > Cheers, > Stephen Rothwell -- Thanks, Steve