From patchwork Fri Jul 14 09:25:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 107742 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp648897qge; Fri, 14 Jul 2017 02:27:21 -0700 (PDT) X-Received: by 10.99.97.5 with SMTP id v5mr13572953pgb.77.1500024441430; Fri, 14 Jul 2017 02:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500024441; cv=none; d=google.com; s=arc-20160816; b=Jt98Ap4WZyb+osXMP99iEBjuUfoUHcA0K0rycRtYDcuomSwwQRVPGf6dfDydpMDboo OE8ryzy8l97PZj41vAtw++EsaEE+faiKrXPsApcWDD9Qh27zJQDAbT7PmHGi8er63Iaz IWOHXUPaoobK7qZtrVfbtAHlb2GmS98MPwDKfyTsI+XKIhA6EZC7Gq+oC/hLdCAZPNIJ rp1W/6h91dshEmp1U08HmVm8rwj2mIB51s7queqM3oVxXDR36MnfxJhKrOiR21M/L4Su xIWciMEp/hGzqUM2Doro5yxvRoF4YPqNKNScgNPBXKbR8ydTVkg/bO37VBz5ss7mmFQu GaaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:cc :mime-version:message-id:date:subject:to:from:delivered-to :arc-authentication-results; bh=gXNoTD9bnxA4JaCMgxB29p0rY0P49lFZfoBRvSY7WBE=; b=SllHBVAsJqngOzR33uGZiEmoAwH0zyGSB4IhaY7ljcNB64N2Mn5Spd+L8ZAqROUQ78 IpLPrsZdJU2E5qk1uCQXy/gsE4aRn16eWcAIrn0rlx8eSFZNdqiSFFvdaOHWxj9clata VwR/u9siizSUKmaVN1oF39TTFiMkMuorp4X8oPIH9zOcGX7zPYdwnqbIgSSzSrXQVIjg bssqI91Qw/E8c7iHu2tbQOvGHFIMNIQjvq2DPbrW5LBx1Ak5onpnLDMjQEv5r9HoFgjx Kf8DZTgD0TwfV8YJbHGwSdkNhujzZd/TQRLgkaHuPn9o6N+SDxcooLFtP4LN8+0+F47Y 93Ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id 31si1727761plg.33.2017.07.14.02.27.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jul 2017 02:27:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 212536E7A8; Fri, 14 Jul 2017 09:26:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9337C6E7A8 for ; Fri, 14 Jul 2017 09:26:48 +0000 (UTC) Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0LbgPT-1durL70sv5-00lHp9; Fri, 14 Jul 2017 11:26:02 +0200 From: Arnd Bergmann To: linux-kernel@vger.kernel.org Subject: [PATCH 00/14] gcc-7 warnings Date: Fri, 14 Jul 2017 11:25:12 +0200 Message-Id: <20170714092540.1217397-1-arnd@arndb.de> X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gN3SPe3alZC19yqHI75Ekf1OXU0ImHrIwEml6C2M= Cc: Arnd Bergmann , Greg Kroah-Hartman , dri-devel@lists.freedesktop.org, linux-ide@vger.kernel.org, Tejun Heo , akpm@linux-foundation.org, Linus Torvalds , Guenter Roeck , linux-media@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This series should shut up all warnings introduced by gcc-6 or gcc-7 on today's linux-next, as observed in "allmodconfig" builds on x86, arm and arm64. I have sent some of these before, but some others are new, as I had at some point disabled the -Wint-in-bool-context warning in my randconfig testing and did not notice the other warnings. I have another series to address all -Wformat-overflow warnings, and one more patch to turn off the -Wformat-truncation warnings unless we build with "make W=1". I'll send that separately. Most of these are consist of trivial refactoring of the code to shut up false-positive warnings, the one exception being "staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read", which fixes a regression against linux-3.1 that has gone unnoticed since then. Still, review from subsystem maintainers would be appreciated. I would suggest that Andrew Morton can pick these up into linux-mm so we can make sure they all make it into the release. Alternatively Linus might feel like picking them all up himself. While I did not mark the harmless ones for stable backports, Greg may also want to pick them up once they go upstream, to help build-test the stable kernels with gcc-7. Arnd Arnd Bergmann (14): [SUBMITTED 20170511] ide: avoid warning for timings calculation [SUBMITTED 20170511] ata: avoid gcc-7 warning in ata_timing_quantize [SUBMITTED 20170314] drm/vmwgfx: avoid gcc-7 parentheses warning x86: math-emu: avoid -Wint-in-bool-context warning isdn: isdnloop: suppress a gcc-7 warning acpi: thermal: fix gcc-6/ccache warning proc/kcore: hide a harmless warning Input: adxl34x - fix gcc-7 -Wint-in-bool-context warning SFI: fix tautological-compare warning staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read IB/uverbs: fix gcc-7 type warning drm/nouveau/clk: fix gcc-7 -Wint-in-bool-context warning iopoll: avoid -Wint-in-bool-context warning [media] fix warning on v4l2_subdev_call() result interpreted as bool arch/x86/math-emu/fpu_emu.h | 2 +- drivers/acpi/processor_thermal.c | 6 ++++-- drivers/ata/libata-core.c | 20 ++++++++++---------- drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c | 6 +++--- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 2 +- drivers/ide/ide-timings.c | 18 +++++++++--------- drivers/infiniband/core/uverbs.h | 14 ++++++++------ drivers/input/misc/adxl34x.c | 2 +- drivers/isdn/isdnloop/isdnloop.c | 2 +- drivers/media/pci/cx18/cx18-ioctl.c | 6 ++++-- drivers/media/pci/saa7146/mxb.c | 5 +++-- drivers/media/platform/atmel/atmel-isc.c | 4 ++-- drivers/media/platform/atmel/atmel-isi.c | 4 ++-- drivers/media/platform/blackfin/bfin_capture.c | 4 ++-- drivers/media/platform/omap3isp/ispccdc.c | 5 +++-- drivers/media/platform/pxa_camera.c | 3 ++- drivers/media/platform/rcar-vin/rcar-core.c | 2 +- drivers/media/platform/rcar-vin/rcar-dma.c | 4 +++- drivers/media/platform/soc_camera/soc_camera.c | 4 ++-- drivers/media/platform/stm32/stm32-dcmi.c | 4 ++-- drivers/media/platform/ti-vpe/cal.c | 6 ++++-- drivers/sfi/sfi_core.c | 9 ++++++--- drivers/staging/iio/resolver/ad2s1210.c | 2 +- .../staging/media/atomisp/pci/atomisp2/atomisp_cmd.c | 13 +++++++------ fs/proc/kcore.c | 10 ++++++---- include/linux/iopoll.h | 6 ++++-- include/linux/regmap.h | 2 +- 27 files changed, 93 insertions(+), 72 deletions(-)