From patchwork Tue Jun 16 05:43:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 1310003 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=lwIV682K; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49mHF330FSz9sRN for ; Tue, 16 Jun 2020 15:43:51 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 96D3481E8E; Tue, 16 Jun 2020 07:43:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="lwIV682K"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AAF8481CA8; Tue, 16 Jun 2020 07:43:40 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0F8B881CA8 for ; Tue, 16 Jun 2020 07:43:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pg1-x52b.google.com with SMTP id u128so1828994pgu.13 for ; Mon, 15 Jun 2020 22:43:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kS/1YxlBwECMKl+wPnOc2z5A0PyKgRCTp0wYCG9e9e8=; b=lwIV682KulzPxfWjNlHxl3Tb81jbI66YMLgefcvoclBO1gm0KG/bV3IMSl1fedZLgG pD967OchMGgmDAZMDI5UoUJiMuFkaGduERW4m5QUlczLPvTt0hD94lE4iK5/ykrh7Xg+ hMiGjjbV42QNd9lwLC4CM8AkEGevNKqtT90X//a2qkTTOw+DMwsbmLZ+QW/mr1Q1c62M 0PK1ZIfjsNLM1rYpkmPdRGQi1KR5p3+K8x1COF2iVNdMkRDo2XPQOomXFGsGFXCkkNDR bN7PSbpohwQN7PAVfFKG5NKN4QPiUNTmZRvFgm9PYYZmpj+v8dpMCcuhlcAH36glvHAk EQHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kS/1YxlBwECMKl+wPnOc2z5A0PyKgRCTp0wYCG9e9e8=; b=Ku0pCEIP9evyVF+XgFsLwjXjYFZripFWzarRxxLO4ol23PcoQH9yrjSDFelZcT41vF sJM24tug3b0uWcpzV7iJCoinGvSn6I5kDU9lvCesr79KCHgA/mCtyA9BVebFYVQBMRqS wtz5qDHN6Zn5cl3yf+7cfx2ju7dYWJwVEMoIwvZIK3Q3/XFzXoupeRL6zqZo2DGhhBCp xSmrdb2v9j/fVXcO+KOj2gXbwk5e7ZJRjRHm8uZeT2BAYEouddzFdq47utMqhJdcFPS+ hEHdC7U0zrWe4vLLHQexUGZHWVMh0RU1WBsgoOTm0jLck2zpxk+WJDJ7xRRIqhz/21iY 2xLw== X-Gm-Message-State: AOAM530LH0ClIK48FEIK1CtQQxUZGYdQMFr6LMeHHtrYwj5p+tinnE1n 1S1BxsPBJPeCxWcIaWrEEj1Apw== X-Google-Smtp-Source: ABdhPJyJpBCg7M4V/o93H9GkSDbeUiahjrrl3rGa/WP0l1FJ+qKgdCAuAcPgJzj2IWP69RWixcYznA== X-Received: by 2002:a63:2250:: with SMTP id t16mr837555pgm.439.1592286210275; Mon, 15 Jun 2020 22:43:30 -0700 (PDT) Received: from localhost.localdomain (p6e421564.tkyea130.ap.so-net.ne.jp. [110.66.21.100]) by smtp.gmail.com with ESMTPSA id 27sm1186619pjg.19.2020.06.15.22.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 22:43:29 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com Cc: xypron.glpk@gmx.de, u-boot@lists.denx.de, AKASHI Takahiro Subject: [PATCH] checkpatch: fix a false check against wchar/utf-16 string Date: Tue, 16 Jun 2020 14:43:07 +0900 Message-Id: <20200616054307.6017-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean UEFI subsystem uses utf-16 string, but checkpatch.pl complains about any occurrences of L"xxx" which is definitely legal. So just suppress this kind of warning. Precautiously, we will check u"xxx" as well. Signed-off-by: AKASHI Takahiro --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index edba36565167..b3697720787c 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -5462,7 +5462,7 @@ sub process { } # concatenated string without spaces between elements - if ($line =~ /$String[A-Za-z0-9_]/ || $line =~ /[A-Za-z0-9_]$String/) { + if ($line =~ /$String[A-Za-z0-9_]/ || $line =~ /([A-Za-z0-9_]+[Lu]|[A-Za-z0-9_]*[A-KM-Za-tv-z0-9_])$String/) { if (CHK("CONCATENATED_STRING", "Concatenated strings should use spaces between elements\n" . $herecurr) && $fix) {