Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6246894pxb; Thu, 27 Jan 2022 09:27:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJx50eSHNXkoQKICruQ4Cb1vzzLzbEudzRF5aLWoKWEtEuXE6TZBKIc7Cj0SIB8Gdm0a0TU6 X-Received: by 2002:a17:907:97d0:: with SMTP id js16mr3644132ejc.67.1643304428749; Thu, 27 Jan 2022 09:27:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643304428; cv=none; d=google.com; s=arc-20160816; b=kR4YTebI461RkUEG66VoXMgwT4+ONQDc6I1z+AHrzEH96VIPSuVyGacEwQi7HIsFs7 RaSGBTMrQxBkGvHrT4XV2CW/m2TJgzFNsFOmhXSThhgQ5vtCq3sVQtFkB12Mlr2A4j17 URY3Kss5z1FctXHWipyOsG/g7MIKfeSSQHgtlCqsvLI3r66ksoPBDmeOvhBElqeNVpas rgTPAS5l/zyO0H6ABrrJ6y1F1gdhNuK46MRBxbhtNcZoJ2GjiD9umcMRwq0FkZxrNULf QIrrHPBVlku+F2wzqVMqHGEHbTWsuJzO+dIjt9cGOyZ8cMw4rWSKzVdX2iICIg/5F1gQ HpyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9gxaDJsHdumY44fbko5Ks1tm9hrFCXM4G4kEjuQV98k=; b=FRY+BFF30NOmlsaPYJj3Kjl69pxRmRp3h2TIBgrCQcsvzHDpiH3GaULtCdhX/7zA09 ry4y7wTRveXKxgLtuSeYdd1runHbnOaydtF2Hbzi48mAzqtD9jixs21kEyHovQe7isoE AreMDGB+N4WFm8UUehAMVtt3GX/Mi7SN3hK/m26YydgawhJjKhY/BIdQrZBQJNiy/Tx7 WRuzGaos+1/O4Jrr6flZQYQnJ5R49phk8BJhm4PlV9MKyHAsW4hVSflyyPRITIdkZ2Wf ICc0v4f72aSbXdAsDG7ihq/abw9b4LYWBRaejMUrKCUya0CL9hVbHQ9Gl7O040hjEq6G pKDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="jJrWFI/t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r14si1579239edw.155.2022.01.27.09.26.42; Thu, 27 Jan 2022 09:27:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="jJrWFI/t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238935AbiA0KJA (ORCPT + 99 others); Thu, 27 Jan 2022 05:09:00 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:52268 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231903AbiA0KJA (ORCPT ); Thu, 27 Jan 2022 05:09:00 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C5C6B61CB3 for ; Thu, 27 Jan 2022 10:08:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93DC7C340E6; Thu, 27 Jan 2022 10:08:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643278139; bh=CjgfnKCUXCgE+sPBD6QLLmJdl+2z0gfy7GhTQpNGo9c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jJrWFI/tbmTazNW/QpYsc6WNg2YsPDMzb1QbyY2oJuvc/C++1f3hS1ZpIlDFkg8LE OiA4HCbAHT8B2Z9AGqJJ7dqFpV7aZT/yIoSaaCE/HCBnfkX2aodp5eEweinWphpqq6 xXWhXJfXdLuES0tVp6ezzunjmTQIc9g6nhUccT6Q= Date: Thu, 27 Jan 2022 11:08:56 +0100 From: Greg KH To: Aleksa =?utf-8?B?VnXEjWtvdmnEhw==?= Cc: salah.triki@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers: dio: Fixed coding style issues Message-ID: References: <20220126195341.5154-1-aleksav013@gmail.com> <20220127100414.o3hj63sirlavyb33@artix.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220127100414.o3hj63sirlavyb33@artix.localdomain> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 27, 2022 at 11:04:14AM +0100, Aleksa Vučković wrote: > Hey, > > I made a really simple patch fixing coding style errors. > Could you please review it, and tell me how to prevent errors like this: > > > - Your patch did many different things all at once, making it > > difficult to review. > > from happening in the future. > > Should i split changes into 2 patches? One for upper half and one for > lower half of the file I changed? One patch per type of logical change is recommended, the location in the file does not matter. > Many lines have multiple errors, so if I fix one error, I also need to > fix the other one. That's not a problem, and is not why your previous patches were rejected. Your previous patches were rejected as in your attempts to fix coding style issues you added new ones. > So I can not just have patch fixing one thing at the > time. Should I try to fix error in this manner: > [PATCH 1/3] fix lines that have ONLY spaces to tabs error > [PATCH 2/3] fix lines that have ONLY braces error > [PATCH 3/3] fix lines that have spaces to tabs error AND braces error > or should I have a different approach? Look at the examples on the staging mailing list for how to do this well. There are thousands of examples of "do only one type of change per patch" out there. To ignore the work others have done is odd. > Sorry for bothering, this is my first time submitting patches. Please start out by working in the drivers/staging/ part of the kernel when learning how to do development, as that is explicitly what that part of the kernel is for, and it keeps other maintainers from being bothered by basic functionality and procedural issues like this. thanks, greg k-h