Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1689186pxb; Wed, 9 Feb 2022 02:15:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTs5MqEnDeMZ2BsFyZfBXZaGXAmUh+rQCsbu/pps1CS5z/olTrTYK4zRSw4iTdsv5zCNWV X-Received: by 2002:a65:681a:: with SMTP id l26mr1283941pgt.365.1644401718391; Wed, 09 Feb 2022 02:15:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644401718; cv=none; d=google.com; s=arc-20160816; b=ndyLBbvRfQFpOvKN6+XFlL/x/MzoqnU6bl9M7RVp3xZKfW483wYpQfqW+HeGcD/6rQ aj6beNkx2wOr6VS0cEh/vvVfhyJAZVGfdm3QFTED7qrl1THQrwgnzFQofyrgwukOrscA M5vBByTtnsHXbPKpW+PslniZXhGcXxNhH7kmIHGVZrUZDMzmcIOy0Hm9L4PZQWNm8cgx rhugGtUQ5YbMRkCQ4OOnt0jhD2f1+SU4fBSxl3ILY/Eg/1LLn7rNO83B5xpjtU7wqMAK db+kyBwCQW9ZMEO4yaCmGteEJoyLaegS9Eouu97ZS54SVzLBY/At+bBTpC5fk9zthbhW E9QA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=hTykVzPKVgHuW397uKqX9EIutlRcnycfstsSK30Y1T8=; b=G5vfimV+iz4eaCifZQe64j1Yksfbof+30alMujESKoaD22NkYnJQCGk2alZZAKiFUJ fYTaYxV9ROh7iBg+vhotXEv9gfuINCPIPUmRm9gzREBZIZkVe013WlDChn0OVi2Md6pT wp//XijrAaXHstTiik+Xw5dMrAvWKGjfYAqQJY7VG5h1CDrDWM9N7z0sStAEqTKYjd1L ZTXSQI1uxYOIbUpgpHJXX/smAWqGjV8xHT/DqPgNkEPIpe0DI88pNyGmLsZe1w4uaxZ0 CWHqpnpcwuQT4ckbZ+2DiKSvu3kjd+AsKW/8ExzKGt0tp5Ic3VHlOazS2iWo6pInc36M 2zdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=inbf3l7d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bd9si14363075plb.486.2022.02.09.02.15.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:15:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=inbf3l7d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 36952C094CA9; Wed, 9 Feb 2022 01:16:42 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382441AbiBGQoE (ORCPT + 99 others); Mon, 7 Feb 2022 11:44:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229852AbiBGQis (ORCPT ); Mon, 7 Feb 2022 11:38:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D129C0401CE; Mon, 7 Feb 2022 08:38:46 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 968D260FA0; Mon, 7 Feb 2022 16:38:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 379AEC004E1; Mon, 7 Feb 2022 16:38:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644251926; bh=d1P7xXA0sn7Ib/qlqtAf54sGUHU/Uu61l57wjUHrrsU=; h=From:To:Cc:Subject:Date:From; b=inbf3l7d4gkyu8w5vIZ7z24auQUKHzTjjg49M4baRxTUm2Iov61sRatRv0WoV0BUT Y3SdKlGn4iY26AGSoEXmDOKrF6dInPNWkLzU6/4pFGlgnYAd4wPx3T/w5iO5MkZ3l+ gGWroPswyhZ6FptlIzI/B5D0W2ozDX7dw9j3jNFPBnNsZk3LvMSaj0Xrachd+7uJDz ImUqk3nl242sV7Yh3KXsxMaVrPxxh+RN10tfCH7O2NlPctIv0Ow8epTzdWw84WSe2o b30JZKMw81dGBSK8PlScZHcHZqJnKML15mNoc6Bq4K84cfYx6YS7wAbrkN7QTGH5OY 18p+T7G2kiB4A== From: Nathan Chancellor To: "Rafael J. Wysocki" , Daniel Lezcano Cc: Amit Kucheria , Zhang Rui , Srinivas Pandruvada , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor , Stephen Rothwell Subject: [PATCH] thermal: netlink: Fix parameter type of thermal_genl_cpu_capability_event() stub Date: Mon, 7 Feb 2022 09:38:29 -0700 Message-Id: <20220207163829.1025904-1-nathan@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building with CONFIG_THERMAL_NETLINK=n, there is a spew of warnings along the lines of: In file included from drivers/thermal/thermal_core.c:27: In file included from drivers/thermal/thermal_core.h:15: drivers/thermal/thermal_netlink.h:113:71: warning: declaration of 'struct cpu_capability' will not be visible outside of this function [-Wvisibility] static inline int thermal_genl_cpu_capability_event(int count, struct cpu_capability *caps) ^ 1 warning generated. 'struct cpu_capability' is not forward declared anywhere in the header. As it turns out, this should really be 'struct thermal_genl_cpu_caps', which silences the warning and makes the parameter types of the stub match the full function. Fixes: e4b1eb24ce5a ("thermal: netlink: Add a new event to notify CPU capabilities change") Reported-by: Stephen Rothwell Signed-off-by: Nathan Chancellor --- drivers/thermal/thermal_netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_netlink.h b/drivers/thermal/thermal_netlink.h index 04d1adbbc012..1052f523188d 100644 --- a/drivers/thermal/thermal_netlink.h +++ b/drivers/thermal/thermal_netlink.h @@ -110,7 +110,7 @@ static inline int thermal_genl_sampling_temp(int id, int temp) return 0; } -static inline int thermal_genl_cpu_capability_event(int count, struct cpu_capability *caps) +static inline int thermal_genl_cpu_capability_event(int count, struct thermal_genl_cpu_caps *caps) { return 0; } base-commit: 08615cb8c0e1deeca5489d672213fb205fa53c3b -- 2.35.1