Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp220538ybd; Sat, 22 Jun 2019 01:50:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyLV9yqEurvVFLcqczIvNZZxY7T6WdkUXt90g/iqDMVDLIGDKea/i/pcaO1dOWOokllnuo X-Received: by 2002:a17:902:7793:: with SMTP id o19mr75037226pll.110.1561193439071; Sat, 22 Jun 2019 01:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561193439; cv=none; d=google.com; s=arc-20160816; b=LBhXxeLegGhth+8TkFjum19Ds/kCavz3OLqbeLGvkK+SYdqL5cCEsYUYMiTjCmrMQP z/vLOGCbZ90TyxNuGJlLi/pcwhchiyPVIAsMt8fnzWZ7Qq8LQPyAwN6SbBOk7mdP4BlR vOzXiLzQIkHouFycvLAFU8OeYBLdzE7Z0RbTGzxbMlw/uQ/zkWWPimUPcg++PFKH+ZUn VFZO+SW0gskI0d7Z8siZhZAPSMInrX3/7JN4eofKoE6KM/66q6Lf2tPEa/YLbbPcfRl2 bHuid80FqQJyUCaihmmyIaDYpx8AKOi/uN/rhLLF53UOVv9VdWd5alhng1JuxRBm9K5q qMVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HuyUZznnr+2KTzyGeAevDXOnX1L1s36jECfUjJLEBVY=; b=BH3LYwO+qWuw/iwogHBLTM3gmF6CXDtWzQl5N8Pw1z3IntEuokYDte8MMg7AwNdggx fBV71M6t/VXnD/zAKEdppTS5ZtkNTIaAQYHVok8W0ER6UdkvB2YOT1t66T+m34GSl22i lK5jSk1RUWEQ5jMJkSBH/oF6YBH9XvFx0jD7zLwfjKkHw7fybkqkiBpghy8hiBUpgGwi DM2Y9vsVKar7ZOIMxPSPphxJGO2ToECGruSLwnOQMzgnyaO5UyQbpkk3tkrmkWTAABs3 TJmFUYsXiQp4Ed2c4i/kjOKjXj3IyeHe3PrtdUoHzRTJXY3YHLewdb0TaVsgJS7TbzAQ syTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nQ9fUmlG; 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 c3si4673140pgh.340.2019.06.22.01.50.23; Sat, 22 Jun 2019 01:50:39 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nQ9fUmlG; 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 S1726376AbfFVIuU (ORCPT + 99 others); Sat, 22 Jun 2019 04:50:20 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46197 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbfFVIuT (ORCPT ); Sat, 22 Jun 2019 04:50:19 -0400 Received: by mail-pf1-f194.google.com with SMTP id 81so4749975pfy.13; Sat, 22 Jun 2019 01:50:19 -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:user-agent; bh=HuyUZznnr+2KTzyGeAevDXOnX1L1s36jECfUjJLEBVY=; b=nQ9fUmlGL1p1hlKj1JC+UdErZcBkQhP+ho3nGSAmkPtmsC1G3BEwYna7ZG/a/zxLnN JEigT7Srdnge2JzAruVO2eDmflLWCk8VO0UYq7RIlj2V3MSFjBJBW9mUcBAKuqT8ecIG JH9JK0i1KvjA9zaZDt+vv9IX+Nlz0l95T0Q/3H64y3jX1mHLjcV40gXsMN35mps9HxAT U8K2LQCQFT8AWkUfuWmgGuPFhuSeS4pNcZaxQGt7g9AiJRpPIBx7ENZCF8P4Loaza2bT 2dYB/AhAGQ8/dAfJ7+ALVcU5pOpSaHvUF9KrgREet7st0Ex6qtbFFIswh+VQ6E3RwgHj mYrg== 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:user-agent; bh=HuyUZznnr+2KTzyGeAevDXOnX1L1s36jECfUjJLEBVY=; b=eOmZ+QlJzDnaZ157PtadpYQ1JAPTxZ6OyIMPMhkmFyTVqKGz/PxC7xBowGKpUvgrQz lD1M4OEfZBgShz0+fGnkKmrCAEYWH23Jkov+iGmguWdriIUh26muUryCWTipjEaUCj3O YA+/NqEcNJyNzjJp2wA3r6dUmvhhI7gCosrv91LhWKUTzWNvXU8IEk4L8ver+Plh/fWf hbHM3FuL5WMaJTKeo0MZUmZXk42Pcbt1CwVobW0499cH2BE+HdQeXZygmhglJSBHHDn0 /w0aW4L9qnA3dr3pHOuqngdM2UwLT2soGtTSaemA+iIq7wNi/zBFKguVxzQW+kuZsTyA Logg== X-Gm-Message-State: APjAAAW3Bv/wGAoTKYLS9VtDeIq8zHtGQ88YPPhCgPQ0Gy7jzZBd2zI5 xDIYdr64dzNtbyxyunyrKyzjpOPgjJND+A== X-Received: by 2002:a17:90a:fa18:: with SMTP id cm24mr3869488pjb.120.1561193418682; Sat, 22 Jun 2019 01:50:18 -0700 (PDT) Received: from arch ([112.196.181.13]) by smtp.gmail.com with ESMTPSA id j13sm8240054pgh.44.2019.06.22.01.50.14 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 22 Jun 2019 01:50:18 -0700 (PDT) Date: Sat, 22 Jun 2019 14:20:01 +0530 From: Puranjay Mohan To: Joe Perches Cc: Bjorn Helgaas , Puranjay Mohan , Jay Cliburn , Shuah Khan , Bjorn Helgaas , netdev , Linux Kernel Mailing List , linux-kernel-mentees@lists.linuxfoundation.org, Linux PCI , Chris Snook Subject: Re: [PATCH 0/3] net: ethernet: atheros: atlx: Use PCI generic definitions instead of private duplicates Message-ID: <20190622085001.GA11032@arch> References: <20190621163921.26188-1-puranjay12@gmail.com> <698d3e3614ae903ae9582547d64c6a9846629e57.camel@perches.com> <838b8e84523151418ab8cda4abdbb114ce24a497.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <838b8e84523151418ab8cda4abdbb114ce24a497.camel@perches.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 21, 2019 at 11:33:27AM -0700, Joe Perches wrote: > On Fri, 2019-06-21 at 13:12 -0500, Bjorn Helgaas wrote: > > On Fri, Jun 21, 2019 at 12:27 PM Joe Perches wrote: > [] > > > Subsystem specific local PCI #defines without generic > > > naming is poor style and makes treewide grep and > > > refactoring much more difficult. > > > > Don't worry, we have the same objectives. I totally agree that local > > #defines are a bad thing, which is why I proposed this project in the > > first place. > > Hi again Bjorn. > > I didn't know that was your idea. Good idea. > > > I'm just saying that this is a "first-patch" sort of learning project > > and I think it'll avoid some list spamming and discouragement if we > > can figure out the scope and shake out some of the teething problems > > ahead of time. I don't want to end up with multiple versions of > > dozens of little 2-3 patch series posted every week or two. > > Great, that's sensible. > > > I'd rather be able to deal with a whole block of them at one time. > > Also very sensible. > > > > 2: Show that you compiled the object files and verified > > > where possible that there are no object file changes. > > > > Do you have any pointers for the best way to do this? Is it as simple > > as comparing output of "objdump -d"? > > Generically, yes. > > I have a little script that does the equivalent of: > > > make > mv .old > patch -P1 < > make > mv .new > diff -urN <(objdump -d .old) <(objdump -d .new) > > But it's not foolproof as gcc does not guarantee > compilation repeatability. > > And some subsystems Makefiles do not allow per-file > compilation. > Hi Joe, I tried using your specified technique here are the steps I took and the results I got. I built the object file before the patch named it "atl2-old.o" then I built it after the patch, named it "atl2-new.o" then i ran these commands:- $ objdump -d atl2-old.o > 1 $ objdump -d atl2-new.o > 2 $ diff -urN 1 2 --- 1 2019-06-22 13:56:17.881392372 +0530 +++ 2 2019-06-22 13:56:35.228018053 +0530 @@ -1,5 +1,5 @@ -atl2-old.o: file format elf64-x86-64 +atl2-new.o: file format elf64-x86-64 Disassembly of section .text: So both the object files are similar. Thanks, --Puranjay