From patchwork Tue May 2 04:28:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 678516 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAC94C77B73 for ; Tue, 2 May 2023 04:28:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233289AbjEBE2y (ORCPT ); Tue, 2 May 2023 00:28:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233151AbjEBE2y (ORCPT ); Tue, 2 May 2023 00:28:54 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5F5F273A; Mon, 1 May 2023 21:28:50 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1683001728; bh=qFEajWvVlStRcKllCItBDHDpRzStSprf9+KoOJV74tA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=PM+IzfIt5/Z2JTAhnSub3LQITSndz4ruxbPKfwrIFZ7az2Bp0KLnzt6RLUznuMU7k NlFW+t+LCfEuYJCOo7UdXkNXpPKw9md+feY4pBnwJIo1Za1bFXgk5mYohPVbC0dwQJ I+trX8tC524rxT9j0ImOOsj1KriZNWRIVKp+YrNA= Date: Tue, 02 May 2023 06:28:44 +0200 Subject: [PATCH v2 1/2] HID: lg4ff: explicitly include linux/leds.h MIME-Version: 1.0 Message-Id: <20230212-include-power_supply-leds-v2-1-e9910a3f5837@weissschuh.net> References: <20230212-include-power_supply-leds-v2-0-e9910a3f5837@weissschuh.net> In-Reply-To: <20230212-include-power_supply-leds-v2-0-e9910a3f5837@weissschuh.net> To: Sebastian Reichel , Jiri Kosina , Benjamin Tissoires Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, kernel test robot , =?utf-8?q?T?= =?utf-8?q?homas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1683001727; l=714; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=qFEajWvVlStRcKllCItBDHDpRzStSprf9+KoOJV74tA=; b=YdHBbqFXjpQWMH67rf1otRSXNwuxB4SQ0KuepjxAIZMcH3bNVcaxs2Sg7kLD0ZUEtrDGFsGbX 8nYgxhwkz/RDHA52ziJiCIZ5kCogsQviBCw+UQ/ShkS+Gb+dPxVQ4rJ X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Instead of relying on an accidental, transitive inclusion of linux/leds.h use it directly. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202304301551.baBXvI9d-lkp@intel.com/ Signed-off-by: Thomas Weißschuh --- drivers/hid/hid-lg4ff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index e3fcf1353fb3..d55d04c140b9 100644 --- a/drivers/hid/hid-lg4ff.c +++ b/drivers/hid/hid-lg4ff.c @@ -15,6 +15,7 @@ #include #include #include +#include #include "usbhid/usbhid.h" #include "hid-lg.h" From patchwork Tue May 2 04:28:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 678515 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06230C7EE2A for ; Tue, 2 May 2023 04:28:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233338AbjEBE2z (ORCPT ); Tue, 2 May 2023 00:28:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233235AbjEBE2y (ORCPT ); Tue, 2 May 2023 00:28:54 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CABB130E1; Mon, 1 May 2023 21:28:50 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1683001728; bh=FVAGAMsfB/9ZOt6WpZqigpx8Wc9v/TnjxkE0rIT4oYg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ZLOya9fvHRuaat03BDMkgYsFnOPbirmWjk4hywCGkEwnCc+RmvVn5ituZmP0zvVFP N2dx9gAXShdTnEXRH51uDOhWsYtAr+a0WUJIf6FbkBddShpdbl4dPgcF5QZwaEwS2T D35k0NlIO9Cf3MC+bP2nsGo5BYOylDE5dovvRtSg= Date: Tue, 02 May 2023 06:28:45 +0200 Subject: [PATCH v2 2/2] power: supply: remove unneeded include of linux/leds.h MIME-Version: 1.0 Message-Id: <20230212-include-power_supply-leds-v2-2-e9910a3f5837@weissschuh.net> References: <20230212-include-power_supply-leds-v2-0-e9910a3f5837@weissschuh.net> In-Reply-To: <20230212-include-power_supply-leds-v2-0-e9910a3f5837@weissschuh.net> To: Sebastian Reichel , Jiri Kosina , Benjamin Tissoires Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1683001727; l=808; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=FVAGAMsfB/9ZOt6WpZqigpx8Wc9v/TnjxkE0rIT4oYg=; b=YqdN6JIcUaOMAjZobPUyAAMZ1rz+dTe5E3M8l8cZttXp67ba/cbVYIoo4CbjtZ/UEfrACldSP veABqKbSV+oD9SL95GIGWtGZtxeAxeSJU7bv4SGpdNle6X6qb5Zfdo5 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Instead of including the full linux/leds.h header file a single forward-declaration is enough. Signed-off-by: Thomas Weißschuh Acked-by: Sebastian Reichel --- include/linux/power_supply.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index a427f13c757f..dc5e17e8c919 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -14,10 +14,11 @@ #include #include -#include #include #include +struct led_trigger; + /* * All voltages, currents, charges, energies, time and temperatures in uV, * µA, µAh, µWh, seconds and tenths of degree Celsius unless otherwise