From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no 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 DB93EC54FCB for ; Sun, 26 Apr 2020 18:58:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 865C0206A2 for ; Sun, 26 Apr 2020 18:58:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="GgGSQ3vk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726184AbgDZS6J (ORCPT ); Sun, 26 Apr 2020 14:58:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726165AbgDZS6I (ORCPT ); Sun, 26 Apr 2020 14:58:08 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A915C061A0F for ; Sun, 26 Apr 2020 11:58:07 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id c21so5218741plz.4 for ; Sun, 26 Apr 2020 11:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yuhy6+UvC2aZCI8jEGanuJkbuaQTzx/LeqqBb0/lOXs=; b=GgGSQ3vkuWOePQBjt3G7TfBokCk2s9i0Z/ZhVNrUnFenlI88fwqM9v8M1DKugotU0Y 99U3UQGOOiSnNqKNDAOA0xouYx5rLfzGfGdlAuHMQSOoHDXN/hxL6IiIhzXCxI1QZMur AhKo21zgOl/BV+gZSWV7b4BYWf4FNZg/9VE+A= 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=yuhy6+UvC2aZCI8jEGanuJkbuaQTzx/LeqqBb0/lOXs=; b=l/UlsqQ0OJDjjuQntDhbhlJ/geCXkxM6UwrjZze3+gTd+h+aulAz8qtlIoXUEryxeM Qo1QkekZU+wWk81GHg/nKpGOHvFxwWnoqtN1ZAdt579FCgdffuKHan3tr67H/SdC8ATb enMNsUfSBsqlr+qZtLke4dhWACc/NK5zV0+YMAYKpcC5//IxwFALMvhEaoZrmWpSItGv WvkmL/CXjr9gx0CVtNKUEW3ylY05PHHXbQvNLXumoJKdkQj4wOYAXIlsTwpZ2a15d/rr RAYB/GUp/VZAJRujRyrckokWMOOJB0ntMzErTxZe2moS1H1tyl5Czr4K8svAshenEGG3 TqvA== X-Gm-Message-State: AGi0Pub5b5URiBjgkZK+PUaWDAhXTEU91zXkEwSbE2o/JZ4M7YPPGFMP f6lUJYysA83ZBh0d0m9/h0M8wA== X-Google-Smtp-Source: APiQypLHX0oiKi3Ea3EfbnPXETuY5F51bl9kiV8kC7ToakI66ch9tzV2WSIjhnTB3uhZSGFpA4QU2A== X-Received: by 2002:a17:90a:3086:: with SMTP id h6mr19944816pjb.49.1587927486861; Sun, 26 Apr 2020 11:58:06 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id h27sm9425153pgb.90.2020.04.26.11.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2020 11:58:06 -0700 (PDT) From: Stephen Boyd To: Mathieu Poirier Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Suzuki K Poulose , Mike Leach , Douglas Anderson Subject: [PATCH 0/5] coresight: Minor sparse and style fixes Date: Sun, 26 Apr 2020 11:58:00 -0700 Message-Id: <20200426185805.14923-1-swboyd@chromium.org> X-Mailer: git-send-email 2.26.2.303.gf8c07b1a785-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I got a report that kcalloc() didn't exist in coresight-cti-platform.c on arm builds and that looked like we didn't include very many headers to get prototypes of functions like kcalloc(), etc. The first patch fixes this problem by including the headers and then the rest of these patches fix minor sparse and style issues that I saw while looking through the coresight directory. Pathes based on v5.7-rc1. Cc: Suzuki K Poulose Cc: Mike Leach Cc: Douglas Anderson Stephen Boyd (5): coresight: Include required headers in C files coresight: Mark some functions static coresight: Don't initialize variables unnecessarily coresight: Initialize arg in sparse friendly way coresight: Avoid casting void pointers .../coresight/coresight-cti-platform.c | 11 ++++++++--- .../hwtracing/coresight/coresight-cti-sysfs.c | 17 ++++++++++++----- drivers/hwtracing/coresight/coresight-cti.c | 6 +++--- drivers/hwtracing/coresight/coresight-cti.h | 10 +++++++++- drivers/hwtracing/coresight/coresight-etb10.c | 2 +- drivers/hwtracing/coresight/coresight-etm3x.c | 2 +- drivers/hwtracing/coresight/coresight-etm4x.c | 2 +- .../hwtracing/coresight/coresight-platform.c | 4 ++-- drivers/hwtracing/coresight/coresight-priv.h | 9 ++++++--- drivers/hwtracing/coresight/coresight-tmc.c | 2 +- 10 files changed, 44 insertions(+), 21 deletions(-) base-commit: 8f3d9f354286745c751374f5f1fcafee6b3f3136 -- Sent by a computer, using git, on the internet From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no 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 2CD32C55199 for ; Sun, 26 Apr 2020 18:58:11 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 09347206A2 for ; Sun, 26 Apr 2020 18:58:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UeiIwUrY"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="GgGSQ3vk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 09347206A2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=DLGCbOL+LG6mK5ICzNGEGMEYa0SwB6yoSHKrCdlnW2k=; b=UeiIwUrYwxsQ4W wJdNt7b/LuUL5piqoifJBuBwNvqzXQRIiOr8d0q07qrDL88WJGTlJCXcpo1XUP4vDnHCNAVQohs2y 74YX4KKdmrTSAJSqyjyriN+t5UIY8w4ACPJ378HuIscg6Dkc6gZZXwY+tahivIEs5LQv69OnsXQTs hCuP8AP/Y+S4WemNeI5o6rs72J242mnY1uDByYuYKFBjEqYxPS+u6eupbC0zZ85e7MIleo0Q0soGc QOHlt6rcYmiC2OPSMstkbzGAPVjB4PBjygJcsOmGFbrkpOjBP4kg+S3jBXws7xWDipr/CzC0t/CWF nnZvzmsAs6HGS2Z2zmEA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jSmTi-00060C-93; Sun, 26 Apr 2020 18:58:10 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jSmTf-0005ys-G6 for linux-arm-kernel@lists.infradead.org; Sun, 26 Apr 2020 18:58:08 +0000 Received: by mail-pj1-x1043.google.com with SMTP id fu13so5782306pjb.5 for ; Sun, 26 Apr 2020 11:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yuhy6+UvC2aZCI8jEGanuJkbuaQTzx/LeqqBb0/lOXs=; b=GgGSQ3vkuWOePQBjt3G7TfBokCk2s9i0Z/ZhVNrUnFenlI88fwqM9v8M1DKugotU0Y 99U3UQGOOiSnNqKNDAOA0xouYx5rLfzGfGdlAuHMQSOoHDXN/hxL6IiIhzXCxI1QZMur AhKo21zgOl/BV+gZSWV7b4BYWf4FNZg/9VE+A= 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=yuhy6+UvC2aZCI8jEGanuJkbuaQTzx/LeqqBb0/lOXs=; b=iZR5wwBO6xEOLvNX0ud73xTuuaOFJ0Xl8G7Jsp4yYfgX4opc1bMoppVEMqD6Ktusew J1hhslTf9EfHSLzYQAwoCvQFtZ/AQ0SZ50J9+0OTTMBg8w7AZCW5CVjwhwvy3W57D1FW nF8jFkNZZvf9433fTtDhsF+8BHUykFsnoTC6FZYCrwR/VgDu3hJasVcIOhzBXMgAy/pc LUtiwFJ39KMtrLXMes8PB3wuz948Grw96twhn/na9XpCfTTIUwOW0Sa/hnbxGy4ODEXT USYXNrGsRslQBkY70B/ZOHxDio/Bijxp37VMgpyxy2ccjaznyUS3ygKNesTvX5Be9IZe klVQ== X-Gm-Message-State: AGi0PuZXbfgyct0QVtAuQoa1Re8JmYCU9HiAbrnWEBJCd5oCoFrmHHge MpcFlZI5VK86bCZA75FIpdZolg== X-Google-Smtp-Source: APiQypLHX0oiKi3Ea3EfbnPXETuY5F51bl9kiV8kC7ToakI66ch9tzV2WSIjhnTB3uhZSGFpA4QU2A== X-Received: by 2002:a17:90a:3086:: with SMTP id h6mr19944816pjb.49.1587927486861; Sun, 26 Apr 2020 11:58:06 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id h27sm9425153pgb.90.2020.04.26.11.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2020 11:58:06 -0700 (PDT) From: Stephen Boyd To: Mathieu Poirier Subject: [PATCH 0/5] coresight: Minor sparse and style fixes Date: Sun, 26 Apr 2020 11:58:00 -0700 Message-Id: <20200426185805.14923-1-swboyd@chromium.org> X-Mailer: git-send-email 2.26.2.303.gf8c07b1a785-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200426_115807_562016_0E737B3B X-CRM114-Status: UNSURE ( 9.36 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Douglas Anderson , Mike Leach , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Suzuki K Poulose Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org I got a report that kcalloc() didn't exist in coresight-cti-platform.c on arm builds and that looked like we didn't include very many headers to get prototypes of functions like kcalloc(), etc. The first patch fixes this problem by including the headers and then the rest of these patches fix minor sparse and style issues that I saw while looking through the coresight directory. Pathes based on v5.7-rc1. Cc: Suzuki K Poulose Cc: Mike Leach Cc: Douglas Anderson Stephen Boyd (5): coresight: Include required headers in C files coresight: Mark some functions static coresight: Don't initialize variables unnecessarily coresight: Initialize arg in sparse friendly way coresight: Avoid casting void pointers .../coresight/coresight-cti-platform.c | 11 ++++++++--- .../hwtracing/coresight/coresight-cti-sysfs.c | 17 ++++++++++++----- drivers/hwtracing/coresight/coresight-cti.c | 6 +++--- drivers/hwtracing/coresight/coresight-cti.h | 10 +++++++++- drivers/hwtracing/coresight/coresight-etb10.c | 2 +- drivers/hwtracing/coresight/coresight-etm3x.c | 2 +- drivers/hwtracing/coresight/coresight-etm4x.c | 2 +- .../hwtracing/coresight/coresight-platform.c | 4 ++-- drivers/hwtracing/coresight/coresight-priv.h | 9 ++++++--- drivers/hwtracing/coresight/coresight-tmc.c | 2 +- 10 files changed, 44 insertions(+), 21 deletions(-) base-commit: 8f3d9f354286745c751374f5f1fcafee6b3f3136 -- Sent by a computer, using git, on the internet _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel