Accepting request 762057 from home:wanghaisu:branches:network:ha-clustering:Factory
Update suse-coccinelle.patch OBS-URL: https://build.opensuse.org/request/show/762057 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/drbd?expand=0&rev=105
This commit is contained in:
parent
789c220c0e
commit
4fdf38b6cd
@ -100,6 +100,8 @@ for flavor in %{flavors_to_build}; do
|
|||||||
cp -r source $flavor
|
cp -r source $flavor
|
||||||
cp %{_sourcedir}/Module.supported $flavor
|
cp %{_sourcedir}/Module.supported $flavor
|
||||||
export DRBDSRC="$PWD/obj/$flavor"
|
export DRBDSRC="$PWD/obj/$flavor"
|
||||||
|
# bsc#1160194, check the coccicheck work.
|
||||||
|
#make coccicheck
|
||||||
make %{?_smp_mflags} -C %{kernel_source $flavor} modules M=$PWD/$flavor SPAAS=${SPAAS}
|
make %{?_smp_mflags} -C %{kernel_source $flavor} modules M=$PWD/$flavor SPAAS=${SPAAS}
|
||||||
|
|
||||||
# Check the compat result
|
# Check the compat result
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
diff -Naur drbd-9.0.20~0rc3+git.9c642cce.orig/drbd/drbd-kernel-compat/gen_compat_patch.sh drbd-9.0.20~0rc3+git.9c642cce/drbd/drbd-kernel-compat/gen_compat_patch.sh
|
diff -Naur drbd-9.0.20~1+git.7dce3c8b.orig/drbd/drbd-kernel-compat/gen_compat_patch.sh drbd-9.0.20~1+git.7dce3c8b/drbd/drbd-kernel-compat/gen_compat_patch.sh
|
||||||
--- drbd-9.0.20~0rc3+git.9c642cce.orig/drbd/drbd-kernel-compat/gen_compat_patch.sh 2019-10-09 15:10:24.932509799 +0800
|
--- drbd-9.0.20~1+git.7dce3c8b.orig/drbd/drbd-kernel-compat/gen_compat_patch.sh 2020-01-09 13:38:00.998984586 +0800
|
||||||
+++ drbd-9.0.20~0rc3+git.9c642cce/drbd/drbd-kernel-compat/gen_compat_patch.sh 2019-10-10 17:51:46.280918975 +0800
|
+++ drbd-9.0.20~1+git.7dce3c8b/drbd/drbd-kernel-compat/gen_compat_patch.sh 2020-01-09 13:38:10.407036976 +0800
|
||||||
@@ -41,6 +41,15 @@
|
@@ -41,6 +41,15 @@
|
||||||
< drbd-kernel-compat/cocci/debugfs_compat_template.cocci.in \
|
< drbd-kernel-compat/cocci/debugfs_compat_template.cocci.in \
|
||||||
>> $incdir/.compat.cocci;
|
>> $incdir/.compat.cocci;
|
||||||
@ -42,3 +42,19 @@ diff -Naur drbd-9.0.20~0rc3+git.9c642cce.orig/drbd/drbd-kernel-compat/gen_compat
|
|||||||
if [ -e $incdir/.compat.patch ]; then
|
if [ -e $incdir/.compat.patch ]; then
|
||||||
cat $incdir/.compat.patch >> $compat_patch.tmp;
|
cat $incdir/.compat.patch >> $compat_patch.tmp;
|
||||||
fi;
|
fi;
|
||||||
|
diff -Naur drbd-9.0.20~1+git.7dce3c8b.orig/Makefile drbd-9.0.20~1+git.7dce3c8b/Makefile
|
||||||
|
--- drbd-9.0.20~1+git.7dce3c8b.orig/Makefile 2020-01-09 13:38:00.994984563 +0800
|
||||||
|
+++ drbd-9.0.20~1+git.7dce3c8b/Makefile 2020-01-09 13:41:50.512262670 +0800
|
||||||
|
@@ -310,9 +310,11 @@
|
||||||
|
endif
|
||||||
|
|
||||||
|
coccicheck: coccinelle/*.cocci
|
||||||
|
+ $(eval coccilibpath := $(shell rpm -ql coccinelle|grep standard.h|xargs dirname))
|
||||||
|
@for file in $^ ; do \
|
||||||
|
echo " COCCICHECK $$(basename $${file} .cocci)"; \
|
||||||
|
- spatch --very-quiet drbd/drbd_*.c -D $(MODE) --sp-file $${file}; \
|
||||||
|
+ spatch drbd/drbd_*.c --macro-file-builtins $(coccilibpath)/standard.h \
|
||||||
|
+ --iso-file $(coccilibpath)/standard.iso -D $(MODE) --sp-file $${file}; \
|
||||||
|
done
|
||||||
|
|
||||||
|
Makefile: ;
|
||||||
|
Loading…
Reference in New Issue
Block a user