Received: by 10.223.185.116 with SMTP id b49csp618399wrg; Fri, 16 Feb 2018 04:35:34 -0800 (PST) X-Google-Smtp-Source: AH8x22667YuoGULygcgYBdJW8K9+Bt7BivKdiyQgHtGiUxhhWAqukAR+qARCqWZ7mmmilHS1OtS9 X-Received: by 10.98.41.194 with SMTP id p185mr6095450pfp.38.1518784534790; Fri, 16 Feb 2018 04:35:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518784534; cv=none; d=google.com; s=arc-20160816; b=vZVieQSXw1L6v3VcXPGWDXTNrHXcfd/CVXdwBjT6oJMAkHFWAh4xcv+Zuv5eCFPDUT Cv/fynCaXfOfRMLZ94yc5qbMVXTLd+aUSimUo88A4HKMPE9bKBZBrBMZrNubI8njmSut Sisv+si93H1tyZXYHsZX5e6cZVqTv7j7vrQ7sxr0x3k75ifEimLDxN8yCIeu2k2H38Fn pwJwt0uSEvyN8kPzUNCUUwLDgfzhF62M5/QesoVFMleH6XjLFacUBh7XKCk9e3W7s+OR Q/hzGwiKkICKNXSDE9law/cBX8OuJMmG2HIR2OO67ibqBupuDQXAob+sAbVDbFlL331+ z6AA== 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=YRcbWduuinOGebg6MCgtKJPhgDHVXklWFcODhQjf0vE=; b=Q0WlT+r2FSOzsqfkTWTZ83oc4O+vcjLDd5cgd2gMJu/lRUYJteiPNhDfTbYkljJ0Nh R6FFion9wVwbyf63FkBjcf+c+t9TJce4F9yR6m13AHmzSzoHy0awSjNOsNi0LQizywHY XAoNiBBIwf291ING0IR34IIaCbmM8xAWo2sfgT2e3pN8EbsBFoS0aDBiE6tQoLV7M3o8 e8CILg5YLvS3rWCIN7KOKw/P5DOa/39xvb5bBdLM5apT5hq5dh7pHlkrVZVyBU2nNYnH 2ijT0EWoMlaxrNWzfB0H4hPCkvDStx6ugRSW7VSdoQDNsCXP9WwrjsqQovCCAqOOoxL9 okzA== 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 z8si4004868pgs.605.2018.02.16.04.35.19; Fri, 16 Feb 2018 04:35:34 -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 S1166054AbeBOSD1 (ORCPT + 99 others); Thu, 15 Feb 2018 13:03:27 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:54720 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164110AbeBOP3v (ORCPT ); Thu, 15 Feb 2018 10:29:51 -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 E190D110D; Thu, 15 Feb 2018 15:29:49 +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.14 001/195] watchdog: indydog: Add dependency on SGI_HAS_INDYDOG Date: Thu, 15 Feb 2018 16:14:52 +0100 Message-Id: <20180215151705.818993168@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151705.738773577@linuxfoundation.org> References: <20180215151705.738773577@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.14-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