Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2841076pxb; Sun, 15 Nov 2020 20:40:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcybLgVR03YB6oW2C5pAwIN9w5Fclq16t+Uloir3EVQuns/9iQzp3dZlP5mGPvBY4/uj6x X-Received: by 2002:a17:906:6d4:: with SMTP id v20mr14128682ejb.500.1605501628868; Sun, 15 Nov 2020 20:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605501628; cv=none; d=google.com; s=arc-20160816; b=L/d4VbUGaOzcDhOdBn591ID0N5A1mYzwkysO6P7Q3eXOX1Ql2SvK+8n37lo6vBTSos w7Z3byYqGPiVM+ac5FByNNL5bkjqlHZwLXy1IWNRN26QlTGTjFCTDo52iJ2Nwnc1c90h dR/VGJgrlRXkp1WJFryISCnlqmD2zi8dbpTa6DJX/64ysUTrY90cTxdvspePfFOJtuuC tyqPxx8YbSwt5VeomcoBmCQzoyj7ZwqqwD/dkgy1/wngvwWMeIqbi292nAQOD5K1DAPR DPirseGzacxG9tGMM6ttBjal8+AKfoYgvJp5LJC6EJmE1ILCfKfeGa14qTQ+2FbBVQ1J fR+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :sender:dkim-signature; bh=dwGE+EuvUvxVOeNwuorSmE5DCZ0byzW0xaKhrjXEexc=; b=JDJFsYKcsP4qu6BIAluFX6D+nk8NSsdeWo+yuLZ4a8EIJd/G4fjFn+Eg0yZoT3d64p rd6xMd7T6/EVWkvthkyHg+Ismw7de/aBk9zK0cLK1tLac7rpEtJjaAYNnuuMbG8692XE jn3QOqNY08PO6X+ectDRAxaKewCDNK9xRN/DMyPr81fzrGuosDamRC0rvytGxlhZNhY/ wplTfTZIHGBzaAjD2nk4kcvjkWcyePe5YpOnRkrRjQS2zvfyuPMHSIEKWFSB6+8cugWK MLsKZg9FfzehHiiMwubmNkv7oePJrIJ5VqbYrHC6MCtftgxByQO1z25JWV+QLUauukzz 5OXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=H99SKUXX; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec23si5663409ejb.573.2020.11.15.20.40.06; Sun, 15 Nov 2020 20:40:28 -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=@google.com header.s=20161025 header.b=H99SKUXX; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727042AbgKPEfj (ORCPT + 99 others); Sun, 15 Nov 2020 23:35:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726391AbgKPEfi (ORCPT ); Sun, 15 Nov 2020 23:35:38 -0500 Received: from mail-qk1-x74a.google.com (mail-qk1-x74a.google.com [IPv6:2607:f8b0:4864:20::74a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9698CC0613CF for ; Sun, 15 Nov 2020 20:35:38 -0800 (PST) Received: by mail-qk1-x74a.google.com with SMTP id h23so10776914qka.8 for ; Sun, 15 Nov 2020 20:35:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=dwGE+EuvUvxVOeNwuorSmE5DCZ0byzW0xaKhrjXEexc=; b=H99SKUXX64FEZ0L0DZDFL7PBMvbh0WtZXXCKrj79Di6uyCKBepzBw4cdVVGPbeFABe 4NMxaq1WCaXHqdcuR7FkisoHaP648WInpsTp+jfiBpGUy6CKo+sth6PwbM4Uh/jMJCgK j0o25q0zwXoGRLY98HcnMrcH/gAM7CKiQC4O5WXWIDI1g/msKvAR0TaLpCyuCtj//La4 O0o5pp56+xVZofvyHaAor/ZdEWYRuZo2lGy3QqHzBoou4wgyUfxxwjw6KhmofddsIetz H1I2RaWoY20rLy3UwqVs4aQ66wV1SBbRIC8N6VaLBI4ySkaaXLHiLdUEFkSyMsroVe/T 98SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=dwGE+EuvUvxVOeNwuorSmE5DCZ0byzW0xaKhrjXEexc=; b=QCD6bXM9IJlRfPlfat+BCGQiH2PFrDfricLJelDQuJXMtB2fTEw9J92FFTV33Ma7i0 deHwTl1ybLUhELX7HMcK8sBwK+Ptm5kWYThRkZF3tnMVdmICnXyk0jufsp6V7z8m+8T8 HlmA5SC3yz3MC8QslzJLU0nH8nv9SuqETmTOAan1H63ZH4zIR8x6r0ONGNLnNPuWIgSt YD7df2IcG4r/CkCpyMJJurqQB/ECI6nDnJXr4CWy6pcALiOkdffcNNp4yd8IjDiDPe5R qes9cDXkSpKvwjTMeCwbm15bM66ohubJENMckV8JHLn8F7kMQE6VJzc4FozFEGrHV0Mz 8Z0A== X-Gm-Message-State: AOAM530NpU7GZm153CRNhx+PngJIOU3zrS9e2AzhBdl74Iy8mPa+4XsV H/UOjG/q9Loe19clEODbfL/JAuk3+g+L2epGXss= Sender: "ndesaulniers via sendgmr" X-Received: from ndesaulniers1.mtv.corp.google.com ([2620:15c:211:202:f693:9fff:fef4:4d25]) (user=ndesaulniers job=sendgmr) by 2002:ad4:524b:: with SMTP id s11mr14139796qvq.3.1605501337720; Sun, 15 Nov 2020 20:35:37 -0800 (PST) Date: Sun, 15 Nov 2020 20:35:29 -0800 Message-Id: <20201116043532.4032932-1-ndesaulniers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.2.299.gdc1121823c-goog Subject: [PATCH 0/3] PPC: Fix -Wimplicit-fallthrough for clang From: Nick Desaulniers To: "Gustavo A . R . Silva" , Nathan Chancellor , Miguel Ojeda , Michael Ellerman Cc: Benjamin Herrenschmidt , Paul Mackerras , clang-built-linux@googlegroups.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While cleaning up the last few -Wimplicit-fallthrough warnings in tree for Clang, I noticed commit 6a9dc5fd6170d ("lib: Revert use of fallthrough pseudo-keyword in lib/") which seemed to undo a bunch of fixes in lib/ due to breakage in arch/powerpc/boot/ not including compiler_types.h. We don't need compiler_types.h for the definition of `fallthrough`, simply compiler_attributes.h. Include that, revert the revert to lib/, and fix the last remaining cases I observed for powernv_defconfig. Nick Desaulniers (3): powerpc: boot: include compiler_attributes.h Revert "lib: Revert use of fallthrough pseudo-keyword in lib/" powerpc: fix -Wimplicit-fallthrough arch/powerpc/boot/Makefile | 1 + arch/powerpc/boot/decompress.c | 1 - arch/powerpc/kernel/uprobes.c | 1 + arch/powerpc/perf/imc-pmu.c | 1 + lib/asn1_decoder.c | 4 ++-- lib/assoc_array.c | 2 +- lib/bootconfig.c | 4 ++-- lib/cmdline.c | 10 +++++----- lib/dim/net_dim.c | 2 +- lib/dim/rdma_dim.c | 4 ++-- lib/glob.c | 2 +- lib/siphash.c | 36 +++++++++++++++++----------------- lib/ts_fsm.c | 2 +- lib/vsprintf.c | 14 ++++++------- lib/xz/xz_dec_lzma2.c | 4 ++-- lib/xz/xz_dec_stream.c | 16 +++++++-------- lib/zstd/bitstream.h | 10 +++++----- lib/zstd/compress.c | 2 +- lib/zstd/decompress.c | 12 ++++++------ lib/zstd/huf_compress.c | 4 ++-- 20 files changed, 67 insertions(+), 65 deletions(-) -- 2.29.2.299.gdc1121823c-goog