Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5A23C433E1 for ; Thu, 27 Aug 2020 18:41:01 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 74BA12073A for ; Thu, 27 Aug 2020 18:41:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OAo8tfkg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 74BA12073A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1kBMpB-0004dy-Bo; Thu, 27 Aug 2020 14:40:37 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kBMp8-0004dm-Dc for kernelnewbies@kernelnewbies.org; Thu, 27 Aug 2020 14:40:34 -0400 Received: by mail-pj1-x1031.google.com with SMTP id n3so3016637pjq.1 for ; Thu, 27 Aug 2020 11:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=V/B1eif48cFX567o6No6TIiAJeYudP62jc17eNyDLcA=; b=OAo8tfkgRyzoZCoCsJInoiQmgYFilBtQ7jBdKZFSqdgbo5u8TBOydn1/Sl9oSTX1g/ UyTwYikkUbI8W3rFClon5tvirkVIiLF5AW86ncU1WIhRgFBXHojlggCZrERpR5PQ8CsO qBGeiIGphiX1BCCyiWujD8lZpS0BUjhU/fiC1vnt0IzkWmMASjXhVmW6lD37QJOZ9Ehf ra7QjBs28lhLizxTeH0FYvPDP8GR4gD30kEwjzf1pDMmk8MYWt6FgMgtYVGUZVPKH8oN 2sMjV5wYZq+qzrSCqeB98jdKSWvLjsNhsCSUxdZa/4xf7J7iQ9xs99tC6UwM2WDZaTO0 SCZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=V/B1eif48cFX567o6No6TIiAJeYudP62jc17eNyDLcA=; b=qLauQr9I+M1NJdA4dNwv7w92gAfWDoKe6ehL0X6bUEk36SgaYavHvoHcn/jB2q5vhR wKGDelWtVvbitvncuieZ9qRkcecdPRXIciImFBKro/FLcdm9ELTFvVubuuX6b5XFYBU6 EIu9P3RyglH809k/cUOKwZQk9y3d0bccpxjOotX2CUnDCdgDyBhl41hBHwa55p9iN1jR 5mxqa8kdffZ4GIHY4cLa65/ZpMokdXe/cBbudiiTH3+tHuXBrD1GPzEECRVOvd0DmGko XsyrVwRG4MfIfDBJpTCMXUV4bS5zAbtIZGgHDHU1VwORnpZaD7Quu2pkO795kW+EwNL8 tKQQ== X-Gm-Message-State: AOAM531HZMsewAFkN3aCvUctbSNWqt5m26TOnOzRimHq9vKYeHS1ZixK 4E5KrmaK3wmciySJCjlFSVo= X-Google-Smtp-Source: ABdhPJwIEfA6EpIKeHoQ0I6TUt5POSs8uOGAclwao0B70jzua/wqbxW+M7X7YuIdA4tyG+v4T90W5w== X-Received: by 2002:a17:90b:f84:: with SMTP id ft4mr188474pjb.174.1598553571823; Thu, 27 Aug 2020 11:39:31 -0700 (PDT) Received: from guptapadev.amr (fmdmzpr03-ext.fm.intel.com. [192.55.54.38]) by smtp.gmail.com with ESMTPSA id o6sm2809995pju.25.2020.08.27.11.39.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2020 11:39:30 -0700 (PDT) Date: Thu, 27 Aug 2020 11:32:19 -0700 From: Pawan Gupta To: Thomas Schmitt Subject: Re: Please give advise about my first patch attempt Message-ID: <20200827183219.GA28272@guptapadev.amr> References: <8489736254099146458@scdbackup.webframe.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8489736254099146458@scdbackup.webframe.org> Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Thu, Aug 27, 2020 at 10:49:51AM +0200, Thomas Schmitt wrote: > Hi, > > i am preparing my first patch. > May i ask for review and advise how to make it acceptable ? If you are not running it already you can catch common mistakes by running checkpatch script from the kernel source top directory like: $ ./scripts/checkpatch.pl --strict --codespell -g Also would suggest to build kernel with warnings treated as errors: $ make CFLAGS_KERNEL+=-Werror ... Thanks, Pawan _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies