Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4955963rdh; Wed, 29 Nov 2023 16:17:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIbIaHacdVj64uYB55FlDTiwmcdz+5c28yhyJDpG+p9TfoKBw9548k0xXrMGI/TWFovI7U X-Received: by 2002:a17:902:8309:b0:1d0:68a:4a45 with SMTP id bd9-20020a170902830900b001d0068a4a45mr5414964plb.35.1701303434348; Wed, 29 Nov 2023 16:17:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701303434; cv=none; d=google.com; s=arc-20160816; b=k/gZ3qsh/m1OEIQIqE+kTp1WFW/NEcHV+Ah6JbfIv5srn3Ifdl0mg3e2oVwO4iR1fe tK1RIaquZX0OVn8f8BaH07M36Z8gCeY5FbzUOOvioXW3s9HkJ4ofcgt1pquZgm3G0Vae B9V03PwiMAg2le/hO71QyEsYDFHNvmGyJE9S2FWBlkxfGt7KCErOvrCPNboCzd5khjkj YikH4jrAH4WBOwtQGEt01zfUVmBjtGc2PpTOrOvov3mPahqZhDUJyBHu1XLRwELseine f/7rE2kkmhZRXgKOthLbl64rBHbExek2aIUeST9FFwSJTC+O7n0I00PPflWF0w0TVyeN Ip2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=b0EfwIOOFcb64aYa7mGYmKP/Tqov05Yb0U+II4hdiPY=; fh=kzQbY2VWCNYHOBrv8n3HKFBQNH7Ctw9D+bVaT5LgeBo=; b=xqXtpF9p+PNBXuP5GFCYF71C1Qlx0QNNQP0nlq21E7LOCej11t3TS6nuuIVFg061H+ e/QEaiqPAp3xO3BO2+YkLZieoG492IZ/JHYq5lAY1rRewBWAYwQkSLtSeoTITrMqlzoy N4Y7UOevAkGcTx0n6DIhvlO8+FW8D5BVvUFzZfdazzSt8maHNR01uFrvg8rVzlGGv+QB Yl9p8lmjTIazlvb+EF8qCajkoS+GBY0sazVXIAfjSiOSjD5CHbVZ9P6B6EmXN8aS8zd2 mMPv7N9nZcGiW0gs6zaMMrH0J0peEpaSndpz2USO+gSA8M1DreEk2S+M6bCKuJaQsRZc h8Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xi8nwewd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id d5-20020a170902cec500b001cc4770b9aesi9592595plg.419.2023.11.29.16.17.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 16:17:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xi8nwewd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 360D88087275; Wed, 29 Nov 2023 16:17:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231618AbjK3AQ5 (ORCPT + 99 others); Wed, 29 Nov 2023 19:16:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbjK3AQ4 (ORCPT ); Wed, 29 Nov 2023 19:16:56 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D03E198 for ; Wed, 29 Nov 2023 16:17:02 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC830C433C8; Thu, 30 Nov 2023 00:17:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701303422; bh=Hatbq/cs0qtcAoVpae9FtcGGNw3zYfE2KT3JQ8+1QDE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xi8nwewdeNmsDoGVjPSs22j08Sg6/MQYvc9337TgQRt8JFmC4Ua91ewiCB8tG1iAO ygi+RUKQSr9FHlUJBOPsPlwS3UwYE7U9DUvX44xTmUapPeQZ6LilDXK43GXGM4l+02 d1he2k1h8mcVBi8MsSMyuLsHDv5c/k5gAuZLUVqUTWpKdm4M9ySAUfletWF9cZY+re IPzc3qgoiMD6lQ55aIdHZ2+JTjcCjn7BxNV/uk0QMfkyPEXLsOdM67m3/aj3SPIbny PP4p5rYiTSSUR4zi6eBUA2dpYGroBiUOx3Iut0WVzxYtiGDJRV7iDg0kiSa8PBmMGl wq9YOiDOghV1A== Date: Wed, 29 Nov 2023 17:17:00 -0700 From: Nathan Chancellor To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Schier Subject: Re: [PATCH 1/3] modpost: move __attribute__((format(printf, 2, 3))) to modpost.h Message-ID: <20231130001700.GB2513828@dev-arch.thelio-3990X> References: <20231125103116.797608-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231125103116.797608-1-masahiroy@kernel.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 29 Nov 2023 16:17:12 -0800 (PST) On Sat, Nov 25, 2023 at 07:31:14PM +0900, Masahiro Yamada wrote: > This attribute must be added to the function declaration in a header > for comprehensive checking of all the callsites. > > Fixes: 6d9a89ea4b06 ("kbuild: declare the modpost error functions as printf like") > Signed-off-by: Masahiro Yamada Reviewed-by: Nathan Chancellor > --- > > scripts/mod/modpost.c | 3 +-- > scripts/mod/modpost.h | 3 ++- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c > index cb6406f485a9..ca0a90158f85 100644 > --- a/scripts/mod/modpost.c > +++ b/scripts/mod/modpost.c > @@ -60,8 +60,7 @@ static unsigned int nr_unresolved; > > #define MODULE_NAME_LEN (64 - sizeof(Elf_Addr)) > > -void __attribute__((format(printf, 2, 3))) > -modpost_log(enum loglevel loglevel, const char *fmt, ...) > +void modpost_log(enum loglevel loglevel, const char *fmt, ...) > { > va_list arglist; > > diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h > index 69baf014da4f..9fe974dc1a52 100644 > --- a/scripts/mod/modpost.h > +++ b/scripts/mod/modpost.h > @@ -197,7 +197,8 @@ enum loglevel { > LOG_FATAL > }; > > -void modpost_log(enum loglevel loglevel, const char *fmt, ...); > +void __attribute__((format(printf, 2, 3))) > +modpost_log(enum loglevel loglevel, const char *fmt, ...); > > /* > * warn - show the given message, then let modpost continue running, still > -- > 2.40.1 >