Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6251236ybi; Wed, 31 Jul 2019 10:56:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0beoMrw0zYSVJpFAR8z2odRmrY8rredyVKUp97pGgLNOo57wF1AgIVhPjpb1flIvjwFLD X-Received: by 2002:a17:902:424:: with SMTP id 33mr41738521ple.151.1564595810894; Wed, 31 Jul 2019 10:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564595810; cv=none; d=google.com; s=arc-20160816; b=ddoQk1tD6CWQbs700SQP3E/Xq5e7VOvvDXPAQ2Vovz8N70Z/Jtz6LtnJIOHNNkZZdt PUv3grM/ltWiibhmhxtdJCym280VOrinRCX2+i/3NgxdYsmpZquYo5FH5felZKIehrB+ +DF41mJ33Pq8k/Cu4XAz+wdGWWd8xConoa+crJ+SvJUfqjBPre+30J3vjJWrcfWTQ+PF nRGIOn8qHQO+YYEALGtLlX82EvrHKGeAQH6msRPuuA1X6KCdstMKRYPy9MF9yDv7PSbb fT7vM0kaf0EzBPdwJpbojkTQzwF6UOYV4EHmFmQ19WGkyqdOi8mvkOOfFl0Y1WloHmc/ Ue6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id :organization:to:subject:from; bh=xdRPF//TzOepYSx77LihHdI0sC8J5YPuwLqlycTfDYs=; b=pdDPqaVPm8p4JV2IPqHUog0pg/0jCK9BBN5fp7AEBdUEE92eWDpoF9egeWLJo75YrF mDOwVxnMPUtyWMEiN7+CUZNEWjPiSQaSfsPJ3263kJczoeenuiYetVsPr1LNa5qqUTET yfIWvKRDCuVjLGRw4tHqK/ah179Vy7wZfWrcPKlE7u0ZvOfCF184poecaiG2v0u5ni44 H8ZEY/CQ/0O0NVLdv4Opyo/tab3aErA/x0rOK8tWjE+QapWP14zhpMim2mbalc06D5yQ tG6rfi4ZoNbgwr6eZYfBW6sDyEttzr5NElV5DBV1oVVUA+PVx4Yg18DeHDzCIBmymYQT 6BHA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j64si37326882pge.556.2019.07.31.10.56.35; Wed, 31 Jul 2019 10:56:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729540AbfGaRq2 (ORCPT + 99 others); Wed, 31 Jul 2019 13:46:28 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:57779 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726382AbfGaRq2 (ORCPT ); Wed, 31 Jul 2019 13:46:28 -0400 Received: from [192.168.1.110] ([95.117.90.94]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M6YEz-1hzCCh3cVN-006y7N; Wed, 31 Jul 2019 19:46:26 +0200 From: "Enrico Weigelt, metux IT consult" Subject: Guide on useful helpers To: LKML , Greg Kroah-Hartman Organization: metux IT consult Message-ID: <8375db42-c871-e1e6-2b67-4067239c4e54@metux.net> Date: Wed, 31 Jul 2019 19:46:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:a62t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= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello folks, do we already have some guide (or at least a list of) useful helpers that can/should be used for more compact/maintainable code ? I sometimes learn about those by accident (eg. watching at patches floating around, comments on patches by other folks, reading existing driver code, ...), but haven't found any guide/docs on that yet. If there isn't any such guide yet, I'll volounteer for starting and maintaining it. Note: I certainly don't intent to duplicate (in-code) function documentation, but instead some collection of useful tips, that can be quickly read. Maybe it could be kinda FAQ list. --mtx -- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287