From patchwork Wed Oct 28 00:22:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Lunn X-Patchwork-Id: 11864195 X-Patchwork-Delegate: kuba@kernel.org 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=-12.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 71AFDC388F7 for ; Thu, 29 Oct 2020 00:13:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 40BF82076C for ; Thu, 29 Oct 2020 00:13:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390842AbgJ2ANt (ORCPT ); Wed, 28 Oct 2020 20:13:49 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:50784 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390834AbgJ2ANr (ORCPT ); Wed, 28 Oct 2020 20:13:47 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kXZEu-003th5-1u; Wed, 28 Oct 2020 01:22:56 +0100 From: Andrew Lunn To: Jakub Kicinski Cc: netdev , Thomas Petazzoni , Ralf Baechle , Andrew Lunn Subject: [PATCH net-next 2/2] net: rose: Escape trigraph to fix warning with W=1 Date: Wed, 28 Oct 2020 01:22:35 +0100 Message-Id: <20201028002235.928999-3-andrew@lunn.ch> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201028002235.928999-1-andrew@lunn.ch> References: <20201028002235.928999-1-andrew@lunn.ch> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org net/rose/af_rose.c: In function ‘rose_info_show’: net/rose/af_rose.c:1413:20: warning: trigraph ??- ignored, use -trigraphs to enable [-Wtrigraphs] 1413 | callsign = "??????-?"; ??- is a trigraph, and should be replaced by a ˜ by the compiler. However, trigraphs are being ignored in the build. Fix the warning by escaping the ?? prefix of a trigraph. Signed-off-by: Andrew Lunn --- net/rose/af_rose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index cf7d974e0f61..2c297834d268 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c @@ -1410,7 +1410,7 @@ static int rose_info_show(struct seq_file *seq, void *v) ax2asc(buf, &rose->dest_call)); if (ax25cmp(&rose->source_call, &null_ax25_address) == 0) - callsign = "??????-?"; + callsign = "????\?\?-?"; else callsign = ax2asc(buf, &rose->source_call);