Message ID | 20170925011411.10212-2-alexander.levin@verizon.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp2049190qgf; Sun, 24 Sep 2017 18:15:23 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBp9IcMSfsnF3331mPM82zPwZZznZX74Y+fFXUhY3uW2rr/ae3cRj6ervD22vYJYelC+6pa X-Received: by 10.99.109.68 with SMTP id i65mr6162801pgc.335.1506302123081; Sun, 24 Sep 2017 18:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506302123; cv=none; d=google.com; s=arc-20160816; b=ZXHLbjgS53JEJYprnUFXjzZ0xbZL7gEsyt4UKNPRwsADsbhXFxGXCJX89iKuHSU3wB BoOr5QMzCkXnLzjDFTY/+fqOaUYIaOepwaWyevyfVrBSOA4wxKL/IUvF7uELZLwWxmfG xk+FLi4vWyV989R2Ncs1DTGYSbAROcbKh26yWfT2TDuueKYzSLGMJLb9pjRWvryHLwxq UihPPhAc8tAk+Fyw8rEz9ytfj2MGnirFPMuPFriD0Or0W46Vr/iAc/wSuYAkQAKy6ef3 bH76eiAwJamywisFPE+bU3Abyl/DQNubDtGs94yfHmfv4BKM/fadJBIc4uqWXYxKsRXX nIsw== 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=nW2TaAa+v8TjhNWQu6zsqT+asaLavRbCN1eY+uCDwqc=; b=0rFVs/VwZAkqO+RTr0ECYR/BZbhv8O+CKNbHvc3h6rXSkrTtHfMDZVlNwbGMktydyx nEmQjMbLINl6NKqSEsLtucClZ+kWZk4dqScFwiEo75vZnUhgUpY9vkx1W92vog7Taz2I KHWE+CwEdpO6BKkL40wi239YD9Tb2nM3cKLZG95zcNBKuW0LW0toivrkHVO9hni5w9Ks crvDJF6+5s3GVxXknTFv0q93xznisHdaJUl8H8Rf5Ag8X5eGXTNW1PLRGTG8mcAtucbp mcPNlVBzE/qQ3TKGYXFa6hOWD6ZiXnpTacwzSpfs1dL2vU77TmSDhqQJtHLka6064hZw 3Sgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@verizon.com header.s=corp header.b=HyxjI3qn; dkim=fail header.i=@verizon.com header.s=corp header.b=nNzDkD/T; dkim=fail header.i=@verizon.com header.s=corp header.b=nNzDkD/T; 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 b5si3269272ple.493.2017.09.24.18.15.22; Sun, 24 Sep 2017 18:15:23 -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=HyxjI3qn; dkim=fail header.i=@verizon.com header.s=corp header.b=nNzDkD/T; dkim=fail header.i=@verizon.com header.s=corp header.b=nNzDkD/T; 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 S933844AbdIYBPV (ORCPT <rfc822;daniel.diaz@linaro.org> + 26 others); Sun, 24 Sep 2017 21:15:21 -0400 Received: from omzsmtpe01.verizonbusiness.com ([199.249.25.210]:52133 "EHLO omzsmtpe01.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933782AbdIYBO5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 24 Sep 2017 21:14:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1506302097; x=1537838097; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=vN/Xk5wj5R7sIdY/nkgsEz1hhqn7i08riyiQGp7tFUU=; b=HyxjI3qnAf8NSVFe8pNr/TZfrC6bzqMHTmAi72qWKh5rivFZb+pch2JB o7JN4yopZMHNEyTutM2P75HbfZ8Dkc5B7mnonTuNKu+g5mf+9kkVOuCt1 6fG45jAHV37LSzZoU5g+pLnybmtuaprO1qUNG86lJq17EM7cpbZOWYPuT I=; Received: from unknown (HELO fldsmtpi03.verizon.com) ([166.68.71.145]) by omzsmtpe01.verizonbusiness.com with ESMTP; 25 Sep 2017 01:14:31 +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 atlantis.verizonwireless.com) ([10.255.192.101]) by fldsmtpi03.verizon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Sep 2017 01:14:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1506302071; x=1537838071; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=vN/Xk5wj5R7sIdY/nkgsEz1hhqn7i08riyiQGp7tFUU=; b=nNzDkD/TWBVYL0lS4iW6FEuuGgvwPpxt/1aZULYT8PZcj83RaJn6A2UR lWb4nJolLJp0JqXFK+XwPQ/+05UvXj9mAB7k1DepKR69B/n5C5f0TH9AT 3doCh6nzjyfexOYf6rnLJ4apRBYmPIIzcvEjB0+9ywr0juUTYb2NEPDuD s=; Received: from discovery.odc.vzwcorp.com (HELO mercury.verizonwireless.com) ([10.255.240.25]) by atlantis.verizonwireless.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 24 Sep 2017 21:14:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1506302071; x=1537838071; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=vN/Xk5wj5R7sIdY/nkgsEz1hhqn7i08riyiQGp7tFUU=; b=nNzDkD/TWBVYL0lS4iW6FEuuGgvwPpxt/1aZULYT8PZcj83RaJn6A2UR lWb4nJolLJp0JqXFK+XwPQ/+05UvXj9mAB7k1DepKR69B/n5C5f0TH9AT 3doCh6nzjyfexOYf6rnLJ4apRBYmPIIzcvEjB0+9ywr0juUTYb2NEPDuD s=; X-Host: discovery.odc.vzwcorp.com Received: from casac1exh003.uswin.ad.vzwcorp.com ([10.11.218.45]) by mercury.verizonwireless.com with ESMTP/TLS/AES128-SHA256; 25 Sep 2017 01:14:30 +0000 Received: from scwexch09apd.uswin.ad.vzwcorp.com (153.114.130.28) by CASAC1EXH003.uswin.ad.vzwcorp.com (10.11.218.45) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 24 Sep 2017 18:14:30 -0700 Received: from OMZP1LUMXCA16.uswin.ad.vzwcorp.com (144.8.22.194) by scwexch09apd.uswin.ad.vzwcorp.com (153.114.130.28) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Sun, 24 Sep 2017 18:14:29 -0700 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com (144.8.22.195) by OMZP1LUMXCA16.uswin.ad.vzwcorp.com (144.8.22.194) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Sun, 24 Sep 2017 20:14:28 -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:14:28 -0500 To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "stable@vger.kernel.org" <stable@vger.kernel.org> Subject: [PATCH review for 3.18 02/14] watchdog: kempld: fix gcc-4.3 build Thread-Topic: [PATCH review for 3.18 02/14] watchdog: kempld: fix gcc-4.3 build Thread-Index: AQHTNZuc+1Bm5lp2RU+tg5fBoC6aag== Date: Mon, 25 Sep 2017 01:14:19 +0000 Message-ID: <20170925011411.10212-2-alexander.levin@verizon.com> References: <20170925011411.10212-1-alexander.levin@verizon.com> In-Reply-To: <20170925011411.10212-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 d9c1a1601926..e88d1346be5c 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;