Message ID | 20171011004533.8044-3-alexander.levin@verizon.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp174217qgn; Tue, 10 Oct 2017 17:46:33 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDgozoGsFhNkUQqLBx671/s/3GTCymP65ObehDhjwqWcUmxEEM/QyGs4bUg+yhcYUXWstmQ X-Received: by 10.98.211.203 with SMTP id z72mr15391615pfk.328.1507682793305; Tue, 10 Oct 2017 17:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507682793; cv=none; d=google.com; s=arc-20160816; b=gkQLAeYSBY28aIqDQFuJ740I31eVHlv3aeSnHNKvpfuN3a9PpQrBEGJCODGgmY+AWG yy39vlhUvQiZUyyD3D3twCP6+tvuQ6iRCkaOAsCEPNwlxq624Huz9qcTo3TyAzXepR1Y XIcc0zK60IGbZMGSLXI4lPIuYBzACOUmu6OBF38QdAB07o6pAFZwyB7gilpLq11pnacr gBeLTZlYf8kjCMrasVj+PSUjbsxb5Hyte430D4anCZqjgjC4VKZ9lYYPlUnh3JdFZwOz ScOpClrx0/qlCHSXLSbLLXLzOKq3oUr05Jn3qVxf58yIHtcnRZr5V3IuXHRSp04dVioK QhwQ== 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:cc:to:dkim-signature :dkim-signature:from:dkim-signature:arc-authentication-results; bh=DoQNDrHs21L2R1M+oEbKDV5xONLSiFk3Ijd1ZlacJ1A=; b=EwYboamMca+dSvt5iNnsxmuMdSA65h6vw6aLyG6SZC1yZioOlMGdv0a10IfN9UCWx9 7BxLZ8xJfI4gNrZA8sUerNvreVvsYB937sHqcwFFN8MblP2oc3bK/98tfrnDbW8n17PK x8Q6S96lD4Pi5vUi2HThHf3/YHXe77UP71xP8YGX7OcFmWUvIlZfNMCBPtsUmqiXf7ai CEXQ93jCTa/5BXd4z0SmLk5UM+YtoHgxs4cgk9iVr6wF2LCalpxwkQ49turYK3Rq84sA 2P4JTk7D4GYrix18zBBFxQrouWm9fQnnjvllS2VAsXF9TiaQctqNW4bW3QJs1/8nuGUN CeCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@verizon.com header.s=corp header.b=L073K04W; dkim=fail header.i=@verizon.com header.s=corp header.b=R+lGhEoQ; dkim=fail header.i=@verizon.com header.s=corp header.b=R+lGhEoQ; 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 u86si5716683pfg.210.2017.10.10.17.46.33; Tue, 10 Oct 2017 17:46:33 -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=L073K04W; dkim=fail header.i=@verizon.com header.s=corp header.b=R+lGhEoQ; dkim=fail header.i=@verizon.com header.s=corp header.b=R+lGhEoQ; 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 S932722AbdJKAqa (ORCPT <rfc822;daniel.diaz@linaro.org> + 26 others); Tue, 10 Oct 2017 20:46:30 -0400 Received: from omzsmtpe03.verizonbusiness.com ([199.249.25.208]:63241 "EHLO omzsmtpe03.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932540AbdJKAq1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 10 Oct 2017 20:46:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1507682787; x=1539218787; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=+vbFhozLSgUhGP9nQxScswf3FyYEjI1PgSXROnFEFJU=; b=L073K04WwEa83UlZwbBz1dlnxvIhYA1XR3TvaaFSzG3G0Zm6+bqiWF57 2dfKmRfmgT9z1t4tsaO1E0iHYcnaThjdb1v6dZzGD7fmOz/+jncxOshLS FdpRQDkJk3Qgc9ehZ+2t0ZAbdpkXlv3EXiSD5e5ezj1YXWUHDO9qXK9MO 4=; Received: from unknown (HELO fldsmtpi02.verizon.com) ([166.68.71.144]) by omzsmtpe03.verizonbusiness.com with ESMTP; 11 Oct 2017 00:46:26 +0000 From: "Levin, Alexander (Sasha Levin)" <alexander.levin@verizon.com> Received: from rogue-10-255-192-101.rogue.vzwcorp.com (HELO atlantis.verizonwireless.com) ([10.255.192.101]) by fldsmtpi02.verizon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Oct 2017 00:46:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1507682782; x=1539218782; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=+vbFhozLSgUhGP9nQxScswf3FyYEjI1PgSXROnFEFJU=; b=R+lGhEoQFgnzfJJRTnCFuzoWVIHtSR9CtKb/VFCdtbyHOrNofDY22YOJ nbID5D5+anE+SD6/sn9a9aovQOozUSdhUarz8N9iGeeGt/ZtDA0V4sPDD Sooq8esuKRJvH3ialPfpjJJPXlLwphRhh+8XZyaddwxJXLgEbIWfjNNrR U=; Received: from surveyor.tdc.vzwcorp.com (HELO eris.verizonwireless.com) ([10.254.88.83]) by atlantis.verizonwireless.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Oct 2017 20:46:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1507682782; x=1539218782; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=+vbFhozLSgUhGP9nQxScswf3FyYEjI1PgSXROnFEFJU=; b=R+lGhEoQFgnzfJJRTnCFuzoWVIHtSR9CtKb/VFCdtbyHOrNofDY22YOJ nbID5D5+anE+SD6/sn9a9aovQOozUSdhUarz8N9iGeeGt/ZtDA0V4sPDD Sooq8esuKRJvH3ialPfpjJJPXlLwphRhh+8XZyaddwxJXLgEbIWfjNNrR U=; X-Host: surveyor.tdc.vzwcorp.com Received: from ohtwi1exh003.uswin.ad.vzwcorp.com ([10.144.218.45]) by eris.verizonwireless.com with ESMTP/TLS/AES128-SHA256; 11 Oct 2017 00:46:21 +0000 Received: from OMZP1LUMXCA14.uswin.ad.vzwcorp.com (144.8.22.189) by OHTWI1EXH003.uswin.ad.vzwcorp.com (10.144.218.45) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 10 Oct 2017 20:46:21 -0400 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com (144.8.22.195) by OMZP1LUMXCA14.uswin.ad.vzwcorp.com (144.8.22.189) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 10 Oct 2017 19:46:20 -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; Tue, 10 Oct 2017 19:46:20 -0500 To: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org> CC: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "stable@vger.kernel.org" <stable@vger.kernel.org> Subject: [GIT PULL for-4.4 02/25] watchdog: kempld: fix gcc-4.3 build Thread-Topic: [GIT PULL for-4.4 02/25] watchdog: kempld: fix gcc-4.3 build Thread-Index: AQHTQipCdcMVp+1EF0WpDC5cNXnTwQ== Date: Wed, 11 Oct 2017 00:45:39 +0000 Message-ID: <20171011004533.8044-3-alexander.levin@verizon.com> References: <20171011004533.8044-1-alexander.levin@verizon.com> In-Reply-To: <20171011004533.8044-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 5bf931ce1353..978098f71761 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;