Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp511950lqh; Thu, 28 Mar 2024 08:18:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUYbWGH43DjhmM3ONA8+yDK5jUgaOBVIjFgxqIbABWlC0cSPOwh5SN4b8mRbt2rT4Cpp5glzTeFf5rhdNTAPgCG1E16LGlVjlCO5P8gyA== X-Google-Smtp-Source: AGHT+IH7TUPnCJP2V9XOoHEd+DQH9yLmCIC0TSIdD41I9IASivtfkK2T0zZS9153qqSlf9l6ubek X-Received: by 2002:a50:d743:0:b0:568:9f77:9c0 with SMTP id i3-20020a50d743000000b005689f7709c0mr2600993edj.4.1711639104076; Thu, 28 Mar 2024 08:18:24 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m7-20020a50d7c7000000b00568b5d11acesi858224edj.82.2024.03.28.08.18.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 08:18:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123140-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=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=CpPeGYEF; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-123140-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123140-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 CC1A11F23FD8 for ; Thu, 28 Mar 2024 15:18:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68FAE12F380; Thu, 28 Mar 2024 15:18:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CpPeGYEF" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 F186E7EF03; Thu, 28 Mar 2024 15:18:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711639096; cv=none; b=MoYShkfDThuoIo8c55EcwQ137PSvrxhhH0TTjzNrABtaZFa3jZzFF82Y5r3vd2TK2q5IBFiMCigZXJQDNt8x1QY58pVosrt/9cYcXsbJo1FPbbj7I8GiFVRyD3B/Nid9llqkqj8BxhFm3lHsU/Z0u27tUZFMD56SYcdrPXtnEaI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711639096; c=relaxed/simple; bh=ygUv44C6fCMRIUqPyxznSTwJE2TEnNoEGSK5L1twTvo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UKGUr+8PZLOpWYEfWn9sR+HJyNIf2QekgTQk/4CVuAejRLAnhvVuDL5B1VNg6i+TcnzTN4VpJ8keAEvqJs2O4qxyMFttWmayyp88ici+hZb6/958GmOfu9J28trcuKEqkwpbcZUxRM8rkjPhD163HG4xyicaJEMyRbDuW/BDYKg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=CpPeGYEF; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711639094; x=1743175094; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=ygUv44C6fCMRIUqPyxznSTwJE2TEnNoEGSK5L1twTvo=; b=CpPeGYEFbrVnJGKYUfUX9+mVtyi4UdHCo4oV7xOKJtBGrUGKoGVygXps RDpv6gkON2SzLc8fVOvsnjtP/WJd+b1gyXmj7YCnGg7x5N5LocAJyU7Fq vC+eXJJoiXvXwglFX7QACfkdNuQyCndLbplb7fGpQM/NBPt/PYLconoj7 qExTbH5UPN1Mei+4K86Ul7QAggakQPGkUI9sLtLzRA3B/ipIpGHSPn19o TQRx4WmZEnwyJloHLVm2kQu8MzUrXxwzw0Xh8urDQZ76D5l8lVyGoMJXO pMZXwsxLjwn5NvXi352y3yahIgAWMHPo7iTyOpOmIpCMP0aGuS9zsCe8u A==; X-CSE-ConnectionGUID: xvGgeUjSSmaqfU640ucE4A== X-CSE-MsgGUID: Fv83MgJBSpSwTGvr9/3+uQ== X-IronPort-AV: E=McAfee;i="6600,9927,11027"; a="24284186" X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="24284186" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 08:18:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11027"; a="914953082" X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="914953082" 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; 28 Mar 2024 08:18:11 -0700 Received: from andy by smile with local (Exim 4.97) (envelope-from ) id 1rprW5-0000000H35x-1cSf; Thu, 28 Mar 2024 17:18:09 +0200 Date: Thu, 28 Mar 2024 17:18:09 +0200 From: Andy Shevchenko To: Hans de Goede Cc: =?utf-8?B?6Im+6LaF?= , "ilpo.jarvinen" , linux-kernel , platform-driver-x86 Subject: Re: [PATCH v11] platform/x86: add lenovo wmi camera button driver Message-ID: References: <030beaf8-12e1-400a-b064-f17384e32714@redhat.com> <4b6aa3ef-82f1-43d4-9544-89f591f49e41@redhat.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: <4b6aa3ef-82f1-43d4-9544-89f591f49e41@redhat.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Mar 27, 2024 at 09:03:38PM +0100, Hans de Goede wrote: > On 3/27/24 2:14 PM, Andy Shevchenko wrote: > > On Wed, Mar 27, 2024 at 11:54:55AM +0100, Hans de Goede wrote: > >> On 3/26/24 3:54 AM, 艾超 wrote: .. > >>>>> +config LENOVO_WMI_CAMERA > >>>>> + tristate "Lenovo WMI Camera Button driver" > >>>>> + depends on ACPI_WMI > >>>>> + depends on INPUT > >>> > >>>> No COMPILE_TEST? > >>> > >>> I compile this driver and used Evtest tool to test it on lenovo A70. > > > > What I meant here is to add respective COMPILE_TEST to the dependency(ies). > > Neither include/linux/input.h nor include/linux/wmi.h offer > stubs when disabled so this will not work. Oh, I didn't realize that! > Besides x86 has a lot of compile test coverage in general, > so I don't see much value in adding || COMPILE_TEST to > dependencies. Agree. -- With Best Regards, Andy Shevchenko