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=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 42854C4708F for ; Wed, 2 Jun 2021 06:25:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 259F76128A for ; Wed, 2 Jun 2021 06:25:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231192AbhFBG0m (ORCPT ); Wed, 2 Jun 2021 02:26:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:56064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbhFBG0R (ORCPT ); Wed, 2 Jun 2021 02:26:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C930460FDC; Wed, 2 Jun 2021 06:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622615075; bh=NIYhNZ3lq0gLH456sCAhQIBe2NS15yV6wh66f39yazQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cN0g2zXp0DLR2mCvTqSNGmNpClQhVfTF+uzqBFeOFcgGAwYcaGboTjd5wpuBpN3qM +rwrUR0HJ0Wo710y5YhWjPIbhPIPj6o9fT3Hcf/CLdHjj/qXcqeHwb6iC5MWv9ioDd G/G1iPlb9Pq3KwDC+Rqm3t8LIThGFQnbkRKCCwWCbq5X7+CvxJVSpp48WbznD7wl+f WyDeaNlZkh2+GZWoqzHfV4uEFTrP0dPiFJCoy684ZrACGAG1MaJwwU+e4vJwLYnF+j q9wPHKTqIYaLOP2WKGxPqpM5XL6/lWT5TwfJVyA9ASqBBPduVmatitUo8TwlGT8uvi UfvOQutF68lPw== From: Masami Hiramatsu To: Steven Rostedt Cc: Masami Hiramatsu , LKML , Ingo Molnar , Devin Moore Subject: [PATCH v3 1/6] tools/bootconfig: Fix a build error accroding to undefined fallthrough Date: Wed, 2 Jun 2021 15:24:31 +0900 Message-Id: <162261507163.255316.17455428633028156891.stgit@devnote2> X-Mailer: git-send-email 2.25.1 In-Reply-To: <162261506232.255316.12147562546699211199.stgit@devnote2> References: <162261506232.255316.12147562546699211199.stgit@devnote2> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the "fallthrough" is defined only in the kernel, building lib/bootconfig.c as a part of user-space tools causes a build error. Add a dummy fallthrough to avoid the build error. Cc: stable@vger.kernel.org Fixes: 4c1ca831adb1 ("Revert "lib: Revert use of fallthrough pseudo-keyword in lib/"") Signed-off-by: Masami Hiramatsu --- tools/bootconfig/include/linux/bootconfig.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/bootconfig/include/linux/bootconfig.h b/tools/bootconfig/include/linux/bootconfig.h index 078cbd2ba651..de7f30f99af3 100644 --- a/tools/bootconfig/include/linux/bootconfig.h +++ b/tools/bootconfig/include/linux/bootconfig.h @@ -4,4 +4,8 @@ #include "../../../../include/linux/bootconfig.h" +#ifndef fallthrough +# define fallthrough +#endif + #endif