powerpc: Add missing headersDon't inherit headers "by chances" from asm/prom.h, asm/mpc52xx.h,asm/pci.h etc...Include the needed headers, and remove asm/prom.h when it wasneeded exclusively for
powerpc: Add missing headersDon't inherit headers "by chances" from asm/prom.h, asm/mpc52xx.h,asm/pci.h etc...Include the needed headers, and remove asm/prom.h when it wasneeded exclusively for pulling necessary headers.Signed-off-by: Christophe Leroy <[email protected]>Signed-off-by: Michael Ellerman <[email protected]>Link: https://lore.kernel.org/r/be8bdc934d152a7d8ee8d1a840d5596e2f7d85e0.1646767214.git.christophe.leroy@csgroup.eu
show more ...
powerpc: fix typos in commentsVarious spelling mistakes in comments.Detected with the help of Coccinelle.Signed-off-by: Julia Lawall <[email protected]>Reviewed-by: Joel Stanley <[email protected]
powerpc: fix typos in commentsVarious spelling mistakes in comments.Detected with the help of Coccinelle.Signed-off-by: Julia Lawall <[email protected]>Reviewed-by: Joel Stanley <[email protected]>Signed-off-by: Michael Ellerman <[email protected]>Link: https://lore.kernel.org/r/[email protected]
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project license, GPL v2 only. The resulting SPDXlicense identifier is: GPL-2.0-onlySigned-off-by: Thomas Gleixner <[email protected]>Signed-off-by: Greg Kroah-Hartman <[email protected]>
License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseMany source files in the tree are missing licensing information, whichmakes it harder for compliance tools to determine
License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseMany source files in the tree are missing licensing information, whichmakes it harder for compliance tools to determine the correct license.By default all files without license information are under the defaultlicense of the kernel, which is GPL version 2.Update the files which contain no license information with the 'GPL-2.0'SPDX license identifier. The SPDX identifier is a legally bindingshorthand, which can be used instead of the full boiler plate text.This patch is based on work done by Thomas Gleixner and Kate Stewart andPhilippe Ombredanne.How this work was done:Patches were generated and checked against linux-4.14-rc6 for a subset ofthe use cases: - file had no licensing information it it. - file was a */uapi/* one with no licensing information in it, - file was a */uapi/* one with existing licensing information,Further patches will be generated in subsequent months to fix up caseswhere non-standard license headers were used, and references to licensehad to be inferred by heuristics based on keywords.The analysis to determine which SPDX License Identifier to be applied toa file was done in a spreadsheet of side by side results from of theoutput of two independent scanners (ScanCode & Windriver) producing SPDXtag:value files created by Philippe Ombredanne. Philippe prepared thebase worksheet, and did an initial spot review of a few 1000 files.The 4.13 kernel was the starting point of the analysis with 60,537 filesassessed. Kate Stewart did a file by file comparison of the scannerresults in the spreadsheet to determine which SPDX license identifier(s)to be applied to the file. She confirmed any determination that was notimmediately clear with lawyers working with the Linux Foundation.Criteria used to select files for SPDX license identifier tagging was: - Files considered eligible had to be source code files. - Make and config files were included as candidates if they contained >5 lines of source - File already had some variant of a license header in it (even if <5 lines).All documentation files were explicitly excluded.The following heuristics were used to determine which SPDX licenseidentifiers to apply. - when both scanners couldn't find any license traces, file was considered to have no license information in it, and the top level COPYING file license applied. For non */uapi/* files that summary was: SPDX license identifier # files ---------------------------------------------------|------- GPL-2.0 11139 and resulted in the first patch in this series. If that file was a */uapi/* path one, it was "GPL-2.0 WITH Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was: SPDX license identifier # files ---------------------------------------------------|------- GPL-2.0 WITH Linux-syscall-note 930 and resulted in the second patch in this series. - if a file had some form of licensing information in it, and was one of the */uapi/* ones, it was denoted with the Linux-syscall-note if any GPL family license was found in the file or had no licensing in it (per prior point). Results summary: SPDX license identifier # files ---------------------------------------------------|------ GPL-2.0 WITH Linux-syscall-note 270 GPL-2.0+ WITH Linux-syscall-note 169 ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21 ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17 LGPL-2.1+ WITH Linux-syscall-note 15 GPL-1.0+ WITH Linux-syscall-note 14 ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5 LGPL-2.0+ WITH Linux-syscall-note 4 LGPL-2.1 WITH Linux-syscall-note 3 ((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3 ((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1 and that resulted in the third patch in this series. - when the two scanners agreed on the detected license(s), that became the concluded license(s). - when there was disagreement between the two scanners (one detected a license but the other didn't, or they both detected different licenses) a manual inspection of the file occurred. - In most cases a manual inspection of the information in the file resulted in a clear resolution of the license that should apply (and which scanner probably needed to revisit its heuristics). - When it was not immediately clear, the license identifier was confirmed with lawyers working with the Linux Foundation. - If there was any question as to the appropriate license identifier, the file was flagged for further research and to be revisited later in time.In total, over 70 hours of logged manual review was done on thespreadsheet to determine the SPDX license identifiers to apply to thesource files by Kate, Philippe, Thomas and, in some cases, confirmationby lawyers working with the Linux Foundation.Kate also obtained a third independent scan of the 4.13 code base fromFOSSology, and compared selected files where the other two scannersdisagreed against that SPDX file, to see if there was new insights. TheWindriver scanner is based on an older version of FOSSology in part, sothey are related.Thomas did random spot checks in about 500 files from the spreadsheetsfor the uapi headers and agreed with SPDX license identifier in thefiles he inspected. For the non-uapi files Thomas did random spot checksin about 15000 files.In initial set of patches against 4.14-rc6, 3 files were found to havecopy/paste license identifier errors, and have been fixed to reflect thecorrect identifier.Additionally Philippe spent 10 hours this week doing a detailed manualinspection and review of the 12,461 patched files from the initial patchversion early this week with: - a full scancode scan run, collecting the matched texts, detected license ids and scores - reviewing anything where there was a license detected (about 500+ files) to ensure that the applied SPDX license was correct - reviewing anything where there was no detection but the patch license was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied SPDX license was correctThis produced a worksheet with 20 files needing minor correction. Thisworksheet was then exported into 3 different .csv files for thedifferent types of files to be modified.These .csv files were then reviewed by Greg. Thomas wrote a script toparse the csv files and add the proper SPDX tag to the file, in theformat that the file expected. This script was further refined by Gregbased on the output to detect more types of files automatically and todistinguish between header and source .c files (which need differentcomment types.) Finally Greg ran the script using the .csv files togenerate the patches.Reviewed-by: Kate Stewart <[email protected]>Reviewed-by: Philippe Ombredanne <[email protected]>Reviewed-by: Thomas Gleixner <[email protected]>Signed-off-by: Greg Kroah-Hartman <[email protected]>
powerpc: Remove all usages of NO_IRQNO_IRQ has been == 0 on powerpc for just over ten years (since commit0ebfff1491ef ("[POWERPC] Add new interrupt mapping core and changeplatforms to use it")).
powerpc: Remove all usages of NO_IRQNO_IRQ has been == 0 on powerpc for just over ten years (since commit0ebfff1491ef ("[POWERPC] Add new interrupt mapping core and changeplatforms to use it")). It's also 0 on most other arches.Although it's fairly harmless, every now and then it causes confusionwhen a driver is built on powerpc and another arch which doesn't defineNO_IRQ. There's at least 6 definitions of NO_IRQ in drivers/, at leastsome of which are to work around that problem.So we'd like to remove it. This is fairly trivial in the arch code, wejust convert: if (irq == NO_IRQ) to if (!irq) if (irq != NO_IRQ) to if (irq) irq = NO_IRQ; to irq = 0; return NO_IRQ; to return 0;And a few other odd cases as well.At least for now we keep the #define NO_IRQ, because there is drivercode that uses NO_IRQ and the fixes to remove those will go via othertrees.Note we also change some occurrences in PPC sound drivers, drivers/ps3,and drivers/macintosh.Signed-off-by: Michael Ellerman <[email protected]>
genirq: Remove irq argument from irq flow handlersMost interrupt flow handlers do not use the irq argument. Those fewwhich use it can retrieve the irq number from the irq descriptor.Remove the a
genirq: Remove irq argument from irq flow handlersMost interrupt flow handlers do not use the irq argument. Those fewwhich use it can retrieve the irq number from the irq descriptor.Remove the argument.Search and replace was done with coccinelle and some extra helperscripts around it. Thanks to Julia for her help!Signed-off-by: Thomas Gleixner <[email protected]>Cc: Julia Lawall <[email protected]>Cc: Jiang Liu <[email protected]>
powerpc: Delete non-required instances of include <linux/init.h>None of these files are actually using any __init type directivesand hence don't need to include <linux/init.h>. Most are just ale
powerpc: Delete non-required instances of include <linux/init.h>None of these files are actually using any __init type directivesand hence don't need to include <linux/init.h>. Most are just aleft over from __devinit and __cpuinit removal, or simply due tocode getting copied from one driver to the next.The one instance where we add an include for init.h covers offa case where that file was implicitly getting it from anotherheader which itself didn't need it.Signed-off-by: Paul Gortmaker <[email protected]>Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpcPull powerpc merge from Benjamin Herrenschmidt: "Here's the powerpc batch for this merge window. It is going to be
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpcPull powerpc merge from Benjamin Herrenschmidt: "Here's the powerpc batch for this merge window. It is going to be a bit more nasty than usual as in touching things outside of arch/powerpc mostly due to the big iSeriesectomy :-) We finally got rid of the bugger (legacy iSeries support) which was a PITA to maintain and that nobody really used anymore. Here are some of the highlights: - Legacy iSeries is gone. Thanks Stephen ! There's still some bits and pieces remaining if you do a grep -ir series arch/powerpc but they are harmless and will be removed in the next few weeks hopefully. - The 'fadump' functionality (Firmware Assisted Dump) replaces the previous (equivalent) "pHyp assisted dump"... it's a rewrite of a mechanism to get the hypervisor to do crash dumps on pSeries, the new implementation hopefully being much more reliable. Thanks Mahesh Salgaonkar. - The "EEH" code (pSeries PCI error handling & recovery) got a big spring cleaning, motivated by the need to be able to implement a new backend for it on top of some new different type of firwmare. The work isn't complete yet, but a good chunk of the cleanups is there. Note that this adds a field to struct device_node which is not very nice and which Grant objects to. I will have a patch soon that moves that to a powerpc private data structure (hopefully before rc1) and we'll improve things further later on (hopefully getting rid of the need for that pointer completely). Thanks Gavin Shan. - I dug into our exception & interrupt handling code to improve the way we do lazy interrupt handling (and make it work properly with "edge" triggered interrupt sources), and while at it found & fixed a wagon of issues in those areas, including adding support for page fault retry & fatal signals on page faults. - Your usual random batch of small fixes & updates, including a bunch of new embedded boards, both Freescale and APM based ones, etc..."I fixed up some conflicts with the generalized irq-domain changes fromGrant Likely, hopefully correctly.* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (141 commits) powerpc/ps3: Do not adjust the wrapper load address powerpc: Remove the rest of the legacy iSeries include files powerpc: Remove the remaining CONFIG_PPC_ISERIES pieces init: Remove CONFIG_PPC_ISERIES powerpc: Remove FW_FEATURE ISERIES from arch code tty/hvc_vio: FW_FEATURE_ISERIES is no longer selectable powerpc/spufs: Fix double unlocks powerpc/5200: convert mpc5200 to use of_platform_populate() powerpc/mpc5200: add options to mpc5200_defconfig powerpc/mpc52xx: add a4m072 board support powerpc/mpc5200: update mpc5200_defconfig to fit for charon board Documentation/powerpc/mpc52xx.txt: Checkpatch cleanup powerpc/44x: Add additional device support for APM821xx SoC and Bluestone board powerpc/44x: Add support PCI-E for APM821xx SoC and Bluestone board MAINTAINERS: Update PowerPC 4xx tree powerpc/44x: The bug fixed support for APM821xx SoC and Bluestone board powerpc: document the FSL MPIC message register binding powerpc: add support for MPIC message register API powerpc/fsl: Added aliased MSIIR register address to MSI node in dts powerpc/85xx: mpc8548cds - add 36-bit dts ...
powerpc: Move GE PIC driversMove the GE PIC drivers to allow these to be used by non-86xx boards.Signed-off-by: Martyn Welch <[email protected]>Signed-off-by: Kumar Gala <[email protected]
powerpc: Move GE PIC driversMove the GE PIC drivers to allow these to be used by non-86xx boards.Signed-off-by: Martyn Welch <[email protected]>Signed-off-by: Kumar Gala <[email protected]>