lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <ue75945gir8q6h0dpurvjn2gpr1i5q0tvd@4ax.com>
Date:	Fri, 01 Aug 2008 15:40:15 +1000
From:	Grant Coady <grant_lkml@...o.com.au>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	linux-kernel@...r.kernel.org, dougthompson@...ssion.com,
	bluesmoke-devel@...ts.sourceforge.net
Subject: [RFC] pci.ids.h: report on 27-rc1-mm1 PCI_* symbols

Hi Andrew, Doug,

Revived an old script to check pci.ids.h and source files in the kernel, 
there's only one driver sub-system defining PCI_* symbols with macros, 
should I submit a patch to unwind the macros?  

There's only 11 of them in 12 files:
grant@...h64:~/linux$ /home/common/bin/scan-pci.ids linux-2.6.27-rc1-mm1
extract symbols from pci_ids
find files with symbols in source tree
find source symbols, build xref
process any source file containing macros to get their symbols
perform macro expansion to get more symbols
  amd76x_edac.c
  cell_edac.c
  e752x_edac.c
  e7xxx_edac.c
  edac_device.c
  edac_device_sysfs.c
  edac_mc.c
  edac_mc_sysfs.c
  edac_module.c
  edac_pci.c
  edac_pci_sysfs.c
  i3000_edac.c
  i5000_edac.c
  i5100_edac.c
  i82443bxgx_edac.c
  i82860_edac.c
  i82875p_edac.c
  i82975x_edac.c
  mpc85xx_edac.c
  mv64x60_edac.c
  pasemi_edac.c
  r82600_edac.c

extract symbols from macro expansion, appending

found     11 symbols built by macros

source files building symbols with macros:
linux-2.6.27-rc1-mm1/drivers/edac/amd76x_edac.c
linux-2.6.27-rc1-mm1/drivers/edac/e752x_edac.c
linux-2.6.27-rc1-mm1/drivers/edac/e7xxx_edac.c
linux-2.6.27-rc1-mm1/drivers/edac/i3000_edac.c
linux-2.6.27-rc1-mm1/drivers/edac/i5000_edac.c
linux-2.6.27-rc1-mm1/drivers/edac/i5100_edac.c
linux-2.6.27-rc1-mm1/drivers/edac/i82443bxgx_edac.c
linux-2.6.27-rc1-mm1/drivers/edac/i82860_edac.c
linux-2.6.27-rc1-mm1/drivers/edac/i82875p_edac.c
linux-2.6.27-rc1-mm1/drivers/edac/i82975x_edac.c
linux-2.6.27-rc1-mm1/drivers/edac/pasemi_edac.c
linux-2.6.27-rc1-mm1/drivers/edac/r82600_edac.c

discover symbols unique to pci_ids.h or source

PCI_CLASS_ PCI_DEVICE_ PCI_VENDOR_ PCI_SUBDEVICE_ PCI_SUBVENDOR_

found   2700 symbols total
found    434 symbols defined only in source
found    362 symbols defined only in pci.ids

wc -l symbols-*
   362 symbols-pci-ids.h-defined-only
  2266 symbols-pci_ids.h-defined
     1 symbols-pci_ids.h-duplicates
   434 symbols-source-defined-only
    12 symbols-source-file-has-macro
    22 symbols-source-file-macro-c
     2 symbols-source-file-macro-define
  4158 symbols-source-file-xref-symbol
   123 symbols-source-only-files
  2338 symbols-source-symbol
  2700 symbols-total
 12418 total

pci_ids.h duplicate symbols:
PCI_VENDOR_ID_RDC

That lonely duplicated symbol may be taken care of already?  If not, 
a patchlet below.

Thanks,
Grant.

From: Grant Coady <gcoady.lk@...il.com>

pci.ids.h: remove a duplicated symbol

Signed-off-by: Grant Coady <gcoady.lk@...il.com>

---
 pci_ids.h |    2 --
 1 files changed, 2 deletions(-)

--- linux-2.6.27-rc1-mm1a/include/linux/pci_ids.h~	2008-07-30 19:42:45.910186385 +1000
+++ linux-2.6.27-rc1-mm1a/include/linux/pci_ids.h	2008-08-01 15:33:56.211527924 +1000
@@ -2177,8 +2177,6 @@
 #define PCI_DEVICE_ID_HERC_WIN		0x5732
 #define PCI_DEVICE_ID_HERC_UNI		0x5832
 
-#define PCI_VENDOR_ID_RDC		0x17f3
-
 #define PCI_VENDOR_ID_SITECOM		0x182d
 #define PCI_DEVICE_ID_SITECOM_DC105V2	0x3069
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ