Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2474259rdg; Mon, 14 Aug 2023 03:58:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPMHgg2RsVNbo+9kMFJNtIrqIoUe64vo1yJQP2W64MaTKJbIcFOE6ZucyHe0e3lB/wWsyE X-Received: by 2002:ac2:42cf:0:b0:4f8:6d54:72fb with SMTP id n15-20020ac242cf000000b004f86d5472fbmr4813886lfl.62.1692010695437; Mon, 14 Aug 2023 03:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692010695; cv=none; d=google.com; s=arc-20160816; b=RvNySHRiUjYq/oo7Cb7wM99XmufhQR2raumrZyR4h//g0atA0QF05iZDLP5eRWG8Xr awAnHR0rH9o/tD45CQwASd93xQUUol6dT5FKPazYKP3htRGH94urTRY7Q975DbGAzeLY 4iXIM1mmtOjwLAiTH60suDWSmy8zkE/UnnFFXBzmGX9vXZj6LnufE6A9gPqVVZO8S9VO CllFc43YiYLfWZfI3nwXwXgqckjQMISKeft/Aix8vQIWY1pxjxxWLfzdfWpOs3cA1HqR hFoI2zPABwZR3r/9+nTPBl7FnXPTPbGAs19PTH+60/mP0EXZYS+EqY8g8EEhJIhPiO27 ulXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+FBhsj1NEHZh40veVLb6FpBaS4vsDDs+BM7lRp95dkM=; fh=EwB+EYPNY3Y0yIiiHDoY9VcEWCZik+Y84UbeBiPCGsU=; b=R28oJrPjvPdTNa5cpX4WO7wDDG0goq2vKMOqnHMTt6bcSwjP4wyn6do/1fFGN7mzWv kM4m4ou1Zt4dMAtrpQmZm7eIfMF4c/KKMynDq3tyHvIrfEzQQ1S3zjvESBD0ELLvIicp iDO4Dep4tGnUM7uxGxraIbQ6UBrsPWmNNHmvvqmcT623DjHSua7DZk4mQWxQB+C90E2v +KZMbKz3O8T7KvOeWwaMXJ6uJ6ss03c5gDtTRGA+fl7h+NkFhZFFUpVYI8iLOQxnDuWi 7ZYoOfpkVp3dbZZRVHLb/RR4Q4S/aW4u7IHO97Rb4JML30oXdLLOiq7fzSQVHg0zhnA0 ATPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=ReoRUyS+; 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=163.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020a1709064e4500b00993178445a0si7713279ejw.310.2023.08.14.03.57.50; Mon, 14 Aug 2023 03:58:15 -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=@163.com header.s=s110527 header.b=ReoRUyS+; 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=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236084AbjHNJ2s (ORCPT + 99 others); Mon, 14 Aug 2023 05:28:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236413AbjHNJ2Z (ORCPT ); Mon, 14 Aug 2023 05:28:25 -0400 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.216]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7A3EC113; Mon, 14 Aug 2023 02:28:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Message-ID:Date:MIME-Version:Subject:From: Content-Type; bh=+FBhsj1NEHZh40veVLb6FpBaS4vsDDs+BM7lRp95dkM=; b=ReoRUyS+ApQYxrmE++ke8YAlfcNoXzoAtlUun+V75zLAAkF0lShGbLh7ccXwog un5m0zuHSHIjI+EdfPm8fhytp6g1K0wXQHm6QLBRyNuHfG5U8HrKh0Rfk79HIc/L INuQpEcTNXVEb65Rgulcp0LumTMrIACE2ZOcVGrgBNfkY= Received: from [172.20.10.2] (unknown [39.144.139.60]) by zwqz-smtp-mta-g0-4 (Coremail) with SMTP id _____wB3egis6NlkQ7KZDA--.24646S3; Mon, 14 Aug 2023 16:41:18 +0800 (CST) Message-ID: Date: Mon, 14 Aug 2023 16:27:37 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] watchdog: simatic: add PCI dependency Content-Language: en-US To: Arnd Bergmann , Wim Van Sebroeck , Guenter Roeck , Hans de Goede Cc: Arnd Bergmann , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, "Haeussler, Gerd" , "Schaffner, Tobias" , "Wu, Xing Tong" References: <20230814073924.1066390-1-arnd@kernel.org> From: "xingtong.wu" In-Reply-To: <20230814073924.1066390-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CM-TRANSID: _____wB3egis6NlkQ7KZDA--.24646S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7ZF17Xr1kCry5Jw4Utr4rAFb_yoW8CFW5pa 93tF10kw1UJr4UtF13A34xWFy5Z3Z3JFW3JF15C3s8ua909r18KF97tr98W3yDAwsrCr17 KayrWry7Wa1DurUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UaYLPUUUUU= X-Originating-IP: [39.144.139.60] X-CM-SenderInfo: p0lqw35rqjs4rx6rljoofrz/1tbiTBXL0GI0adrZ7AAAsS X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L4, SPF_HELO_NONE,SPF_PASS 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 Hi On 2023/8/14 15:38, Arnd Bergmann wrote: > From: Arnd Bergmann > > The simatic-ipc driver no longer depends on PCI, but its watchdog portion > still needs it, otherwise P2SB runs into a build failure: If the simatic-ipc driver no longer depends on PCI, you can delete the dependency here: https://elixir.bootlin.com/linux/v6.5-rc6/source/drivers/platform/x86/Kconfig#L1079 > > WARNING: unmet direct dependencies detected for P2SB > Depends on [n]: PCI [=n] && X86 [=y] > Selected by [m]: > - SIEMENS_SIMATIC_IPC_WDT [=m] && WATCHDOG [=y] && SIEMENS_SIMATIC_IPC [=y] > > drivers/platform/x86/p2sb.c:121:3: error: call to undeclared function 'pci_bus_write_config_dword'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > pci_bus_write_config_dword(bus, devfn_p2sb, P2SBC, 0); > > Add back the minimum dependendency to make it build in random configurations > again. > > Fixes: b72da71ce24b0 ("platform/x86: simatic-ipc: drop PCI runtime depends and header") > Signed-off-by: Arnd Bergmann > --- > drivers/watchdog/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > index 04e9b40cf7d53..09452384221a4 100644 > --- a/drivers/watchdog/Kconfig > +++ b/drivers/watchdog/Kconfig > @@ -1680,7 +1680,7 @@ config NIC7018_WDT > > config SIEMENS_SIMATIC_IPC_WDT > tristate "Siemens Simatic IPC Watchdog" > - depends on SIEMENS_SIMATIC_IPC > + depends on SIEMENS_SIMATIC_IPC && PCI The SIEMENS_SIMATIC_IPC_WDT does not depends on PCI directly, it should depends on P2SB, then P2SB depends on PCI > default y > select WATCHDOG_CORE > select P2SB You can replace the "select" to "depends on" instead. Reviewed-by: Xing Tong Wu -- Xing Tong