Received: by 10.223.185.116 with SMTP id b49csp6693wrg; Thu, 15 Feb 2018 15:25:37 -0800 (PST) X-Google-Smtp-Source: AH8x227yKVXbmNq5hMykN/m0sSfcWbnwMuRKNNVBpX10gZ2+1HM9v9wbCTMbG6+leVqjwQodCuTA X-Received: by 2002:a17:902:6f17:: with SMTP id w23-v6mr4017491plk.336.1518737137414; Thu, 15 Feb 2018 15:25:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518737137; cv=none; d=google.com; s=arc-20160816; b=qivL75jAP+ofb36aGJB212UV9qhnxJJsKBUFHPJtDJ5eEjgTbR9mYfROO9apGyVg10 ROmdF6WhcFbhOzc2A7d5OvYnt5tnkZhhypyv/ItIedUMgS4xCUfdPYjg85i/LaghMnfX XQ5eTNhNjcC2Ueb0lU/lFX48WKgQfnsUQHLqsNVgWthtjOIPIrWc5RcutIbeXfD2IPq1 f9883Y3NFSFwL3c3uNh2iHkU0SRWKro2e+zDR2Ooy7Zw1HpDOw7TxPj72KH2wUzO83o4 rTgKAN+pD3k1omq7XHCsM7yJNsttk4SCr1As0aKocd6tDtJxaUXEjnbbmdfHgNd2jkOm H+lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=6LTI8ohLR1/Ey5d8D6pR53s9k3J7pnfbOKCkdvjCbEs=; b=Tp+GKMNCpUOX9vpnn7WEHeO/0bn34pfFqWWqkfNku3la0/YK8tMai2awlOMoolmMrJ 8OZFMxY5Ar0A/9F9AkXyk65ndyfPdS3P/hPb7o0IXVVb1jWz9a5dXRCpKQQMOdkt7u2k T/R0WQhm0JrM2VHCw1dMUa2a+BIMA1LGuAHYG9OkY6TX2ddAuUMUgFxRjCugUSbmB9Lh e+oSF+q9I4X4klPOdhzIrghuyDKINPzsXKr27y7ID+QcITdsNc5r/0jHAi62h6zpeBiP iWJooT2f9ZdCwxKrQ178dJg6+kvajwgX1XbyakwUIAGq7abEyuyUSsBKWg8hiK2kJUJ/ NAmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 94-v6si3260422pla.215.2018.02.15.15.25.22; Thu, 15 Feb 2018 15:25:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423431AbeBOPi6 (ORCPT + 99 others); Thu, 15 Feb 2018 10:38:58 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:59606 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423360AbeBOPiy (ORCPT ); Thu, 15 Feb 2018 10:38:54 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 34C8E1113; Thu, 15 Feb 2018 15:38:53 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matt Redfearn , Ralf Baechle , James Hogan , Guenter Roeck , Wim Van Sebroeck Subject: [PATCH 4.15 001/202] watchdog: indydog: Add dependency on SGI_HAS_INDYDOG Date: Thu, 15 Feb 2018 16:15:01 +0100 Message-Id: <20180215151712.836771613@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151712.768794354@linuxfoundation.org> References: <20180215151712.768794354@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Matt Redfearn commit 24f8d233074badd4c18e4dafd2fb97d65838afed upstream. Commit da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible") enabled building the Indy watchdog driver when COMPILE_TEST is enabled. However, the driver makes reference to symbols that are only defined for certain platforms are selected in the config. These platforms select SGI_HAS_INDYDOG. Without this, link time errors result, for example when building a MIPS allyesconfig. drivers/watchdog/indydog.o: In function `indydog_write': indydog.c:(.text+0x18): undefined reference to `sgimc' indydog.c:(.text+0x1c): undefined reference to `sgimc' drivers/watchdog/indydog.o: In function `indydog_start': indydog.c:(.text+0x54): undefined reference to `sgimc' indydog.c:(.text+0x58): undefined reference to `sgimc' drivers/watchdog/indydog.o: In function `indydog_stop': indydog.c:(.text+0xa4): undefined reference to `sgimc' drivers/watchdog/indydog.o:indydog.c:(.text+0xa8): more undefined references to `sgimc' follow make: *** [Makefile:1005: vmlinux] Error 1 Fix this by ensuring that CONFIG_INDIDOG can only be selected when the necessary dependent platform symbols are built in. Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible") Signed-off-by: Matt Redfearn Signed-off-by: Ralf Baechle Suggested-by: James Hogan Reviewed-by: Guenter Roeck Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Greg Kroah-Hartman --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -1451,7 +1451,7 @@ config RC32434_WDT config INDYDOG tristate "Indy/I2 Hardware Watchdog" - depends on SGI_HAS_INDYDOG || (MIPS && COMPILE_TEST) + depends on SGI_HAS_INDYDOG help Hardware driver for the Indy's/I2's watchdog. This is a watchdog timer that will reboot the machine after a 60 second