Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp292028imi; Thu, 21 Jul 2022 22:10:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sbFtevWu36Rq3A/5/vpbNs1V4GQxdvlJpa/CSN5CpRHbu5dQ5sfmlVNjipYRnCW6Ivad3C X-Received: by 2002:a17:906:118:b0:715:771b:251b with SMTP id 24-20020a170906011800b00715771b251bmr1598176eje.651.1658466618665; Thu, 21 Jul 2022 22:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658466618; cv=none; d=google.com; s=arc-20160816; b=EtE2+CWQ+Y8shfB/Q9V5ocM2LnI+erI5n21Er+LUhB/VeD9dEIQPKrseBlmoPPpWfO M73bRROX4Dgt6kft7LHKhTkykFMopZ9mMarunWagw2IPXM9eH82NfkB6bKcHj9KUy4x1 dpBoGrSQaTGmjDdt6DHdBFF2HttsY3pWIkMQhSIBJQcWKB2Ab0sxTz8ATogltUZkaVuG hV7nHgUVtFvv2Apr5UkX8kwkEh9X+crQ0poWskYnS4J4/VziJWuXjZ+xhwhtR6fgnVFe ierht0K1kAb2i0hbu1mShgPtNAD4Br7wSX3txsl9qlnLo1ewJN2+9nQBt8A8ATBkRDxo f7OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=OEip7BONkb2erWAIqYnB3BgqhTayepaKvTIy6aAPLK4=; b=HbwoBHh8EJN0I3A311BzwmAXRYc3SZKeDBbJcRilgkqsfyQYooqlpu2qkOjpbpTD6f Dnh+NyUz3LDnfx3csr4aprNXe+DKYoSgweP3oiSY9R+wCnDyIQ9BQ2QcgXrPSDSnjBSp 3yy7xRNkB42L0RQLcrtYq0x9qltWnf18nCK4gShrt4/7DueLSbXqOxwBLOJwOEZ+8ojQ FP4HqZSphB91tMLEgJMvhze0ekqmF3ZwuAhdy5m/zXaRj3YuM1tTY4PhYRBRA9J0O4xW cwfQAzPAJyN+csWZ/qO8t1DNxupRaay7Mjym/rq/g5xQCGmtDe6/PZizp7VnnLraprIU La3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=vRNMEmwR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j19-20020a056402239300b0043bcab5fb7asi2505440eda.359.2022.07.21.22.09.53; Thu, 21 Jul 2022 22:10:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=vRNMEmwR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231601AbiGVEV3 (ORCPT + 99 others); Fri, 22 Jul 2022 00:21:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiGVEVZ (ORCPT ); Fri, 22 Jul 2022 00:21:25 -0400 Received: from conssluserg-06.nifty.com (conssluserg-06.nifty.com [210.131.2.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 605CC97498; Thu, 21 Jul 2022 21:21:24 -0700 (PDT) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 26M4L7ML021313; Fri, 22 Jul 2022 13:21:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 26M4L7ML021313 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1658463668; bh=OEip7BONkb2erWAIqYnB3BgqhTayepaKvTIy6aAPLK4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vRNMEmwRXdykKsKDONRyITF3SjwpIBUPDDaNvVbKabic7RgAEgsCPxtD+w1FFj9KI 8LXat4NqAUwFS/J2WVNIEYskrk1BgSlWQxaGXvjslXOd1Zis9L1CX+o66n67lmlzNs C+WzazpEm15wUQYpZlAn73c8Fa3zdc/0bSh184yaUQYwzhrcLGTEJeW4+zRcY8kH2y Mk4vH6W76vI/IvMpGvIhsf4VCuIuroHUgn/EsKBLwvjAhBxOf4a3sc9vNf7W+mBkJx hDOwBQYdAYokFtwL46wMQVY5zjo08kNp9A7U01jnjgPqhUSuxoGC7eF6cRabqsiaJv vf84Loc1gKl1A== X-Nifty-SrcIP: [209.85.128.43] Received: by mail-wm1-f43.google.com with SMTP id x23-20020a05600c179700b003a30e3e7989so1822064wmo.0; Thu, 21 Jul 2022 21:21:08 -0700 (PDT) X-Gm-Message-State: AJIora/lVMz07bnTtravYmEGB3B722P5uN/ESaBJG7k4iSwe9+P7Ylea G8z6DkBt0Cq4ufP0eBs//ZUW45fPFTugfSim3bI= X-Received: by 2002:a05:600c:a42:b0:39c:9086:8a34 with SMTP id c2-20020a05600c0a4200b0039c90868a34mr10786453wmq.169.1658463667129; Thu, 21 Jul 2022 21:21:07 -0700 (PDT) MIME-Version: 1.0 References: <20220716084532.2324050-1-youngmin.nam@samsung.com> In-Reply-To: <20220716084532.2324050-1-youngmin.nam@samsung.com> From: Masahiro Yamada Date: Fri, 22 Jul 2022 13:20:30 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Makefile.extrawarn: add -Wformat-insufficient-args for clang build To: Youngmin Nam Cc: Michal Marek , Nick Desaulniers , Linux Kbuild mailing list , Linux Kernel Mailing List , hosung0.kim@samsung.com, d7271.choe@samsung.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 16, 2022 at 5:17 PM Youngmin Nam wrote: > > The -Wformat-insufficient-args for clang is useful to detect the situation > when the total number is unmatched between format specifiers and arguments. > > Originally, this option is enabled by default(Link[1]), but it is disabled by > -Wno-format explicitly so that we can't detect this unmatched situation. > > We can enable it by adding this option after -Wno-format. > > Link[1]: https://releases.llvm.org/13.0.0/tools/clang/docs/DiagnosticsReference.html#wformat-insufficient-args > Signed-off-by: Youngmin Nam > --- Please let me hold on this patch because I'd rather go straight to the removal of -Wno-format. https://lore.kernel.org/linux-kbuild/CAFhGd8pk+0XEz0tMiJcwMM7B3NYF=yF4cHW8A-6-81SgpKFPNw@mail.gmail.com/T/#m4becf6ed91f25217b59a840ed1829f36e49fe347 > scripts/Makefile.extrawarn | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn > index f5f0d6f09053..c23d7c286bad 100644 > --- a/scripts/Makefile.extrawarn > +++ b/scripts/Makefile.extrawarn > @@ -48,6 +48,7 @@ else > ifdef CONFIG_CC_IS_CLANG > KBUILD_CFLAGS += -Wno-initializer-overrides > KBUILD_CFLAGS += -Wno-format > +KBUILD_CFLAGS += -Wformat-insufficient-args > KBUILD_CFLAGS += -Wno-sign-compare > KBUILD_CFLAGS += -Wno-format-zero-length > KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast) > -- > 2.34.0 > -- Best Regards Masahiro Yamada