Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752826AbbFZUJR (ORCPT ); Fri, 26 Jun 2015 16:09:17 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41334 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751969AbbFZUJO (ORCPT ); Fri, 26 Jun 2015 16:09:14 -0400 Date: Fri, 26 Jun 2015 13:09:13 -0700 From: Greg Kroah-Hartman To: Vikul Gupta Cc: "Cc: Lior Dotan" , Christopher Harrer , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging:slicoss:slicoss.h remove volatile variables Message-ID: <20150626200913.GA7696@kroah.com> References: <558DA29F.3020404@linux.vnet.ibm.com> <20150626191057.GA20142@kroah.com> <558DAEAC.3000800@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <558DAEAC.3000800@linux.vnet.ibm.com> User-Agent: Mutt/1.5.23+89 (0255b37be491) (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1784 Lines: 45 On Fri, Jun 26, 2015 at 12:57:32PM -0700, Vikul Gupta wrote: > I am a high school student trying to become familiar with the opensource > process and linux kernel. This is my first submission to the mailing list. Great, but this paragraph doesn't belong in here, as this whole thing will end up in the changelog body. You can put any comments / discussion below the --- line and it will not show up in the changelog when I apply the patch. > I fixed the slicoss sub-system. The whole subsystem, nice? :) Seriously, this sentance is not needed. > The TODO file asks to remove volatile > variables - also, checkpatch.pl warnings included volatile variables. > > I removed "volatile" from the variables /isr /and /linkstatus/ in the header what's with the '/' usage? > file, because they are not needed. The two variables are used in the > slicoss.c file, where /isr/ is used as function parameters, string outputs, > pointers, logic, and one assignment, while /linkstatus /is used as pointers, > logic, and one assignment. All but the assignments will not change these > variables, and the assignment does not warrant a volatile qualifier. > > To make sure the changes were correct, I ran the files with checkpatch.pl > again, test built it, and rebooted it. can you test this code? rebooting and not loading the driver isn't much proof of much other than the code still builds (which is a good thing to test.) Also, this paragraph is not needed in the changelog either. Care to fix this all up and resend? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/