stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Hutchings <ben@decadent.org.uk>
To: Arnd Bergmann <arnd@arndb.de>
Cc: stable@vger.kernel.org, James Bottomley <JBottomley@Odin.com>
Subject: Re: [PATCH 3.16-stable 34/87] ips: remove pointless #warning
Date: Mon, 06 Nov 2017 17:31:39 +0000	[thread overview]
Message-ID: <1509989499.2748.101.camel@decadent.org.uk> (raw)
In-Reply-To: <20170505194745.3627137-35-arnd@arndb.de>

[-- Attachment #1: Type: text/plain, Size: 1127 bytes --]

On Fri, 2017-05-05 at 21:46 +0200, Arnd Bergmann wrote:
> From: James Bottomley <JBottomley@Odin.com>
> 
> Commit e03c2da6574223081b786960e39c1e5ecf5d492d upstream.
> 
> non-x86 builds want the #warning in the IPS code about compiling on the wrong
> architecture removed because it keeps triggering on their platforms build
> farms.  Transform from a compile time warning into a runtime one with taint to
> preserve the original intent of the authors.

I'll apply this, but:

[...]
> @@ -6789,6 +6785,11 @@ ips_remove_device(struct pci_dev *pci_dev)
>  static int __init
>  ips_module_init(void)
>  {
> +#if !defined(__i386__) && !defined(__ia64__) && !defined(__x86_64__)
> +	printk(KERN_ERR "ips: This driver has only been tested on the x86/ia64/x86_64 platforms\n");
> +	add_taint(TAINT_CPU_OUT_OF_SPEC, LOCKDEP_STILL_OK);
> +#endif
[...]

This is not the right taint flag to use. 
Documentation/sysctl/kernel.txt says:

   4 - Unsafe SMP processors: SMP with CPUs not designed for SMP.

Ben.

-- 
Ben Hutchings
It is a miracle that curiosity survives formal education. - Albert
Einstein


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2017-11-06 17:31 UTC|newest]

Thread overview: 102+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-05 19:46 [PATCH 3.16-stable 00/87] build warnings and errors Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 01/87] mm/init: fix zone boundary creation Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 02/87] Disable "frame-address" warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 03/87] modpost: expand pattern matching to support substring matches Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 04/87] modpost: don't emit section mismatch warnings for compiler optimizations Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 05/87] module: fix types of device tables aliases Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 06/87] MODULE_DEVICE_TABLE: fix some callsites Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 07/87] mm/hugetlb: improve locking in dissolve_free_huge_pages() Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 08/87] cpumask_set_cpu_local_first => cpumask_local_spread, lament Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 09/87] gfs2: avoid uninitialized variable warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 10/87] gfs2: remove IS_ERR_VALUE abuse Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 11/87] iio: fix printk format string warning Arnd Bergmann
2017-11-06 16:55   ` Ben Hutchings
2017-05-05 19:46 ` [PATCH 3.16-stable 12/87] iio: adc: fix building on 64-bit Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 13/87] infiniband: mlx5: avoid a compile-time warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 14/87] power/reset: xgene-reset: Fix prototype of xgene_restart() Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 15/87] mfd: arizona: Rid data size incompatibility warn when building for 64bit Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 16/87] Input: joystick - use get_cycles on ARMv8 Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 17/87] dma: pl08x: Use correct specifier for size_t values Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 18/87] gpio: drop retval check enforcing from gpiochip_remove() Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 19/87] ASoC: fsl-ssi: fix do_div build warning in fsl_ssi_set_bclk() Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 20/87] ASoC: imx-audmux: Use uintptr_t for port numbers Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 21/87] ASoC: fsl_sai: Set SYNC bit of TCR2 to Asynchronous Mode Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 22/87] ASoC: adau1977: Fix truncation warning on 64 bit architectures Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 23/87] ALSA: oxygen: Fix logical-not-parentheses warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 24/87] ata: hpt366: fix constant cast warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 25/87] clk/efm32gg: fix dt init prototype Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 26/87] spi: rspi: Remove unused variable in rspi_rz_transfer_one() Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 27/87] spi/atmel: Fix pointer to int conversion warnings on 64 bit builds Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 28/87] spi/pl022: Explicitly truncate large bitmask Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 29/87] tty: nozomi: avoid a harmless gcc warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 30/87] tty/isicom: fix big-endian compile warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 31/87] i2o: hide unsafe ioctl on 64-bit Arnd Bergmann
2017-05-05 20:07   ` Patch "[PATCH 3.16-stable 31/87] i2o: hide unsafe ioctl on 64-bit" has been added to the 3.18-stable tree gregkh
2017-05-05 19:46 ` [PATCH 3.16-stable 32/87] dm bufio: hide bogus warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 33/87] scsi-tgt: fix type conversion warning Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 34/87] ips: remove pointless #warning Arnd Bergmann
2017-11-06 17:31   ` Ben Hutchings [this message]
2017-05-05 19:46 ` [PATCH 3.16-stable 35/87] scsi: advansys: remove #warning message Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 36/87] bfa: Fix indentation Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 37/87] fnic: assign FIP_ALL_FCF_MACS to fcoe_all_fcfs Arnd Bergmann
2017-11-06 17:41   ` Ben Hutchings
2017-05-05 19:46 ` [PATCH 3.16-stable 38/87] be2iscsi: Fix bogus WARN_ON length check Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 39/87] mvsas: fix misleading indentation Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 40/87] paride: fix the "verbose" module param Arnd Bergmann
2017-05-05 19:46 ` [PATCH 3.16-stable 41/87] aic94xx: Skip reading user settings if flash is not found Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 42/87] mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 43/87] mtd: maps: rbtx4939-flash: delete an unused variable in rbtx4939_flash_remove Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 44/87] xilinx: Fix compiler warning Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 45/87] i40e: Reduce stack in i40e_dbg_dump_desc Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 46/87] mlx5: avoid build warnings on 32-bit Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 47/87] mISDN: avoid arch specific __builtin_return_address call Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 48/87] cpmac: remove hopeless #warning Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 49/87] net: caif: fix misleading indentation Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 50/87] net: am2150: fix nmclan_cs.c shared interrupt handling Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 51/87] am2150: Update nmclan_cs.c to use update PCMCIA API Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 52/87] net: tulip: turn compile-time warning into dev_warn() Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 53/87] net: vxge: avoid unused function warnings Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 54/87] ethernet: amd: fix pci device ids Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 55/87] drivers/net/ethernet/dec/tulip/uli526x.c: fix misleading indentation in uli526x_timer Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 56/87] hostap: avoid uninitialized variable use in hfa384x_get_rid Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 57/87] iwlegacy: avoid warning about missing braces Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 58/87] brcmfmac: avoid gcc-5.1 warning Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 59/87] netfilter: Fix switch statement warnings with recent gcc Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 60/87] netfilter; Add some missing default cases to switch statements in nft_reject Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 61/87] drm/i915: cleanup some indenting Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 62/87] video: mx3fb: always enable BACKLIGHT_LCD_SUPPORT Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 63/87] staging: bcm: add 32-bit host dependency Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 64/87] staging: imx-drm: fix indentation warning Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 65/87] staging: vt6655: fix overly large stack usage Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 66/87] Staging: iio: adc: fix indent on break statement Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 67/87] Staging: lustre: missing curly braces in ll_setattr_raw() Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 68/87] staging: rtl8723au: core: rtw_wlan_util: fix misleading indentation Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 69/87] Staging: wlan-ng: fix sparse warning in prism2fw.c Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 70/87] staging: dgnc: Fix frame size is larger than 1024B Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 71/87] x86/xen: fix upper bound of pmd loop in xen_cleanhighmap() Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 72/87] x86/boot: Add CONFIG_PARAVIRT_SPINLOCKS quirk to arch/x86/boot/compressed/misc.h Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 73/87] ARM: cns3xxx: shut up frame size warning Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 74/87] ARM: 8383/1: nommu: avoid deprecated source register on mov Arnd Bergmann
2017-05-06  9:45   ` Arnd Bergmann
2017-05-06 10:06     ` Russell King - ARM Linux
2017-05-08 19:53       ` Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 75/87] ARM: 8221/1: PJ4: allow building in Thumb-2 mode Arnd Bergmann
2017-05-06  7:42   ` Ard Biesheuvel
2017-05-08 19:47     ` Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 76/87] ARM: OMAP: Fix Kconfig warning for omap1 Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 77/87] ARM: 8160/1: drop warning about return_address not using unwind tables Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 78/87] ARM: 8296/1: cache-l2x0: clean up aurora cache handling Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 79/87] arm64: add missing data types in smp_load_acquire/smp_store_release Arnd Bergmann
2017-11-06 18:56   ` Ben Hutchings
2017-11-06 20:24     ` Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 80/87] MIPS: BMIPS: Fix ".previous without corresponding .section" warnings Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 81/87] MIPS: DEC: Avoid la pseudo-instruction in delay slots Arnd Bergmann
2017-11-06 19:05   ` Ben Hutchings
2017-05-05 19:47 ` [PATCH 3.16-stable 82/87] MIPS: ip27: Disable qlge driver in defconfig Arnd Bergmann
2017-11-06 19:08   ` Ben Hutchings
2017-05-05 19:47 ` [PATCH 3.16-stable 83/87] MIPS: ip22: Fix ip28 build for modern gcc Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 84/87] MIPS: MSP71xx: remove odd locking in PCI config space access code Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 85/87] MIPS: Fix the build on jz4740 after removing the custom gpio.h Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 86/87] MIPS: TXx9: Delete an unused variable in tx4927_pcibios_setup Arnd Bergmann
2017-05-05 19:47 ` [PATCH 3.16-stable 87/87] MIPS: elf2ecoff: Fix warning due to dead code Arnd Bergmann
2017-11-06 19:14 ` [PATCH 3.16-stable 00/87] build warnings and errors Ben Hutchings

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1509989499.2748.101.camel@decadent.org.uk \
    --to=ben@decadent.org.uk \
    --cc=JBottomley@Odin.com \
    --cc=arnd@arndb.de \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).