From patchwork Sun Jul 29 12:41:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10548183 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 668FB112E for ; Sun, 29 Jul 2018 12:41:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BF532A521 for ; Sun, 29 Jul 2018 12:41:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BEF32A571; Sun, 29 Jul 2018 12:41:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 00D912A521 for ; Sun, 29 Jul 2018 12:41:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2EB696E0B2; Sun, 29 Jul 2018 12:41:20 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 223706E0B2; Sun, 29 Jul 2018 12:41:19 +0000 (UTC) Received: by mail-pf1-x443.google.com with SMTP id e13-v6so3335613pff.7; Sun, 29 Jul 2018 05:41:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=a6mVbS7HJZzNX0sEmzmuuuhXhS5vD4Kn8sLoGLhNhUA=; b=TzsFH1hRvmlcLu0BSGU8ZlamH1Prxe3yom46lly4MIod7ofC8syOMKi60hZNdVBH36 /FSPyyxWshkFo9CPs+4QiHE13x8hfnR3xHZ+y89xzWxgcGNJ8X5HXI9dwADK2LdgRgKR ERww0ZVYyBP2B8Prz97pbHMiWMnlt+gHYt0qR7jeCh5QNYWZKgizqRkCXLyYhnffUomO grBqXaUTrVk/zN+oHSZRzTiIglLKFd4mnucIfjsHQh3nyxs8royGEHrhzGaHRAK1XaU7 u9nTN26gBGUfIpCGylazKCHoUUVwL1hseZnFFAenrdVRGllQSpbZ/lST3UosjSNSKMzY MtbA== X-Gm-Message-State: AOUpUlFVQ13lMiWlYamBaUowU+tXwWDmfViAJQhfkdadRJu3vitIYOHA QzBrTnPyrO9ZWqV1p0fkRnY= X-Google-Smtp-Source: AAOMgpdnwIe1uuOyUobZ4FfYFz2wB5ZqcjdIWBkzD2tg7V/nNNlA/8ELi+q6YV8sDPyYUtxn0XaH8Q== X-Received: by 2002:a62:6746:: with SMTP id b67-v6mr13920201pfc.243.1532868078767; Sun, 29 Jul 2018 05:41:18 -0700 (PDT) Received: from smtp.gmail.com ([140.113.61.252]) by smtp.gmail.com with ESMTPSA id n9-v6sm15705614pfg.21.2018.07.29.05.41.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Jul 2018 05:41:18 -0700 (PDT) Date: Sun, 29 Jul 2018 09:41:15 -0300 From: Rodrigo Siqueira To: Petri Latvala , Arkadiusz Hiler Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180323 Subject: [Intel-gfx] [PATCH v2 i-g-t 0/2] Fix some GCC warnings X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: igt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP During the compilation, some GCC (8.1) warnings are shown. This patchset address some of the warnings problems. Changes since v2: - Reduce the total amount of bytes allocated during command handling operation - Remove unnecessary memset operation - Improved commit message Rodrigo Siqueira (2): Make string commands dynamic allocate Fix truncate string in the snprintf tools/intel_gvtg_test.c | 25 ++++++++++++++++--------- tools/intel_reg.c | 2 +- 2 files changed, 17 insertions(+), 10 deletions(-)