Received: by 10.223.185.116 with SMTP id b49csp1867168wrg; Thu, 15 Feb 2018 02:58:34 -0800 (PST) X-Google-Smtp-Source: AH8x227AEvMMbygbRg7AHmWZdpJ4l16rD3x/8ldJdUOomyaV3x83wSsDsv+/s9/IHxNaMuc5/YkL X-Received: by 2002:a17:902:6b83:: with SMTP id p3-v6mr2159873plk.18.1518692314488; Thu, 15 Feb 2018 02:58:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518692314; cv=none; d=google.com; s=arc-20160816; b=CnDV5nVtvRpnxrEGDfv6bX6DrUGPg4fEr+MaOXGjm6s0bR7kOSPjWmP1VlluPdwUjL Rp+YV/6gu+/XpE/zp2OJnwvwfgdHXSCYMcROceqFbMHH0teMxlmNf/Ly1Ld0UuYvk1Du V8Me/oK5Qar0hHlsR9+8qnguF/m+BSfWL/KYTsi957XhHzBUHT5b9wKTXsp55KAdU7IS 4FzM4V8YCFF/SxtYgTO+Ze6EMsXhqWp/wvCovpbK3VjcqDkPNd/mqCVCKtXAfXJwZ1c5 g/r1+vOq9JMungwLZqbeF39hlPrOdIv6utGeqFiLiIb6UGbUuoeC8gy8dwqqudXRSigF f1YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=tOV+4IXhj5NGCuZBpyNqKlrmPOgp8xZ2knT95FDE17g=; b=xiW1ulnInQns3z5NF2kHirDqcc3hR99T0Au8ZBbR7l6nNx3juJwSDwqx9569cgX0ig e9apIrw8sL8k1iCrskDnEa07aNoDK3khh+naBXGZWPGrQBnw7kXtBs9ujPULZ3CSiOH3 LRkOQC62g0Bg7jezYg+cycrsvq19HQTy2e1MTJtHaAFRUfoTlW1SJA1pUHtdXnbw9Rp2 H0AYUfToE92ksYeFgXtyhmYdEtZc9JQxzXrBPKywmleMNI6eoVR7kXZ2vVY2WIkmPXqg PvyyKr6JrUjyM1DYvzT/qyojfJzOEpNSFalvTdY/1MzJW3W/+VicBafk7ZUh/86Gtmfw ZMAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W4aB5qi4; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 28si9350073pfl.53.2018.02.15.02.58.20; Thu, 15 Feb 2018 02:58:34 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=W4aB5qi4; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967556AbeBOK5k (ORCPT + 99 others); Thu, 15 Feb 2018 05:57:40 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:39203 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966589AbeBOK5j (ORCPT ); Thu, 15 Feb 2018 05:57:39 -0500 Received: by mail-qk0-f195.google.com with SMTP id z197so13477866qkb.6 for ; Thu, 15 Feb 2018 02:57:38 -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=tOV+4IXhj5NGCuZBpyNqKlrmPOgp8xZ2knT95FDE17g=; b=W4aB5qi4+exOX9WRlDIBIMm8qCtpImGgZYB6Ne7JnkDCnBZw5SyneWx+XyW4byRn31 8Ub4W/Lqyd3c/npojL3gizlebL4iwxg0YklEaRRhv1ztYmEl+7nk52cwPDEcLs5rLNDK CTOJdV4uXch3H8VU4Wu+UOmdvXTZrROd9goIJW1jpQAofRJOe3p2oqAUlqodIJOw42UD V02MiossfrcK0+7vZ3P92auHgTbsYyzk6bmw5iCnn4kgihxlDgUKxTpY6dhHQUKLWy7S wAz5GWTMFf4lHuwbDGsI78C0paNGady8hLEdxXxbmDFkUata9sd+Etpd+eZs2Embcq8u 5n1w== 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=tOV+4IXhj5NGCuZBpyNqKlrmPOgp8xZ2knT95FDE17g=; b=jUC7qISYtMjlA7ELqJRtCKRu5+xnBWneEfCu13ZjOjMSdGG2oKzqvH5hi4Os8ePmj4 jNuh6z0rLNjdtVdZ5R4rr1pHEgMwnYH26Ao6AWbJHoNkSaRwOoTSDCpGa2tKjh9oEPRX 1a32pWJqh1VrsaAUbwtCAuFRzBmaC5f3UQXCbVL7aMkl5L324uLNzd2JvgWPMM/WhcLb BViXXxtoNUZZPCZMmPP50WcnpAFzOR5BLFn1YqSiKHA3Da0Q6bl75oCNv+AV8gIw9zP2 NzZnLv5ASTjSePqbo/rig0S3x+rMxpAyoXKHhRIsjM8HvjxJmDR/T14SOoauma7j1rXF idoA== X-Gm-Message-State: APf1xPDSTe6v1HIHzN2+2qqnmDRYVPZKYSEnj3IiP9Lo3esicch7TI/x YUSIK/cMlsRoOA3ltyvxo+Qnp46m/qpBhavtyqiIUH22 X-Received: by 10.55.15.7 with SMTP id z7mr1322122qkg.24.1518692258344; Thu, 15 Feb 2018 02:57:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.195.82 with HTTP; Thu, 15 Feb 2018 02:57:36 -0800 (PST) In-Reply-To: References: <20180209235012.4993-1-rabel@robertabel.eu> <20180209235012.4993-2-rabel@robertabel.eu> <20180210092003.GA20377@1wt.eu> From: Andy Shevchenko Date: Thu, 15 Feb 2018 12:57:36 +0200 Message-ID: Subject: Re: [PATCH 1/3] auxdisplay: charlcd: fix hex literal ranges for graphics command To: Robert Abel Cc: Miguel Ojeda , Willy Tarreau , Geert Uytterhoeven , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 15, 2018 at 1:17 AM, Robert Abel wrote: > On 13 Feb 2018 14:36, Andy Shevchenko wrote: >> I understand that we have a huge and hopefully nice library in the >> kernel, but the question still the same, what prevents a developer or >> maintainer to look at it from time to time? >> >> For, I dare to say, ages we have hex_to_bin() and hex2bin(). >> Can we use it? > > hex_to_bin look fine to me, although personally I'm not a big fan of its > use of tolower. Let's duplicate then over and over? > The current parser implementation is much more lenient than hex2bin, > however. hex2bin won't parse strings containing illegal characters > (which are currently skipped) or hexadecimal strings with an odd number > of digits (which are currently allowed and the final digit will be ignored). Can you point to the documentation where user can easily (w/o reading the code) get how it suppose to be? Besides that, I'm a fan of making things cleaner and stricter. Allowing garbage in the middle of hex digits is making odd and unflexible interface. > I noticed the only part of the code that does make use of library > functions, parsing x and y coordinates using kstrtoul, is broken. > Apparently it used to use simple_strtoul, which worked and then got > replaced. By which commit? > So apparently looking over the kernel lib from time to time > can also do some harm ;) Disagree. The careless (semi-)automated patches and / or negligent review make this so. See Markus Elfting phenomena. He dumbly doing routine work w/o paying attention to the details and breaking things. That's why half of maintainers already banned him. > Patch incoming :) Can you Cc me? -- With Best Regards, Andy Shevchenko