Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5559710rwr; Mon, 24 Apr 2023 06:08:07 -0700 (PDT) X-Google-Smtp-Source: AKy350YijKYIUhI2u5cEjL4kq/f9Su1pK3LVnYtIltSmndVJV+l/IMTJX5eHWLYpskvl4tJQGXsM X-Received: by 2002:a92:dcd1:0:b0:32b:46b4:62 with SMTP id b17-20020a92dcd1000000b0032b46b40062mr6684743ilr.6.1682341686787; Mon, 24 Apr 2023 06:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682341686; cv=none; d=google.com; s=arc-20160816; b=dq+jUdaA3c88mtdqHrACDQd9rRyyXfYaR2+oiaRzicTRwK88pRZN7w2M2iuweTHcP4 9wkfzxFbK9qDlYZqC5rcH8kivgcwUx45MrpeIMyzWYCS7os37M3Pd997Ssdftp1vw53n 3eQ/3j4IjXMuS1RJLcYGLZjY2mq4HUpwGMtbIqwly0EaQAcbqwQ+G1jGzlhcBC/l7ijJ fwNLaS/TNei5C8OiEdJNW402zbxr/VQGNb8wrPVn2fJ0SK2+yXv1uo0rVGZ1edoBOZEh T4PdQe2m8kAtQXYLIIwnsAzKPqp8My4H/M3ViFfWW7QLRA5enqCpqaKJtfIXF45Ikctd TwgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wRpfzvZuf+ERYPs8bPWX+5wmA6v7WLAybsWcnHxBxQs=; b=Ka7V4kBooBiMSJjLomIbVUtVTxNJwY+GB0M0sl8vqzT1e/IiT3FenhNOC+/4YC1dvb X5vRyClG46ETG5jbDkWicI5lDDjacmhU4/0GZs9JA1rzMua8f7VPGfPG8/FxmwGXb8Jg xATONf6PIzZ95adwu3xaIcc9CudhjpWws2TopvcnT+TnP9qRS2BbP6RiYPlZ8vzXzoVf dCLJbmStBeLIBsj2YnlmtXgMaPq8TZe1l/Df7koilm0Ne0E5f3CYhKYLUbWdhfnyrOha JfmwtDnYLzpjmimIU4TeF8OS/NIwyXYDIVgudlhY0Fa0n4PSNDC5rMqdkeaWooyV0W13 YbNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GklAjTPz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020a056e0208e600b0032e5c8239c9si2420954ilt.192.2023.04.24.06.07.42; Mon, 24 Apr 2023 06:08:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GklAjTPz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230454AbjDXNFV (ORCPT + 99 others); Mon, 24 Apr 2023 09:05:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231214AbjDXNFT (ORCPT ); Mon, 24 Apr 2023 09:05:19 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E483E3C0F; Mon, 24 Apr 2023 06:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682341519; x=1713877519; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=XYOGH4XAmoo3Gyc8RQbwimLR7yjg6nALj5ZROFhLSYY=; b=GklAjTPzB+19/yi7HJUk9NDM4LayfVHBKpMFPkowy+VN+qZsd9jx0R00 QMidf3opoQQLueS2tu1U1iDEeKhpcZlduSqRD/EwsaHYBEnXjnG1Av6A7 M0E3Mz6jNKA0or6Ocwmgu/0TUVQdL0hQlvTYRekt+htq7QOHCIlMWIVia lpthkOM9fruwn6/GIo1Z8k8gyiJtG9L6u8EMTbH7vcMoGrGYO7KrH6M1Y OZVgEtaogjC7Kf7SzNa4BoSkysfsLKyhoblZ0vFk/vRGQjonKNaKo0M9A OJvpAYUy2mprnI99dRU7pKyjeKZO6quxUqslPKi9CHqtxN13DiSoWE1b4 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10690"; a="432719557" X-IronPort-AV: E=Sophos;i="5.99,222,1677571200"; d="scan'208";a="432719557" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2023 06:04:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10690"; a="836959746" X-IronPort-AV: E=Sophos;i="5.99,222,1677571200"; d="scan'208";a="836959746" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 24 Apr 2023 06:04:41 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 24 Apr 2023 16:04:40 +0300 Date: Mon, 24 Apr 2023 16:04:40 +0300 From: Heikki Krogerus To: Christophe JAILLET Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH] usb: typec: mux: Remove some unneeded includes Message-ID: References: <1db1e8bd253cbb652835c0cef6a0a2bb9a4970eb.1682325582.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1db1e8bd253cbb652835c0cef6a0a2bb9a4970eb.1682325582.git.christophe.jaillet@wanadoo.fr> X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Mon, Apr 24, 2023 at 10:39:56AM +0200, Christophe JAILLET wrote: > This driver includes many header files that are unneeded. > Remove them and add where devm_kzalloc() is defined. > > Signed-off-by: Christophe JAILLET Reviewed-by: Heikki Krogerus > --- > Based on one of my script, this reduces the number of included files > during the build process of this file from 551 to 345. > --- > drivers/usb/typec/mux/gpio-sbu-mux.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/usb/typec/mux/gpio-sbu-mux.c b/drivers/usb/typec/mux/gpio-sbu-mux.c > index f62516dafe8f..c07856069d43 100644 > --- a/drivers/usb/typec/mux/gpio-sbu-mux.c > +++ b/drivers/usb/typec/mux/gpio-sbu-mux.c > @@ -3,14 +3,11 @@ > * Copyright (C) 2022 Linaro Ltd. > */ > > -#include > -#include > -#include > +#include > #include > #include > #include > #include > -#include > #include > #include > > -- > 2.34.1 -- heikki