Message ID | 20170925011225.10029-3-alexander.levin@verizon.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp2060485qgf; Sun, 24 Sep 2017 18:33:00 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDgf2yZWCE2A0heu0/IAYOFTzlsvlKaFJibZ0DgC4cKv4JBtDyzlLhehNHjzbSky25G6bTF X-Received: by 10.99.172.2 with SMTP id v2mr5920601pge.200.1506303180684; Sun, 24 Sep 2017 18:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506303180; cv=none; d=google.com; s=arc-20160816; b=cFe0A4MO/mw+7SRY7dKKKa01et/no3zIsbwjWw10EfUP6C3EvNOx3PqWS6cgFNK2nx k6YrEgZkgBeHDjH1RQNuJGUpr13zX1fXaUJshMB1Wxky/hfJnUZ8wbwcya5Q2ewSKltJ F00XrHZJ1kz1CaizonqrY7rTCPj3FqyJvVHeREKTZZ801wxFaIfbJUOSfc8IdpguixDT f5+wSW/h4UhCRoAgmdYUROjCLlkDkj5NRLyKAlcAoC+92X22yz7OsrieG5iG288CzoKe JRRlgJUq2wQ4BiItyiqd6+xxmaZVsLQPCbW/g3YEDIC1V9GI3Pz4Fn3MV6rwwz2J2Eea 4NDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:dkim-signature :dkim-signature:cc:from:dkim-signature:arc-authentication-results; bh=L4N2jQeEEfYePKGIzyV2M2XZFFNwmt9cEpwxJ4d67VE=; b=FR6qRZZWNiNZWp4KwUAoKshczwemH+cBIyuDTp+VdloGaHgPfxiUAGbd9JFnrXL87w T3m/iau2LN4+fiXGaVeBeXxupQVmLDRS5VeRiDu8zFPlHXfkgZ3QW/h2rvY5stlH16sD xeLf2s1UENQMeFGbA4OIO8emUT/gFJmKp5TEs6wwtWdJoNuY623yc7N7sGOFCziIEFb6 a+vtK+DPNprjiXdnrZeUAzPqoZjnOZqAmsYy238lqAzFU3MhNxWG1Mzraf8L8bFe7eqR AszzSEGbinDuPhrqbpitAkpaEyqyXqbf+NN+KUtE5WjDLBrt2MVF9L4zz/kp0g95NIDw rKdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@verizon.com header.s=corp header.b=iwjcLRzg; dkim=fail header.i=@verizon.com header.s=corp header.b=mCbQsiaI; dkim=fail header.i=@verizon.com header.s=corp header.b=mCbQsiaI; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o73si3187833pfg.601.2017.09.24.18.33.00; Sun, 24 Sep 2017 18:33:00 -0700 (PDT) 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; dkim=pass header.i=@verizon.com header.s=corp header.b=iwjcLRzg; dkim=fail header.i=@verizon.com header.s=corp header.b=mCbQsiaI; dkim=fail header.i=@verizon.com header.s=corp header.b=mCbQsiaI; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933943AbdIYBcd (ORCPT <rfc822;daniel.diaz@linaro.org> + 26 others); Sun, 24 Sep 2017 21:32:33 -0400 Received: from fldsmtpe03.verizon.com ([140.108.26.142]:37517 "EHLO fldsmtpe03.verizon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933459AbdIYBOK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 24 Sep 2017 21:14:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1506302050; x=1537838050; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=/t51gnuu60uLiyHYMUimXzUkVdMJR6RffjyqhTHnitw=; b=iwjcLRzgVtBqv2QG/RQWNWVV3Wv9O6jIxqMfIA9i4dTuzH9oQD8chh31 caidXwnGgl51X5Acwctq5NGNfAhWLnciTfAsc+HE3SQA2vrSPFW3a8VY2 lEILXFAlHuXA6J09Nmqklmyv7uw6nF4TGYhZMZEowQScrEuCwdBKKM4dT s=; Received: from unknown (HELO fldsmtpi02.verizon.com) ([166.68.71.144]) by fldsmtpe03.verizon.com with ESMTP; 25 Sep 2017 01:14:05 +0000 From: "Levin, Alexander (Sasha Levin)" <alexander.levin@verizon.com> Cc: Arnd Bergmann <arnd@arndb.de>, Guenter Roeck <linux@roeck-us.net>, "Levin, Alexander (Sasha Levin)" <alexander.levin@verizon.com> Received: from rogue-10-255-192-101.rogue.vzwcorp.com (HELO apollo.verizonwireless.com) ([10.255.192.101]) by fldsmtpi02.verizon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Sep 2017 01:12:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1506301963; x=1537837963; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=/t51gnuu60uLiyHYMUimXzUkVdMJR6RffjyqhTHnitw=; b=mCbQsiaIoukJMoLKqHAWNuC7dA5EyPpLvR2v8h5++TzvlP9E69CPnNRW b18BQdFlj71cJ2RXzEHrVjpHR58njkcwoPcViEnbsa8+b7l5RcDr/Vslr WVtvqY3HHtDg+6cXq/kmAyqLUIPCpwDUvj8l0T6ms0dpNxbKq5Ol4R3gg 0=; Received: from discovery.odc.vzwcorp.com (HELO mercury.verizonwireless.com) ([10.255.240.25]) by apollo.verizonwireless.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 24 Sep 2017 21:12:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1506301963; x=1537837963; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=/t51gnuu60uLiyHYMUimXzUkVdMJR6RffjyqhTHnitw=; b=mCbQsiaIoukJMoLKqHAWNuC7dA5EyPpLvR2v8h5++TzvlP9E69CPnNRW b18BQdFlj71cJ2RXzEHrVjpHR58njkcwoPcViEnbsa8+b7l5RcDr/Vslr WVtvqY3HHtDg+6cXq/kmAyqLUIPCpwDUvj8l0T6ms0dpNxbKq5Ol4R3gg 0=; X-Host: discovery.odc.vzwcorp.com Received: from casac1exh001.uswin.ad.vzwcorp.com ([10.11.218.43]) by mercury.verizonwireless.com with ESMTP/TLS/AES128-SHA256; 25 Sep 2017 01:12:43 +0000 Received: from scwexch30apd.uswin.ad.vzwcorp.com (153.114.130.49) by CASAC1EXH001.uswin.ad.vzwcorp.com (10.11.218.43) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 24 Sep 2017 18:12:42 -0700 Received: from OMZP1LUMXCA20.uswin.ad.vzwcorp.com (144.8.22.198) by scwexch30apd.uswin.ad.vzwcorp.com (153.114.130.49) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Sun, 24 Sep 2017 18:12:42 -0700 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com (144.8.22.195) by OMZP1LUMXCA20.uswin.ad.vzwcorp.com (144.8.22.198) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Sun, 24 Sep 2017 20:12:40 -0500 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) by OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) with mapi id 15.00.1263.000; Sun, 24 Sep 2017 20:12:41 -0500 To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "stable@vger.kernel.org" <stable@vger.kernel.org> Subject: [PATCH review for 4.9 03/50] watchdog: kempld: fix gcc-4.3 build Thread-Topic: [PATCH review for 4.9 03/50] watchdog: kempld: fix gcc-4.3 build Thread-Index: AQHTNZtiY/vOu8McFUiDbTbYwY0PwA== Date: Mon, 25 Sep 2017 01:12:40 +0000 Message-ID: <20170925011225.10029-3-alexander.levin@verizon.com> References: <20170925011225.10029-1-alexander.levin@verizon.com> In-Reply-To: <20170925011225.10029-1-alexander.levin@verizon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.144.60.250] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/watchdog/kempld_wdt.c b/drivers/watchdog/kempld_wdt.c index 8e302d0e346c..3efa295ac627 100644 --- a/drivers/watchdog/kempld_wdt.c +++ b/drivers/watchdog/kempld_wdt.c @@ -140,12 +140,19 @@ static int kempld_wdt_set_stage_timeout(struct kempld_wdt_data *wdt_data, unsigned int timeout) { struct kempld_device_data *pld = wdt_data->pld; - u32 prescaler = kempld_prescaler[PRESCALER_21]; + u32 prescaler; u64 stage_timeout64; u32 stage_timeout; u32 remainder; u8 stage_cfg; +#if GCC_VERSION < 40400 + /* work around a bug compiling do_div() */ + prescaler = READ_ONCE(kempld_prescaler[PRESCALER_21]); +#else + prescaler = kempld_prescaler[PRESCALER_21]; +#endif + if (!stage) return -EINVAL;