From owner-svn-src-all@freebsd.org Mon Dec 19 07:02:59 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EFC37C878AE; Mon, 19 Dec 2016 07:02:59 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from mail-vk0-x243.google.com (mail-vk0-x243.google.com [IPv6:2607:f8b0:400c:c05::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF67D6DE; Mon, 19 Dec 2016 07:02:59 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by mail-vk0-x243.google.com with SMTP id l126so12871025vkh.0; Sun, 18 Dec 2016 23:02:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=A3+z2/uJNRMi8lw6ufAyvTNiBxWxdGMoLLxYsD8hR2s=; b=VnAz8k//4fado4WOKz7b3d+XrcrNTvsrzRV0YOrVHVgleM5ljiGXEv2h7wR0Gz4Ee5 AdeCXaejS7wzaBQ5yuc+NovOq0qbQeyuMCcYsFbB3f5w3MwEVItQuDDbAyIe8J/IT35/ LqBrlkbF47u29iOFXIrJG/8AdDapEdKIztAMk3dsQSa/Q6xj0ANSlgkvD8Ol1xG81iSQ aV0ZUj8VzjJe1pQzEU22HDbJobzkn3MAg1C5izSKzpt/qoXV3p3w265CSPsjtecdppQr 55hnPS9I4SyvQewMipec09ixmq6oJ/1EJTFs86+Nfk5i8ClBiLK4mc1qkVKQigUkxycb DAKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=A3+z2/uJNRMi8lw6ufAyvTNiBxWxdGMoLLxYsD8hR2s=; b=tTUpifyG3/XPmfTME7WxjIM365KBr1r6dFtetilIjaMbcXw9hlkeSg/3CtO8xiqjtx I66wJl8mHCEqKGxv7MOq1KFllET2rrn9pK8VDTbAvV3ac8/+0I3iDeCJ/LVLBAq7eeOx +RYOgTIjZ/Iyp/p+CmDcpmAbX4QfegBexUsk4Xki5z9epYxuue4DHalfxNEv0iCpXUhR Zv4kfs7NzFDAushLvWXzbGe6ykpb2CSNFA1nwAFFAZevys2HvpRcCQxct80Q916XgYaL +88lNrtZsxVnA0tlvlhglahPIOLv8smp2QC8JaqjNkiOczcoBth5E2xpiOa0azB6iGKv j82A== X-Gm-Message-State: AIkVDXIaXWAlKB/ykvGMyD+juApfro7qAE/6k3vtVIC26smIu/1qDsTX/hVyTTDznE4Yd4yptUXEcMwySWv+GA== X-Received: by 10.31.168.7 with SMTP id r7mr5320361vke.148.1482130978422; Sun, 18 Dec 2016 23:02:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.5.198 with HTTP; Sun, 18 Dec 2016 23:02:57 -0800 (PST) In-Reply-To: <201612161949.uBGJnMol059217@repo.freebsd.org> References: <201612161949.uBGJnMol059217@repo.freebsd.org> From: Sepherosa Ziehau Date: Mon, 19 Dec 2016 15:02:57 +0800 Message-ID: Subject: Re: svn commit: r310171 - head/sys/sys To: Dimitry Andric Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 07:03:00 -0000 The following patch unbreaks the LINT builds on amd64 for me after this commit: https://people.freebsd.org/~sephe/geom_sscanf.diff Please review it. Thanks, sephe On Sat, Dec 17, 2016 at 3:49 AM, Dimitry Andric wrote: > Author: dim > Date: Fri Dec 16 19:49:22 2016 > New Revision: 310171 > URL: https://svnweb.freebsd.org/changeset/base/310171 > > Log: > Add __scanflike attributes to the kernel's sscanf() and vsscanf() > declarations. This should help to catch future mismatches between > format strings and arguments. > > MFC after: 1 week > > Modified: > head/sys/sys/systm.h > > Modified: head/sys/sys/systm.h > ============================================================================== > --- head/sys/sys/systm.h Fri Dec 16 19:09:57 2016 (r310170) > +++ head/sys/sys/systm.h Fri Dec 16 19:49:22 2016 (r310171) > @@ -227,8 +227,8 @@ int vsnprintf(char *, size_t, const char > int vsnrprintf(char *, size_t, int, const char *, __va_list) __printflike(4, 0); > int vsprintf(char *buf, const char *, __va_list) __printflike(2, 0); > int ttyprintf(struct tty *, const char *, ...) __printflike(2, 3); > -int sscanf(const char *, char const *, ...) __nonnull(1) __nonnull(2); > -int vsscanf(const char *, char const *, __va_list) __nonnull(1) __nonnull(2); > +int sscanf(const char *, char const *, ...) __nonnull(1) __nonnull(2) __scanflike(2, 3); > +int vsscanf(const char *, char const *, __va_list) __nonnull(1) __nonnull(2) __scanflike(2, 0); > long strtol(const char *, char **, int) __nonnull(1); > u_long strtoul(const char *, char **, int) __nonnull(1); > quad_t strtoq(const char *, char **, int) __nonnull(1); > _______________________________________________ > svn-src-all@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-all > To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" -- Tomorrow Will Never Die