Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp965647rwl; Wed, 29 Mar 2023 10:42:08 -0700 (PDT) X-Google-Smtp-Source: AKy350aBy/53xPqFqSjzCjwKqJgUc6cSSikjUZGu8W6+O0bX4ISr2e13Jr1ZR562ApfnrLJJzCqG X-Received: by 2002:aa7:c950:0:b0:500:2c4f:3f5 with SMTP id h16-20020aa7c950000000b005002c4f03f5mr17904008edt.12.1680111728643; Wed, 29 Mar 2023 10:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680111728; cv=none; d=google.com; s=arc-20160816; b=lbld17XMks+4EKGV9aJkgN86XAzA4D/kYkjrkIEvnRT4I5O8vhOgJ8m6TvkYIXzuPi IFfGHV0C8kBY4hYfvp20A0ua1PVH9rqNHXqlWA2pMYHPORfvHpoGjclg48uxZh/7FcbU EQJreeTcZGcqfB2xMD1avUP4A6arJpj5NJGGqdaEvNj5qVnFC7nvJ/4yvXTA1dGmVh6s DJJeql9WpblJ9MDZ8aeRbud0tstVM1fvMm0DfaD4dE1RIUwShJXZysYayiUaKwL4qHX+ 6MhrTg6jIf3Gmjqqsu4V3KGkiIBssW+pBsKAe7RyZIK361h10AcItBYLqhJ4/XX4tWwq HDwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0HLyYeKV3If5cAiJw/VAQ1aNDVNCtxxtUuMyZtuuZJs=; b=O1HiMEzTymvYwJvMCw2E8QDWyQT4oHv2aamBiYoOEAbH6l1rdZSx9k8rfN3+PiD1dN CO+i1PpeGRBEYeDinSSHd6NWotq7Gfkx2uWU9uiyYczz4doxhWnDk53CFGlZCE5esEcc R2ImqlVAVTrjlDbWEj7nk3E5XE3Mn7kDZkTtebyTxaU9mXEBYQpIJ8GidZkkaLhr4FTf 7+H/dezskGjqxuMM8fam8VnWP0311P3pvBN501I0ryeHRL9cQsMUt4DMlSpJPI2cCHqO BWypZ7zZP3pKP4+Vyhk6kqYARWhM+uTDUq5TCLFrKUvWuH6YQMyGCzeynuA1zw4nRMUW HF+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=nQ50QFq2; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay21-20020a056402203500b004fd1ee1380fsi34738557edb.612.2023.03.29.10.41.41; Wed, 29 Mar 2023 10:42:08 -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=@google.com header.s=20210112 header.b=nQ50QFq2; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229609AbjC2Rl1 (ORCPT + 99 others); Wed, 29 Mar 2023 13:41:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjC2Rl0 (ORCPT ); Wed, 29 Mar 2023 13:41:26 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE84C4ED9 for ; Wed, 29 Mar 2023 10:41:24 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id d22so9760476pgw.2 for ; Wed, 29 Mar 2023 10:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680111684; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0HLyYeKV3If5cAiJw/VAQ1aNDVNCtxxtUuMyZtuuZJs=; b=nQ50QFq2oQaeue7g99fWt3LYzim4DoP351259h+OjISIxFL0HSrYifEKZzXFuCp4kN zTW0fp74XQOcA+AdBe1zlS2XRP/dwwYuBxzYxeW0v82hYny2ieOa/OyagiJ5Ywv89bio XrdEWRYp4ly32ewX9Idj0Uco/qe5sPNgwQrJsvpE7biD19aa18AZbECJz9fxhUpVAIiF nNQb6rHy3NeYphBgnwH8GrUpjunTe2C903BYSgRvhfydQv993BSE1QofQ1mkyzJRL7Pp UmpH7UsQrajnVeY0Z6lmWgkUoPG6XgfuOxZxvkujKcRJ4dOrGb/yFEBixEW/+jkrPEZ5 MTcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680111684; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0HLyYeKV3If5cAiJw/VAQ1aNDVNCtxxtUuMyZtuuZJs=; b=VHo5tMnGRMmEz97PBLKD3NznQQEjEcQrxonMUToTBxhAze1d0wLOsmuZagPvoSSfgA qiRmV/V+puYozb/70IouFXNe5n1bIQAtz7QgbeKdCKL4wmPLytE971DPLtY6lX7JCS7g UMizTiFzCEPA1PBHSBqwibV7buem+Rsnr+6G5PkStYfemI0C7+Nf4GR88U8ncaOLRXkF omB6FwzxIgfMOXGHP3zM8tz3+2GgKXi/cCIIovsbAQaFTcnhgb0HMKOhNRnFQDXh2w+/ bdtQvKuUh1ypD3ugL2CRV6J+3VTWDMXm7madI4k6wvhNEMNfbxXSLmPeOM87On87MxZX dj9g== X-Gm-Message-State: AAQBX9dZPbunvDZN97O30+qk0Ib1LlmET2dRUf+DnAbfVi7hS4HNp1Jm 8VlUJN/cJEFyW2S70v6wRuL/2hLgpERNQ+ODsGf+vw== X-Received: by 2002:a05:6a00:894:b0:606:a4bd:8dde with SMTP id q20-20020a056a00089400b00606a4bd8ddemr10983778pfj.4.1680111684131; Wed, 29 Mar 2023 10:41:24 -0700 (PDT) MIME-Version: 1.0 References: <20230329-net-ethernet-ti-wformat-v1-1-83d0f799b553@kernel.org> In-Reply-To: From: Nick Desaulniers Date: Wed, 29 Mar 2023 10:41:13 -0700 Message-ID: Subject: Re: [PATCH net-next] net: ethernet: ti: Fix format specifier in netcp_create_interface() To: Nathan Chancellor Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, trix@redhat.com, razor@blackwall.org, kerneljasonxing@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-15.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=unavailable 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 Wed, Mar 29, 2023 at 10:10=E2=80=AFAM Nick Desaulniers wrote: > > Because integer literals in C are signed, the cast is necessary to > avoid the format specifier from warning about the wrong signedness. > It would be preferable to have a `U` suffix on the literal value, then > the cast would be unnecessary. > > Untested: > ``` > diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h > index 494a23a976b0..67cb6bfc4056 100644 > --- a/include/linux/skbuff.h > +++ b/include/linux/skbuff.h > @@ -349,7 +349,7 @@ struct sk_buff; > # define CONFIG_MAX_SKB_FRAGS 17 > #endif > > -#define MAX_SKB_FRAGS CONFIG_MAX_SKB_FRAGS > +#define MAX_SKB_FRAGS CONFIG_MAX_SKB_FRAGS ## U Or rather this trick. https://godbolt.org/z/81aPxf39b I forget what that's called (it's not xmacros); we definitely have a macro for that in the kernel. --=20 Thanks, ~Nick Desaulniers