Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1564567pxu; Fri, 27 Nov 2020 09:56:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZNIn15NdkFeV30WnkjJN5PCn3I03fQyoa282upnuVfSEFfqxCAfmlJay2Xdx5Wxtbrjnh X-Received: by 2002:a17:906:ccd3:: with SMTP id ot19mr9274613ejb.44.1606499764892; Fri, 27 Nov 2020 09:56:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606499764; cv=none; d=google.com; s=arc-20160816; b=cTREmi6bGlf9bPOwkA/x3rsLL841MxnRyJdJCrJft4ePYtTpfzCNn2KOdvB1ZeeXzu UtXACxKX3/4LgVDUJSiLKOzf6VhYPuCuiruBUrDegweKQrJ1ou0UvY2igkVVDaydZacT vFZ3Yg7m4gW+jSOUzVkGMirRhYjvGvnNIdzJ4Im2aZhMbg+izX5nl+cr+vUyEUUnoDBH gzXCwSFlDwgNxBurKWD6wnmByCo7sBov4QXrGhlCs4ShXe5qZQ5tSoNu7jjGI6gB4YvK AGCCjVkmEDBqOCiiMeMdOQu9CZWgglcRDTWsRxmT4U2354dZqILM0PIN6lfUWgxhK6v2 /DgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lzkQ7KjTmf9uNjmH2W4CF/NveH5gwN6iZCEtNMeWTEE=; b=QoQbIiQjS3efCBZvUy/1TMyhD/vfzKDoRjmN2HRjGOn/1gUnNJbFzqIK9b8QAdZuq5 szI9T9C3KZEt4oST/IdnnXLBBf5XnuXNp1WUe/kq1Kxa4j22cQosGmiCIm1no/x1recO 6tXca5tqgxNn5pMODSlGlS8NxSMYA/skucZeKuYd9Jp7hyNEzFNdoRZ1h20PcDj8jkGb qWiuldfULxL3Bbm4ak8Nx6cSSlwcGnd1C/bSybNcHavDHRPXT2PPzCeMBZ4Izf4xw+wY 4y3BAu07sVBi+sHMEl3BWpRN+wNbuUiacXofAKKIUlI+B4iP/xxoP+KKYWmAKjxPqZns okvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZOmulhzG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si6416066ejd.397.2020.11.27.09.55.43; Fri, 27 Nov 2020 09:56:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZOmulhzG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732698AbgK0RxM (ORCPT + 99 others); Fri, 27 Nov 2020 12:53:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732686AbgK0RxL (ORCPT ); Fri, 27 Nov 2020 12:53:11 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CAF4C0613D1 for ; Fri, 27 Nov 2020 09:53:11 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id s63so4866976pgc.8 for ; Fri, 27 Nov 2020 09:53:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lzkQ7KjTmf9uNjmH2W4CF/NveH5gwN6iZCEtNMeWTEE=; b=ZOmulhzGbIEbaEmzl2irtH/N1ShGxJL6T5d8r+SvnP3WTI4N+cI5F+0A9PEDqjtx7t 2kXl2GDgWHS0Tk20x9uW8JDnWL+ubIUpAZr6BV1VKPGld/kpNKAmrIvByiMgyZnKHlBi S6oE/xDmM4Q74j+Pr0dvqUap828I6Uh8xGm1vHecXszKtvCqXhfKfPX+tB37XQea5LcJ LDKrdqULkZcLm7LUcEA3ygWi52eynYnPJIt9/xMj/IJPbxOY2RENnJF1B+7ufYzT2noV FkBGqZJnC1z8TJC2XstrrZLiRige8wmvaOuKkaATSu25JjFHWwrAO7YqkJQy3PmsK27t ynKA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=lzkQ7KjTmf9uNjmH2W4CF/NveH5gwN6iZCEtNMeWTEE=; b=IEs0yjfBdAGGxM907/vysSWwKKocL1ZgH0UNBKbtW1PphLGjBFvB3snEMdLYcWNaJ7 pRwyd8YRYTR1IKPsf6XHW2VhLFai6RX3OwwMYx74L3Fr4UM/pEUz7FvRMd95sye0oG7L 0eElb3X/c0pZz998DBsdisnNVIccjf5Ou2uEKzPPvvAVsjWuM2EbS1eQTvDRagtpeI9h tt3odH6MB83s+zA1JoUgC15eYlmQN1o+6z/3tfdoReOXRcsx4zha3Yv8dTWU2Tcdy5ut kmJ8YF6+MoNlWJ3zjCOT7oFdVoqxK9A69mfsEk/HTtIS1l+e0hTes8X6q9Ej9Bh9rf2j H9Ug== X-Gm-Message-State: AOAM530xbmDR75UXdDybnlHxd0+lCRj2cSAasISJmueMiQYIjiEUN9nX ZYinRRCBjlUCffHf6Ju7oZLgrg== X-Received: by 2002:a17:90a:4408:: with SMTP id s8mr11691745pjg.69.1606499591039; Fri, 27 Nov 2020 09:53:11 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id t18sm10536724pji.1.2020.11.27.09.53.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2020 09:53:10 -0800 (PST) From: Mathieu Poirier To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 13/15] coresight: Fix W=1 warnings in core framework Date: Fri, 27 Nov 2020 10:52:54 -0700 Message-Id: <20201127175256.1092685-14-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201127175256.1092685-1-mathieu.poirier@linaro.org> References: <20201127175256.1092685-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC drivers/hwtracing/coresight/coresight-etm4x-sysfs.o CC drivers/hwtracing/coresight/coresight-stm.o drivers/hwtracing/coresight/coresight-core.c:440: warning: Function parameter or member 'csdev' not described in 'coresight_disable_source' drivers/hwtracing/coresight/coresight-core.c:670: warning: Function parameter or member 'csdev' not described in 'coresight_get_ref' drivers/hwtracing/coresight/coresight-core.c:687: warning: Function parameter or member 'csdev' not described in 'coresight_put_ref' drivers/hwtracing/coresight/coresight-core.c:758: warning: Function parameter or member 'sink' not described in '_coresight_build_path' CC drivers/hwtracing/coresight/coresight-cpu-debug.o CC drivers/hwtracing/coresight/coresight-catu.o Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-core.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c index 29c83eac3106..4ba801dffcb7 100644 --- a/drivers/hwtracing/coresight/coresight-core.c +++ b/drivers/hwtracing/coresight/coresight-core.c @@ -432,7 +432,7 @@ static int coresight_enable_source(struct coresight_device *csdev, u32 mode) * coresight_disable_source - Drop the reference count by 1 and disable * the device if there are no users left. * - * @csdev - The coresight device to disable + * @csdev: The coresight device to disable * * Returns true if the device has been disabled. */ @@ -663,6 +663,9 @@ struct coresight_device *coresight_get_sink_by_id(u32 id) /** * coresight_get_ref- Helper function to increase reference count to module * and device. + * + * @csdev: The coresight device to get a reference on. + * * Return true in successful case and power up the device. * Return false when failed to get reference of module. */ @@ -682,6 +685,8 @@ static inline bool coresight_get_ref(struct coresight_device *csdev) /** * coresight_put_ref- Helper function to decrease reference count to module * and device. Power off the device. + * + * @csdev: The coresight device to decrement a reference from. */ static inline void coresight_put_ref(struct coresight_device *csdev) { @@ -744,6 +749,7 @@ static void coresight_drop_device(struct coresight_device *csdev) /** * _coresight_build_path - recursively build a path from a @csdev to a sink. * @csdev: The device to start from. + * @sink: The final sink we want in this path. * @path: The list to add devices to. * * The tree of Coresight device is traversed until an activated sink is -- 2.25.1