Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp16422lqj; Thu, 11 Apr 2024 08:43:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRmBvEUkL+9S1ULBdAWKu5JbeWtgkwCxZmg5HWz0AbHBX5Arhyv93/y8ZHhdkrudsvHK3mJblzAG/IgOcv1kErDQLrkz46eoHQaD1bGA== X-Google-Smtp-Source: AGHT+IG+JiRWzPhjkRhMY38y9CpootZWe5jooGhTnr1NJWKR20uuj/9+s648/N6Bd7Lcu45BW0UG X-Received: by 2002:a05:6512:39d0:b0:516:d08f:f658 with SMTP id k16-20020a05651239d000b00516d08ff658mr117185lfu.37.1712850201973; Thu, 11 Apr 2024 08:43:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712850201; cv=pass; d=google.com; s=arc-20160816; b=NMqTNSc4zWAtSvO/VAT9qTddUgV2Gsfz0TY4clwoq5YCahfofQ5NeL/kQR8Jw9BD5u Un0KqB6h0DjnQLqvdJ0f/UzxrfykvSkbQdCj+imCW9phx8kET/E/sh88ZfsRpSIc1Wcb CCe/Lr5cVAB/JiGvpBtR+w9cD7GQ+k0WRfAhrvUQ+bqUQne/zoAi5MMVKNw7178ePsX6 FSR3K0TcMTdbWszH/JQUAPx6svTlc5xkhLRZnGAalQABpiY6XikI/smfeOdEepabMecj PG3UceorSogsM1l9SxGik+shElNugIh5MgiP/7Eh0Pabo3bG9DnyTDXBSCYvPLZqUBdY SkPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature; bh=I5stNnGELJmWOJecCEzcGXAIvnB39uw2la7j6wV26aM=; fh=Bx9XCDnmbjtXqOg9Kzv5Am+diMxR7i3S2C1DWYLlCqA=; b=R8nEmWEdvshp1/K6CsOb8/YDc/BtwG0KJJ5XXCD2+/7egv8+ApBjOBsIYccKR2CVb5 lEA/AFJEmMo0ZNp7OO8sR/+/La3kHQo8tpj88kbHSn51IeHXX61POsyOyKA6jzl6CRFp FBxKPTtQbEzGCTD50yZrm+1ZpDxM8w2X6xnL25ArD75e70qW8NWIY6kg8/IzBwbFKWlr 8bSf28IcdjNvy/Yq1Y53bciI6lCcZ0Xm2vopHbQwFiB/rtnJYDc1skeYe9Gqdzn42EVo O2/9Hs/z+Ygh+Nkf+6+tEiEZXPn/444rJIsxE9a/DhE2eq2xDEMhL++ot+QzkDulUCpV xVxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BABgEOv2; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-140261-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140261-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l8-20020a1709060e0800b00a51a48614b4si847309eji.426.2024.04.11.08.43.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:43:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140261-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BABgEOv2; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-140261-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140261-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CA1891F2C2ED for ; Thu, 11 Apr 2024 10:36:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B5F114BFA8; Thu, 11 Apr 2024 10:34:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="BABgEOv2" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4574614C591 for ; Thu, 11 Apr 2024 10:34:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712831652; cv=none; b=mDszBcht2BygvTqinVELQ1fQUl0Ox9RN7nl00/up/wdi+tMcooJ/Y0GVEPlAAQRBRXSkUO01AZ6AUsDEZely+b37yRHwVE8XbxIqfEvOHmIbOLo8SPH4rUtSF+GIiWTqjf13i3VuAu9bOV3eusL5DjMNNZw7iA2/6s1SsXCEjJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712831652; c=relaxed/simple; bh=ebVF2ZciJkJmRePFWK6ngOAeaEJihaFUUs75GT3EkW8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rnQl2QLbE3CG4sgFv/oTqQiXA3/NdiBFkW9M5uOBTI5Xb4ArjVQQZ3aj7ED1le6qJc06QzBVCUJV+JzqUSvkbUcT8TM7wC5AeIZNj43Urpwpsl3bHLljdFILstkE0VY1n3nMXldZ0zpYJs9QbMkT5kjon+W7eQ5K8K/IrPc1v54= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=BABgEOv2; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712831651; x=1744367651; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=ebVF2ZciJkJmRePFWK6ngOAeaEJihaFUUs75GT3EkW8=; b=BABgEOv2pSO+cxvUE0rOa1o8uqXEb4QAiVLYn6lxbSBnmrOsdTrC+Was uLsqYMZgZPXk2P6jj/ksRe7mcb8NJGWnKvudGZSPwjWRJ0qfIei70ZsB5 K+YhqRoMx2L3qt03tSvQpijD5nWYPaWPMesqZpE4cwFlPXk11lP2AgBV7 4VYoqTt4y2n9IyM1i5BwxjKJbVSQuUwluAuP5F9hpxbHtP+Nq33XtAhDt P7W0hd1DsJ21X15T5/JoHypAuodi++AFWQia8VEqThZKuMmWsNtVu5YXa FbsZyYnQ6Y1ZUoM5kwwpkR4kW8wy7FAdYYpEk/ZRPJSbPjVFa5e1ZnPBL w==; X-CSE-ConnectionGUID: twOMlH6hSoymHgOnUmYFqw== X-CSE-MsgGUID: aeMMv82PSkaI2E/4KRhqvQ== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="8453597" X-IronPort-AV: E=Sophos;i="6.07,193,1708416000"; d="scan'208";a="8453597" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2024 03:34:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="915459789" X-IronPort-AV: E=Sophos;i="6.07,193,1708416000"; d="scan'208";a="915459789" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2024 03:34:09 -0700 Received: from andy by smile with local (Exim 4.97) (envelope-from ) id 1rurkt-00000003K4C-36mp; Thu, 11 Apr 2024 13:34:07 +0300 Date: Thu, 11 Apr 2024 13:34:07 +0300 From: Andy Shevchenko To: Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/1] auxdisplay: charlcd: Don't rebuild when CONFIG_PANEL_BOOT_MESSAGE=y Message-ID: References: <20240409173921.1080616-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Apr 11, 2024 at 09:43:48AM +0200, Geert Uytterhoeven wrote: > On Tue, Apr 9, 2024 at 7:39 PM Andy Shevchenko > wrote: > > When CONFIG_PANEL_BOOT_MESSAGE=y the module still includes > > the generated header and gets rebuilt even if it doesn't use > > anything from that header. Include generated header conditionally > > to avoid unnecessary rebuilds. > > > > Signed-off-by: Andy Shevchenko > > Thanks for your patch! > > > --- a/drivers/auxdisplay/charlcd.c > > +++ b/drivers/auxdisplay/charlcd.c > > @@ -17,7 +17,9 @@ > > #include > > #include > > > > +#ifndef CONFIG_PANEL_BOOT_MESSAGE > > #include > > +#endif > > Perhaps move the existing "#ifdef CONFIG_PANEL_BOOT_MESSAGE"-block > up, and move the #include inside the #else branch? I was thinking about it, but decided to group headers together. > > #include "charlcd.h" > > Regardless > Reviewed-by: Geert Uytterhoeven Pushed to my review and testing queue, thanks! -- With Best Regards, Andy Shevchenko