Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2584069rdg; Mon, 14 Aug 2023 07:13:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9v2qpCjzjbMn/GVi6D6w9m3nJ+dYmTHN2mqu4J9R6VPvUzo6RFLEPtZBSxb93D9qZoPs/ X-Received: by 2002:a17:90a:1b22:b0:263:4815:cb9a with SMTP id q31-20020a17090a1b2200b002634815cb9amr8687553pjq.41.1692022394505; Mon, 14 Aug 2023 07:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692022394; cv=none; d=google.com; s=arc-20160816; b=PN46Z6tyuI0iIOwwoGZtHOO8qWNqAw0GHIOginkN2QZgYfXLmesDw4PerbsedZ3K7F Le8Tz5azFXPzOgL59+97WvqLBQxlRoFO7fnVJpwhsPFE5MPxIHOkm6hlKq4nXGsKWz+P d3U1O17aBsLgj9Q4ieReCqGnWMFgqGjiIHfJqg3gdXjtirUIL7+CJTCf7+oBVNzBWs4L p5ycv9krqDeZy70LYbY9oVsRL1rRPZGXW/rxYhrIX+V65QEUmN6KMH3T/9hWIF3slaBW cr1LH1wgJrl3e541XZacd5dFCE7vs9hkcQr/KVxG6uLUbXrAoj7jBPZ8MM9re1aIqKmk nJNg== 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:sender:dkim-signature; bh=Hl1VWJqwbRtkVZU9kxa+Wp4UzmA2hPMJtxFbWtnID98=; fh=SYAaS2jS9QkEafrgIxXPmS2ZOlY9xXKc9zBnYpvwLag=; b=cdFkJd7BXvsbf/oIPndg/8BCUd896yHlctO5QiHTOQGc149jlb4zpngFlB5rBNyt8H ofEQqrpRYY1xyReUt2lbN30yLSwc2Q+CPAjPpe2ul3kTZlxBAztClFTFqQwoeEdz8HB4 nlPGKWjk8bCYtb3A3mKNI5/SZoKN9IwwafyRTiAg2dPL4bYAEQJdlRvPygTcVdHmgQ5w qqXOtuGGm6oQ56Gi6Pbg3Kaz1MKzhYcxrBVdw68EqNS15Bb5s6+CS/cLOSmOS27AtcF+ WlSnJup2IG3JdgpVb0gXEzuSBxoQGZ6HQWjFqoRUTltvKPeYLOyyyn4YNRoIn/4R1ivz TJAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Ls97xeRr; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hk7-20020a17090b224700b00260e4b41b3csi10810687pjb.68.2023.08.14.07.13.01; Mon, 14 Aug 2023 07:13:14 -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=@gmail.com header.s=20221208 header.b=Ls97xeRr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231653AbjHNNtN (ORCPT + 99 others); Mon, 14 Aug 2023 09:49:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231643AbjHNNsn (ORCPT ); Mon, 14 Aug 2023 09:48:43 -0400 Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A86A810DE; Mon, 14 Aug 2023 06:48:42 -0700 (PDT) Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-1bba7717d3bso3292206fac.1; Mon, 14 Aug 2023 06:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692020922; x=1692625722; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=Hl1VWJqwbRtkVZU9kxa+Wp4UzmA2hPMJtxFbWtnID98=; b=Ls97xeRr3iWacANUr7IlnehraFHOXYkh1gQ8FryFhWk7ej/49Mmk2Kdibx+TrgOjKt 0mePgV53dQUULlO6+ZkhXsXYVWIGJeD/whzVXkjeXIE/1gpCM6/j/nFgHqFEF8XuZ44Q HUP8F+Jt8vvEtGtDsW1CKRpps/C8Ul7uqPdDairHyC+AujitHeSftFeXwcpWfbbEIrXP dDoMhDV4uqhU72t+Qgg2g3VRItrGUovlRF34JTUxTIJrHooLUPcILwfvrLChYVcLfQuR far5t+79sHpKNVw6oRcAryE0Q4LTHLj6RKt3yoFzh4/krBS8L2eYKRhT7nUk6pKruFD1 lp7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692020922; x=1692625722; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hl1VWJqwbRtkVZU9kxa+Wp4UzmA2hPMJtxFbWtnID98=; b=lkoy5Cs+extGMDfaCrXXFltKRRMNQNsqcC00XNqrEeOphchiiwTUIzeRm/mtVGz3CH G2Zd3qQ1WaPnRmq0J9+iy7toFlwMLoi87l7p5sYgAsXR5WGYPfMKxo1yDaNq4lPf+CGt Lniln3SZ5bEG9U9KRf4O00JSHNSv99/ie+x4VhLrxdAds2lypVBLyg97W/+hlTI4HG4o CbQBjCkltgi/mwAWiehOt/HaAdfRuBUtiO9NJK7tz1fO9dbBQfFtP4xugtp/Wokhx0ZS k7kHZ1Z1iri7y3psFT06qfT21OLvntY0/JNgNy6qxxtNxjG1oFChRF6UJc8gbQIyevy4 o64A== X-Gm-Message-State: AOJu0YxMSwnhDWAyhW0qXyJXgEHyBADNOPFbQl2/3Le3N60BX4Ixp8D+ dFaN9AioW5nqtfHcIEmceVQ= X-Received: by 2002:a05:6870:c6a5:b0:1bb:b025:3e87 with SMTP id cv37-20020a056870c6a500b001bbb0253e87mr10045294oab.58.1692020921896; Mon, 14 Aug 2023 06:48:41 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id t4-20020a02c484000000b0042b6cb44429sm3042211jam.46.2023.08.14.06.48.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 06:48:41 -0700 (PDT) Sender: Guenter Roeck Date: Mon, 14 Aug 2023 06:48:40 -0700 From: Guenter Roeck To: Arnd Bergmann Cc: Wim Van Sebroeck , Hans de Goede , Henning Schild , "xingtong . wu" , Arnd Bergmann , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] watchdog: simatic: add PCI dependency Message-ID: References: <20230814073924.1066390-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230814073924.1066390-1-arnd@kernel.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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, Aug 14, 2023 at 09:38:50AM +0200, 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: > > 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 Reviewed-by: Guenter Roeck > --- > 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 > default y > select WATCHDOG_CORE > select P2SB > -- > 2.39.2 >