From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Date: Wed, 12 Jul 2017 03:17:21 +0000 Subject: Re: Lots of new warnings with gcc-7.1.1 Message-Id: List-Id: References: <848b3f21-9516-8a66-e4b3-9056ce38d6f6@roeck-us.net> In-Reply-To: <848b3f21-9516-8a66-e4b3-9056ce38d6f6@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Guenter Roeck Cc: Tejun Heo , Jean Delvare , Bartlomiej Zolnierkiewicz , Sathya Prakash , "James E.J. Bottomley" , Greg Kroah-Hartman , the arch/x86 maintainers , xen-devel , linux-block , Linux Media Mailing List , IDE-ML , "linux-fbdev@vger.kernel.org" , Network Development On Tue, Jul 11, 2017 at 8:10 PM, Guenter Roeck wrote: > > The hwmon warnings are all about supporting no more than 9,999 sensors > (applesmc) to 999,999,999 sensors (scpi) of a given type. Yeah, I think that's enough. > Easy "fix" would be to replace snprintf() with scnprintf(), presumably > because gcc doesn't know about scnprintf(). If that's the case, I'd prefer just turning off the format-truncation (but not overflow) warning with '-Wno-format-trunction". But maybe we can at least start it on a subsystem-by-subsystem basis after people have verified their own subsusystem? Linus