From patchwork Mon Nov 15 23:26:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 104348 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1F48FA0032; Tue, 16 Nov 2021 00:26:16 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 095DF41142; Tue, 16 Nov 2021 00:26:16 +0100 (CET) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mails.dpdk.org (Postfix) with ESMTP id 9B8DF41141 for ; Tue, 16 Nov 2021 00:26:14 +0100 (CET) Received: by mail-pj1-f43.google.com with SMTP id y14-20020a17090a2b4e00b001a5824f4918so557336pjc.4 for ; Mon, 15 Nov 2021 15:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FiOM5bf5cIufbvf0y9RHLBD8uoWsIay+FpjTm8pMUjM=; b=4zsKYh5ZuWAC5t6hUgRjHhIqureda9stUYaFDlldlZn0lADnqBuLadbr4rhDvXbgaP Ueedil8hzaFWcagDSkzgrXqLUEaTREAaXv2YFl2PrshrLJb2hCXBmG8QoSPqsbv7kHhJ zLsX4F2jXhcFXsADdX5XNdVK5orbECaebgnG6XJv+rWNTD8hcEqY9Kvn7r6N9ZRjAQB+ w9kgQSPcVESUGwCW2b/zHn2CDYFaasyMAm1SVPR3AJ+eS7arbFkgqZoqHHkRIb7PJjQB 85jHEVefBNiw32QyWrF9U+BqOIcT7UCcJb8b+hgsiB+4B1Di6bb0TIxwZd8mc/X72RyW V84A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FiOM5bf5cIufbvf0y9RHLBD8uoWsIay+FpjTm8pMUjM=; b=pWqpjH3nkFXjvojh41JMQ05dL2BKMOMMUCiLzEASCoLnUa/fl6HfyVbxB9DtJ8J0c7 tnm2pbbRZ89I6Nas58d002XrocSrSbN9VEK3H8F6WsFe9YiKlJkEswA/Wri5YWirxCLM 9Ty276+yU7tK48EJw6Trl8AGWencyH78IL7Gj9E6M8EtY5Zagl7HxafAJtmcsamdi5Ja F1/6+p39AOi8fwPkvRaiCpdXaZZi79XdDfN6/9yevE0B/Dvi+LH5nSeM0lMKhfu3jdNs nKPC/II58cAprSwYqBZjtI0C2+ARfzSq5cWztqxPvtLM/QZ+si0J6OUOwaLcQcjEf59k CUdw== X-Gm-Message-State: AOAM532XJk3oGqSSCxL4DKixYv6DJarUrzWO/xgOVZgMJXu/V61ADSHg +7lZHcJZQgG6jftClzYdVWz0vOcP+X4uuA== X-Google-Smtp-Source: ABdhPJwSD5Tnj84oWINlSEzkl0fOy8h3uJznvklVDGzyiA/tbMLScLIRDGXIIUvZciBt9BkAac4uZw== X-Received: by 2002:a17:90a:b105:: with SMTP id z5mr2922574pjq.181.1637018773465; Mon, 15 Nov 2021 15:26:13 -0800 (PST) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id h3sm18224799pfi.207.2021.11.15.15.26.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 15:26:12 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson Subject: [PATCH v3] checkpatches: suppress warning about strlcpy Date: Mon, 15 Nov 2021 15:26:10 -0800 Message-Id: <20211115232610.118301-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210910175443.527801-1-stephen@networkplumber.org> References: <20210910175443.527801-1-stephen@networkplumber.org> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Current version of Linux kernel checkpatch now complains about usages of strlcpy because the Linux kernel prefers strcspy. WARNING:STRLCPY: Prefer strscpy over strlcpy But DPDK project allows strlcpy, therefore suppress the warning. Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson --- v3 - yet another commit message typo devtools/checkpatches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index c314d83a29d3..057208c8e1ea 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -33,7 +33,7 @@ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,\ PREFER_KERNEL_TYPES,PREFER_FALLTHROUGH,BIT_MACRO,CONST_STRUCT,\ SPLIT_STRING,LONG_LINE_STRING,C99_COMMENT_TOLERANCE,\ LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\ -NEW_TYPEDEFS,COMPARISON_TO_NULL" +NEW_TYPEDEFS,COMPARISON_TO_NULL,STRLCPY" options="$options $DPDK_CHECKPATCH_OPTIONS" print_usage () {