[arch-commits] Commit in linux-lts/trunk (4 files)
Andreas Radke
andyrtr at archlinux.org
Fri May 1 12:29:13 UTC 2015
Date: Friday, May 1, 2015 @ 14:29:13
Author: andyrtr
Revision: 238310
upgpkg: linux-lts 3.14.40-2
build with testing gcc-5; apply some upstream fixes for gcc-5 related build problems, disable a few modules that are not trivial to fix and where no simple upstream fix is available
Added:
linux-lts/trunk/gcc5_buildfixes.diff
Modified:
linux-lts/trunk/PKGBUILD
linux-lts/trunk/config
linux-lts/trunk/config.x86_64
----------------------+
PKGBUILD | 16 +++++-
config | 14 ++---
config.x86_64 | 14 ++---
gcc5_buildfixes.diff | 115 +++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 141 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-05-01 05:49:46 UTC (rev 238309)
+++ PKGBUILD 2015-05-01 12:29:13 UTC (rev 238310)
@@ -5,7 +5,7 @@
pkgbase=linux-lts
_srcname=linux-3.14
pkgver=3.14.40
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
url="http://www.kernel.org/"
license=('GPL2')
@@ -22,6 +22,7 @@
'0002-module-allow-multiple-calls-to-MODULE_DEVICE_TABLE-p.patch'
'0003-module-remove-MODULE_GENERIC_TABLE.patch'
'0006-genksyms-fix-typeof-handling.patch'
+ 'gcc5_buildfixes.diff'
)
# https://www.kernel.org/pub/linux/kernel/v3.x/sha256sums.asc
sha256sums=('61558aa490855f42b6340d1a1596be47454909629327c49a5e4e10268065dffa'
@@ -28,14 +29,15 @@
'SKIP'
'6334031465a7cdf8187c86016ba63e1adc58c892910f2c3703c70eaae2fdbafe'
'SKIP'
- '999486d20e07e489bb42356b529b739c65ad65de9191282f0ddbbc0eb9b1718e'
- '140098de1ba714c5916ea76578b8bf549ce801c4aa0c786b7c90289b85ecdb77'
+ '9f0caf74d70599ac4eda356a42c7d9cb116f0cf42e87f165a383e4d215ae212d'
+ 'f40e1c54f53feaf3b35a8fca19a98c0f48d83cb8f9738eb8f97fc860b3a93e46'
'1f036f7464da54ae510630f0edb69faa115287f86d9f17641197ffda8cfd49e0'
'faced4eb4c47c4eb1a9ee8a5bf8a7c4b49d6b4d78efbe426e410730e6267d182'
'6d72e14552df59e6310f16c176806c408355951724cd5b48a47bf01591b8be02'
'52dec83a8805a8642d74d764494acda863e0aa23e3d249e80d4b457e20a3fd29'
'65d58f63215ee3c5f9c4fc6bce36fc5311a6c7dbdbe1ad29de40647b47ff9c0d'
- 'cf2e7a2d00787f754028e7459688c2755a406e632ce48b60952fa4ff7ed6f4b7')
+ 'cf2e7a2d00787f754028e7459688c2755a406e632ce48b60952fa4ff7ed6f4b7'
+ '470d6d019d288dce02b4a9758a34ea71d41715663a19a164749212a470a131e7')
validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds <torvalds at linux-foundation.org>
'647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman (Linux kernel stable release signing key) <greg at kroah.com>
)
@@ -54,6 +56,12 @@
# add upstream patch
patch -p1 -i "${srcdir}/patch-${pkgver}"
+ # buildfixes for gcc5
+ # https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/scsi/qla2xxx/qla_nx2.c?id=9493c2422cae272d6f1f567cbb424195defe4176
+ # https://lkml.org/lkml/2014/11/9/27
+ # https://lkml.org/lkml/2014/12/14/55
+ patch -p1 -i "${srcdir}/gcc5_buildfixes.diff"
+
# add latest fixes from stable queue, if needed
# http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
Modified: config
===================================================================
--- config 2015-05-01 05:49:46 UTC (rev 238309)
+++ config 2015-05-01 12:29:13 UTC (rev 238310)
@@ -1871,7 +1871,7 @@
CONFIG_MEGARAID_MM=m
CONFIG_MEGARAID_MAILBOX=m
CONFIG_MEGARAID_LEGACY=m
-CONFIG_MEGARAID_SAS=m
+# CONFIG_MEGARAID_SAS is not set
CONFIG_SCSI_MPT2SAS=m
CONFIG_SCSI_MPT2SAS_MAX_SGE=128
# CONFIG_SCSI_MPT2SAS_LOGGING is not set
@@ -5641,14 +5641,14 @@
CONFIG_FB_OLPC_DCON_1=y
CONFIG_FB_OLPC_DCON_1_5=y
# CONFIG_PANEL is not set
-CONFIG_R8187SE=m
+# CONFIG_R8187SE is not set
CONFIG_RTL8192U=m
CONFIG_RTLLIB=m
CONFIG_RTLLIB_CRYPTO_CCMP=m
CONFIG_RTLLIB_CRYPTO_TKIP=m
CONFIG_RTLLIB_CRYPTO_WEP=m
-CONFIG_RTL8192E=m
-CONFIG_R8712U=m
+# CONFIG_RTL8192E is not set
+# CONFIG_R8712U is not set
CONFIG_R8188EU=m
CONFIG_88EU_AP_MODE=y
CONFIG_88EU_P2P=y
@@ -5655,7 +5655,7 @@
CONFIG_R8821AE=m
CONFIG_RTS5139=m
# CONFIG_RTS5139_DEBUG is not set
-CONFIG_RTS5208=m
+# CONFIG_RTS5208 is not set
# CONFIG_RTS5208_DEBUG is not set
# CONFIG_TRANZPORT is not set
CONFIG_IDE_PHISON=m
@@ -5665,8 +5665,8 @@
CONFIG_VT6655=m
CONFIG_VT6656=m
CONFIG_DX_SEP=m
-CONFIG_WLAGS49_H2=m
-CONFIG_WLAGS49_H25=m
+# CONFIG_WLAGS49_H2 is not set
+# CONFIG_WLAGS49_H25 is not set
CONFIG_FB_SM7XX=m
CONFIG_CRYSTALHD=m
CONFIG_FB_XGI=m
Modified: config.x86_64
===================================================================
--- config.x86_64 2015-05-01 05:49:46 UTC (rev 238309)
+++ config.x86_64 2015-05-01 12:29:13 UTC (rev 238310)
@@ -1835,7 +1835,7 @@
CONFIG_MEGARAID_MM=m
CONFIG_MEGARAID_MAILBOX=m
CONFIG_MEGARAID_LEGACY=m
-CONFIG_MEGARAID_SAS=m
+# CONFIG_MEGARAID_SAS is not set
CONFIG_SCSI_MPT2SAS=m
CONFIG_SCSI_MPT2SAS_MAX_SGE=128
# CONFIG_SCSI_MPT2SAS_LOGGING is not set
@@ -5430,14 +5430,14 @@
CONFIG_COMEDI_NI_LABPC=m
CONFIG_COMEDI_NI_TIO=m
# CONFIG_PANEL is not set
-CONFIG_R8187SE=m
+# CONFIG_R8187SE is not set
CONFIG_RTL8192U=m
CONFIG_RTLLIB=m
CONFIG_RTLLIB_CRYPTO_CCMP=m
CONFIG_RTLLIB_CRYPTO_TKIP=m
CONFIG_RTLLIB_CRYPTO_WEP=m
-CONFIG_RTL8192E=m
-CONFIG_R8712U=m
+# CONFIG_RTL8192E is not set
+# CONFIG_R8712U is not set
CONFIG_R8188EU=m
CONFIG_88EU_AP_MODE=y
CONFIG_88EU_P2P=y
@@ -5444,7 +5444,7 @@
CONFIG_R8821AE=m
CONFIG_RTS5139=m
# CONFIG_RTS5139_DEBUG is not set
-CONFIG_RTS5208=m
+# CONFIG_RTS5208 is not set
# CONFIG_RTS5208_DEBUG is not set
# CONFIG_TRANZPORT is not set
CONFIG_IDE_PHISON=m
@@ -5454,8 +5454,8 @@
CONFIG_VT6655=m
CONFIG_VT6656=m
CONFIG_DX_SEP=m
-CONFIG_WLAGS49_H2=m
-CONFIG_WLAGS49_H25=m
+# CONFIG_WLAGS49_H2 is not set
+# CONFIG_WLAGS49_H25 is not set
CONFIG_FB_SM7XX=m
CONFIG_CRYSTALHD=m
CONFIG_FB_XGI=m
Added: gcc5_buildfixes.diff
===================================================================
--- gcc5_buildfixes.diff (rev 0)
+++ gcc5_buildfixes.diff 2015-05-01 12:29:13 UTC (rev 238310)
@@ -0,0 +1,115 @@
+From 9493c2422cae272d6f1f567cbb424195defe4176 Mon Sep 17 00:00:00 2001
+From: Chen Gang <gang.chen.5i5j at gmail.com>
+Date: Sat, 1 Nov 2014 19:46:12 +0800
+Subject: qla2xxx: remove redundant declaration in 'qla_gbl.h'
+
+Remove 2 redundant extern inline functions: qla8044_set_qsnt_ready() and
+qla8044_need_reset_handler(). At present, within upstream next kernel
+source code, they are only used within "drivers/scsi/qla2xxx/qla_nx2.c".
+
+The related error and warnings (with allmodconfig under tile):
+
+ CC [M] drivers/scsi/qla2xxx/qla_nx2.o
+ drivers/scsi/qla2xxx/qla_nx2.c:1633:1: error: static declaration of 'qla8044_need_reset_handler' follows non-static declaration
+ qla8044_need_reset_handler(struct scsi_qla_host *vha)
+ ^
+ In file included from drivers/scsi/qla2xxx/qla_def.h:3706:0,
+ from drivers/scsi/qla2xxx/qla_nx2.c:11:
+ drivers/scsi/qla2xxx/qla_gbl.h:756:20: note: previous declaration of 'qla8044_need_reset_handler' was here
+ extern inline void qla8044_need_reset_handler(struct scsi_qla_host *vha);
+ ^
+ drivers/scsi/qla2xxx/qla_gbl.h:756:20: warning: inline function 'qla8044_need_reset_handler' declared but never defined
+ make[3]: *** [drivers/scsi/qla2xxx/qla_nx2.o] Error 1
+ make[2]: *** [drivers/scsi/qla2xxx] Error 2
+ make[1]: *** [drivers/scsi] Error 2
+ make: *** [drivers] Error 2
+
+ CC [M] drivers/scsi/qla2xxx/qla_tmpl.o
+ In file included from drivers/scsi/qla2xxx/qla_def.h:3706:0,
+ from drivers/scsi/qla2xxx/qla_tmpl.c:7:
+ drivers/scsi/qla2xxx/qla_gbl.h:755:20: warning: inline function 'qla8044_set_qsnt_ready' declared but never defined
+ extern inline void qla8044_set_qsnt_ready(struct scsi_qla_host *vha);
+ ^
+
+Signed-off-by: Chen Gang <gang.chen.5i5j at gmail.com>
+Acked-by: Saurav Kashyap <saurav.kashyap at qlogic.com>
+Signed-off-by: Christoph Hellwig <hch at lst.de>
+
+diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h
+index b1865a7..7686bfe 100644
+--- a/drivers/scsi/qla2xxx/qla_gbl.h
++++ b/drivers/scsi/qla2xxx/qla_gbl.h
+@@ -752,8 +752,6 @@ extern void qla8044_set_idc_dontreset(struct scsi_qla_host *ha);
+ extern int qla8044_rd_direct(struct scsi_qla_host *vha, const uint32_t crb_reg);
+ extern void qla8044_wr_direct(struct scsi_qla_host *vha,
+ const uint32_t crb_reg, const uint32_t value);
+-extern inline void qla8044_set_qsnt_ready(struct scsi_qla_host *vha);
+-extern inline void qla8044_need_reset_handler(struct scsi_qla_host *vha);
+ extern int qla8044_device_state_handler(struct scsi_qla_host *vha);
+ extern void qla8044_clear_qsnt_ready(struct scsi_qla_host *vha);
+ extern void qla8044_clear_drv_active(struct qla_hw_data *);
+diff --git a/drivers/scsi/qla2xxx/qla_nx2.c b/drivers/scsi/qla2xxx/qla_nx2.c
+index 24a8528..ed4d6b6 100644
+--- a/drivers/scsi/qla2xxx/qla_nx2.c
++++ b/drivers/scsi/qla2xxx/qla_nx2.c
+@@ -238,7 +238,7 @@ qla8044_rmw_crb_reg(struct scsi_qla_host *vha,
+ return;
+ }
+
+-inline void
++static inline void
+ qla8044_set_qsnt_ready(struct scsi_qla_host *vha)
+ {
+ uint32_t qsnt_state;
+--
+cgit v0.10.2
+
+diff --git a/lib/mpi/mpi-inline.h b/lib/mpi/mpi-inline.h
+index e2b3985..c245ea3 100644
+--- a/lib/mpi/mpi-inline.h
++++ b/lib/mpi/mpi-inline.h
+@@ -30,7 +30,7 @@
+ #define G10_MPI_INLINE_H
+
+ #ifndef G10_MPI_INLINE_DECL
+-#define G10_MPI_INLINE_DECL extern inline
++#define G10_MPI_INLINE_DECL static inline
+ #endif
+
+ G10_MPI_INLINE_DECL mpi_limb_t
+diff --git a/lib/mpi/mpi-internal.h b/lib/mpi/mpi-internal.h
+index 60cf765..91ef8ac 100644
+--- a/lib/mpi/mpi-internal.h
++++ b/lib/mpi/mpi-internal.h
+@@ -168,20 +168,24 @@ void mpi_rshift_limbs(MPI a, unsigned int count);
+ int mpi_lshift_limbs(MPI a, unsigned int count);
+
+ /*-- mpihelp-add.c --*/
++#ifndef __GNUC__
+ mpi_limb_t mpihelp_add_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
+ mpi_size_t s1_size, mpi_limb_t s2_limb);
+-mpi_limb_t mpihelp_add_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
+- mpi_ptr_t s2_ptr, mpi_size_t size);
+ mpi_limb_t mpihelp_add(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size,
+ mpi_ptr_t s2_ptr, mpi_size_t s2_size);
++#endif
++mpi_limb_t mpihelp_add_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
++ mpi_ptr_t s2_ptr, mpi_size_t size);
+
+ /*-- mpihelp-sub.c --*/
++#ifndef __GNUC__
+ mpi_limb_t mpihelp_sub_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
+ mpi_size_t s1_size, mpi_limb_t s2_limb);
+-mpi_limb_t mpihelp_sub_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
+- mpi_ptr_t s2_ptr, mpi_size_t size);
+ mpi_limb_t mpihelp_sub(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size,
+ mpi_ptr_t s2_ptr, mpi_size_t s2_size);
++#endif
++mpi_limb_t mpihelp_sub_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
++ mpi_ptr_t s2_ptr, mpi_size_t size);
+
+ /*-- mpihelp-cmp.c --*/
+ int mpihelp_cmp(mpi_ptr_t op1_ptr, mpi_ptr_t op2_ptr, mpi_size_t size);
+--
+1.9.3
+
More information about the arch-commits
mailing list