Received: by 10.223.164.202 with SMTP id h10csp378397wrb; Tue, 14 Nov 2017 03:05:46 -0800 (PST) X-Google-Smtp-Source: AGs4zMalRSGIbBCkF7wphwt2WyeoCKsa9ZcGNgiqf90Q60PEcq2dogB1NbWoDDdSijhLs4/qBmY4 X-Received: by 10.99.127.91 with SMTP id p27mr10859308pgn.1.1510657546243; Tue, 14 Nov 2017 03:05:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510657546; cv=none; d=google.com; s=arc-20160816; b=mcEO3R64MOr+uOP8ZXYXpITaqrJiM1rwkUp/hj7evZcqqCHJbyVp0d5FQ3Y7HRnF+n iTZ2pH3Me+FYRpEqcOGNEOjx/b9n1qXbv0E1Dv58F4wIk1riOYx+zssKAA3YR2kU9d3q OU/bSmlQWFc4NYwuPg2nVijiJWob+3skcwXNCo/ybDWrf05ebwHaOD9BsGhS0NJCbqsV DISy/HCydww2W7WNTYbPIpXU4wTjkiK4xiKaEr88v48iNyTxCsiFXm51o/jS18ewQgI2 xU7FyH8z3FCgtJoAOEMDrB+pq8lER75dpNypOuieA+kXhFFyt1uYJrTsphHj+fOTqlOV eEvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=9wxFpTKERC4Fb/WpcmPGfbnfF05Fg9K8VOtZLMdPJio=; b=d+bTLpKg0eeuOR0DG/AZUtd+r0tmsjCGybaWgfanhsm2D7KRInafkkb5x3VMP1PBmt 6TytQQPV3FwMMLNE01ORfpu/pvkWXdL1Y8fJDEaQZGOPVj16gtBMHIa67uISQagQlNoh 1xLgKp7oOlB9Bdcs0Ezg5LlDp+VZVrH7Pbl+PctxtfnyI0CoTBEy8tW/UpnNMwMQgj7a 2a2vrUi0vdLfL6YIN0RToxR/DZG+1KbJ/PTK99Es7EeQEcCbJEzzqC1HezR+9sFWevVm UfA+tYDswfTJO8idHoOdb51ZESL5DtWRQlPze4zXqpxuJOYtPPWpFV6uLFHG5uBZ5oDD YOyA== 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 k13si13078543pgo.739.2017.11.14.03.05.34; Tue, 14 Nov 2017 03:05:46 -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 S1755008AbdKNKyo (ORCPT + 87 others); Tue, 14 Nov 2017 05:54:44 -0500 Received: from 19pmail.ess.barracuda.com ([64.235.150.245]:54029 "EHLO 19pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753741AbdKNKyH (ORCPT ); Tue, 14 Nov 2017 05:54:07 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1.ess.sfj.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Tue, 14 Nov 2017 10:53:16 +0000 Received: from mredfearn-linux.mipstec.com (10.150.130.83) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 14 Nov 2017 02:53:06 -0800 From: Matt Redfearn To: Guenter Roeck CC: , Matt Redfearn , "# 4 . 11 +" , , , Wim Van Sebroeck Subject: [PATCH] watchdog: indydog: Add dependency on SGI_HAS_INDYDOG Date: Tue, 14 Nov 2017 10:52:54 +0000 Message-ID: <1510656774-31464-1-git-send-email-matt.redfearn@mips.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.150.130.83] X-BESS-ID: 1510656794-298552-31901-35895-10 X-BESS-VER: 2017.14-r1710272128 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.186911 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: # 4.11 + --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index ca200d1f310a..d96e2e7544fc 100644 --- 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 || (MIPS && COMPILE_TEST && 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 -- 2.7.4 From 1584039794624048126@xxx Tue Nov 14 11:14:28 +0000 2017 X-GM-THRID: 1582936030260191790 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread