Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp369705lqb; Thu, 29 Feb 2024 03:37:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVNGDgnxyjOphFnvxZp+NfYzTwIJHaa4NjxKzA2Y9psp0L+LK/zh7BjBeT7fSbq6G83C2IwyeIWSDgagFSnScY8F5Xs9CF3W9l8OoeN7Q== X-Google-Smtp-Source: AGHT+IFpKHwNRocqpEDIO3HW2Y6EJTGhKnTYb+CzcLvh+ZtoPyM1h/df2PUuKeQfptcp85Z/yDv+ X-Received: by 2002:a17:906:ca49:b0:a44:1be1:66f0 with SMTP id jx9-20020a170906ca4900b00a441be166f0mr1223530ejb.57.1709206667789; Thu, 29 Feb 2024 03:37:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709206667; cv=pass; d=google.com; s=arc-20160816; b=Wypux19dHmd6P7e2C5Lqb7qA+Z5g1M16Wl8ucbb+82Y1Ab7weWWGgcLy2kNtIu52+d cOuwTg8jK8gTjLRPMJlCTfOabe89pc2qy4kiSxq8n5pFBJZTalcKdRhk0anh2DyGz/B3 xbmLt7wrSY5AbeJAiXC0s1SioAbwCPLGeHG55y3GckbiGfhUhWzcKMJipdvvYlHpd0+4 Kn/dWLtwDeg2LMeaEXmcRVGvqewi/uPS7SsqeypIXqwxiP6hFWeXULOocJlzBWY8SNLw yzuZAy3jTxmVIoeFyws+Hq2rFvGiiM+s+5OmvJarei0aXml+h0Xz2PzUZq3InKogMXZf 7UNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:date:from :dkim-signature; bh=qbFQAFL+oR55n0Ux/o6/VssG3m0TbjSO2f2s6prtmsw=; fh=irHKRCdzXRSOGVPVKFWMbfkx6C/Us9Tbao0l53ZUcmk=; b=ZboVaBL5OmN06VPGSnnHKTUtxrsghkifSu41WM6z0C4ySPzr+KCNVN7NdBau0ZphLl xnTVm0TtoukVAWZWt8POzcl43IsSDAniA+BVbxQXal8/gQX8MA+c3E7l57NC+3KgxqgG EMJz4A7Jy9zSBR9zV3K0b7lGMGCO4Au4oPI7jf2ByQjB4Mg4HMgRVIYohcDfSuQmeR9b JMOlYnMf8ntA+xQdbPJDulkGt8xebEF25xkKJgNZsoKoAmoTYyN8+6TJPwPUF7XybPCJ OHWTy7dVA/5hIIhJopOCb2lmhu/zAdf2tlqvor5uWHMzhIb133sbtuTveMqIrD3Xoo1u OSjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c442Ll3h; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-86638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86638-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. [147.75.80.249]) by mx.google.com with ESMTPS id ay15-20020a170906d28f00b00a443da22497si467991ejb.147.2024.02.29.03.37.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 03:37:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c442Ll3h; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-86638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86638-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 8520E1F254A4 for ; Thu, 29 Feb 2024 11:37:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C4757C0AD; Thu, 29 Feb 2024 11:37:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="c442Ll3h" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 D6E967AE42; Thu, 29 Feb 2024 11:37:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709206658; cv=none; b=DUt/KnXR6VuMfFkQn86pXvEKbnhBDKSH/xHhtiFSB54ZlD9bGPt2nRao0JMQSJUb+1OyG0YMq0kXAo9Q4TCvn9STxNXx7lFefd0cDEETSleUy2QS+h1O/RVfB5ZI7ys2E3dQ2TpGtXYSRw/OpMCqEOcnMlhMzPcIEOfH6C0piV8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709206658; c=relaxed/simple; bh=B/wC9Nv9xuurKleWZRbMqkITXw/FjjRt0kr5rzQsZ7U=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=EMvZzPDprCooGHBgg2r3x7TXvjIxzmFT75v1woVhMJSI1VKACc5zpYb4F/e6yvRKJf2CmATRxP6vgxSmswVJa8KdRxMfkKfRIjbGTEhwitJE/6xU5XeobfZJWaPIam3rRBsCBnNCR50vE2UqpGUbmBHx1q7ODKwnqekkOGIRoqY= 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=c442Ll3h; arc=none smtp.client-ip=198.175.65.15 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=1709206657; x=1740742657; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=B/wC9Nv9xuurKleWZRbMqkITXw/FjjRt0kr5rzQsZ7U=; b=c442Ll3h3EkkxxtYAmeVTuBnxkbGNrQyimhq5XEMd4YuSp136O9gLY+t emN/1AU992VSuIZu11KDy97SNvZrFNrHVB0gA8gBIdvV2p83CE0woqMn/ PeAEFayVO4bKKge0fPUtT0fUlXYNcr/IxQi9r74HhUnnbPUTW9z3vHo0n PewjlC5Lq5hCEszxotprvmwaNQE6EMKs0IivZXNfFz2VcNIBC5wGydBS+ crq3/IEmP15akE1hm48MW9VaTqDvyFPwCZEBPLZq5o7yqjMutuiDgwc1t lol6cnJgKSqYshMmxVKtraXF0GWgCOSacrpi3tu3+5fV+Bx75W+OiBrJd A==; X-IronPort-AV: E=McAfee;i="6600,9927,10998"; a="7497940" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="7497940" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 03:37:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="7752014" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.51.250]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 03:37:33 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Thu, 29 Feb 2024 13:37:28 +0200 (EET) To: Arnd Bergmann cc: Hans de Goede , Szilard Fabian , Jonathan Woithe , Arnd Bergmann , Andy Shevchenko , platform-driver-x86@vger.kernel.org, LKML Subject: Re: [PATCH] platform/x86/fujitsu-laptop: add ACPI_BATTERY dependency In-Reply-To: <20240228094010.2254245-1-arnd@kernel.org> Message-ID: <6cc402a3-0e6d-f784-b14b-09f4db60eaf2@linux.intel.com> References: <20240228094010.2254245-1-arnd@kernel.org> 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=US-ASCII On Wed, 28 Feb 2024, Arnd Bergmann wrote: > From: Arnd Bergmann > > The dependency is required to avoid a link failure after support for > battery hooks was added: > > ld.lld: error: undefined symbol: battery_hook_unregister > >>> referenced by fujitsu-laptop.c > >>> drivers/platform/x86/fujitsu-laptop.o:(acpi_fujitsu_laptop_remove) in archive vmlinux.a > > Fixes: 611d56d76dee ("platform/x86/fujitsu-laptop: Add battery charge control support") > Signed-off-by: Arnd Bergmann > --- > drivers/platform/x86/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig > index 6dbd40e2aeda..d9851b79bfe5 100644 > --- a/drivers/platform/x86/Kconfig > +++ b/drivers/platform/x86/Kconfig > @@ -371,6 +371,7 @@ config FUJITSU_LAPTOP > depends on INPUT > depends on BACKLIGHT_CLASS_DEVICE > depends on ACPI_VIDEO || ACPI_VIDEO = n > + depends on ACPI_BATTERY > select INPUT_SPARSEKMAP > select NEW_LEDS > select LEDS_CLASS Thanks. We already fixed this in the originating commit (and now the fixed version of the commit has also propaged to the for-next branch). -- i.