PA-RISC: fix compile
Subsystems (5)
cover PA-RISC: fix compile
Since d66acc39c7cee323733c8503b9de1821a56dff7e (bitops: Optimise get_order()) getorder.h includes log2.h which leads to an include loop on PA-RISC, bringing a bunch of other breakage to light. This patchset fixes the compilation of the current state of 3.4 on HPPA.
Rolf Eike Beer (6):
use linux/bitops.h instead of linux/log2.h to get fls()
parisc: add missing includes in asm/spinlock.h
parisc: add missing forward declarations in asm/hardware.h
parisc: drop include of asm/pdc.h from asm/hardware.h
parisc: add missing include of asm/page.h to asm/pgtable.h
parisc: move definition of PAGE0 to asm/page.h
arch/parisc/include/asm/hardware.h | 3 ++- arch/parisc/include/asm/page.h | 6 ++++++ arch/parisc/include/asm/pdc.h | 7 ------- arch/parisc/include/asm/pgtable.h | 2 ++ arch/parisc/include/asm/spinlock.h | 2 ++ arch/parisc/kernel/pdc_cons.c | 1 + arch/parisc/kernel/time.c | 1 + drivers/parisc/sba_iommu.c | 1 + drivers/video/console/sticore.c | 2 ++ include/asm-generic/getorder.h | 2 +- 10 files changed, 18 insertions(+), 9 deletions(-)
Signature · 1 line
1.7.9.2
PATCH 1/6 use linux/bitops.h instead of linux/log2.h to get fls()
Since d66acc39c7cee323733c8503b9de1821a56dff7e (bitops: Optimise get_order()) getorder.h includes log2.h to get fls() and fls64(). They are not defined in log2.h, but in bitops.h. This works since log2.h includes bitops.h, but we should do it properly to not get any bad surprises if log2.h changes.
--- include/asm-generic/getorder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/asm-generic/getorder.h +1 -1
@@ -4,7 +4,7 @@#ifndef __ASSEMBLY__#include <linux/compiler.h> -#include <linux/log2.h> +#include <linux/bitops.h> /* * Runtime evaluation of get_order()
Signature · 1 line
1.7.9.2
PATCH 1/6 use linux/bitops.h instead of linux/log2.h to get fls()
In reply to Rolf Eike BeerSince d66acc39c7cee323733c8503b9de1821a56dff7e (bitops: Optimise get_order()) getorder.h includes log2.h to get fls() and fls64(). They are not defined in log2.h, but in bitops.h. This works since log2.h includes bitops.h, but we should do it properly to not get any bad surprises if log2.h changes.
--- include/asm-generic/getorder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/asm-generic/getorder.h +1 -1
@@ -4,7 +4,7 @@#ifndef __ASSEMBLY__#include <linux/compiler.h> -#include <linux/log2.h> +#include <linux/bitops.h> /* * Runtime evaluation of get_order()
Signature · 1 line
1.7.9.2
PATCH 2/6 parisc: add missing includes in asm/spinlock.h
In reply to Rolf Eike BeerThis leads to this errors:
In file included from /home/buildbot/repos/linux/arch/parisc/include/as= m/atomic.h:20:0,
from /home/buildbot/repos/linux/include/linux/atomic.h=
:4,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/bitops.h:56,
from /home/buildbot/repos/linux/include/linux/bitops.h=
:22,
from /home/buildbot/repos/linux/include/linux/kernel.h=
:19,
from /home/buildbot/repos/linux/include/linux/sched.h:=
55,
from /home/buildbot/repos/linux/arch/parisc/kernel/asm=
-offsets.c:31:/home/buildbot/repos/linux/arch/parisc/include/asm/spinlock.h: In funct= ion =E2=80=98arch_spin_is_locked=E2=80=99:/home/buildbot/repos/linux/arch/parisc/include/asm/spinlock.h:9:2: erro=
r: implicit declaration of function =E2=80=98__ldcw_align=E2=80=99 [-We= rror=3Dimplicit-function-declaration] /home/buildbot/repos/linux/arch/parisc/include/asm/spinlock.h:9:29: war=
ning: initialization makes pointer from integer without a cast [enabled=
by default]/home/buildbot/repos/linux/arch/parisc/include/asm/spinlock.h: In funct= ion =E2=80=98arch_spin_lock_flags=E2=80=99:/home/buildbot/repos/linux/arch/parisc/include/asm/spinlock.h:22:2: err=
or: implicit declaration of function =E2=80=98mb=E2=80=99 [-Werror=3Dim= plicit-function-declaration] /home/buildbot/repos/linux/arch/parisc/include/asm/spinlock.h:23:4: war=
ning: assignment makes pointer from integer without a cast [enabled by = default] /home/buildbot/repos/linux/arch/parisc/include/asm/spinlock.h:24:2: err=
or: implicit declaration of function =E2=80=98__ldcw=E2=80=99 [-Werror=3D= implicit-function-declaration]
--- arch/parisc/include/asm/spinlock.h | 2 ++ 1 file changed, 2 insertions(+)
arch/parisc/include/a= renamed from arch/parisc/include/asm/spinlock.h +0 -0
sm/spinlock.h
index 804aa28..3516e0b 100644
arch/parisc/include/asm/spinlock.h +0 -0
@@ -1,6 +1,8 @@#ifndef __ASM_SPINLOCK_H#define __ASM_SPINLOCK_H
=20
+#include <asm/barrier.h>
+#include <asm/ldcw.h>
#include <asm/processor.h>
#include <asm/spinlock_types.h>
=20
--=20
1.7.9.2
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 3/6 parisc: add missing forward declarations in asm/hardware.h
In reply to Rolf Eike Beer=46ixes this warnings:
In file included from /home/buildbot/repos/linux/arch/parisc/include/as= m/processor.h:15:0,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/spinlock.h:4,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/atomic.h:20,
from /home/buildbot/repos/linux/include/linux/atomic.h=
:4,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/bitops.h:11,
from /home/buildbot/repos/linux/include/linux/bitops.h=
:22,
from /home/buildbot/repos/linux/include/linux/kernel.h=
:19,
from /home/buildbot/repos/linux/include/linux/sched.h:=
55,
from /home/buildbot/repos/linux/arch/parisc/kernel/asm=
-offsets.c:31:/home/buildbot/repos/linux/arch/parisc/include/asm/hardware.h:106:10: w=
arning: =E2=80=98struct hardware_path=E2=80=99 declared inside paramete= r list [enabled by default] /home/buildbot/repos/linux/arch/parisc/include/asm/hardware.h:106:10: w=
arning: its scope is only this definition or declaration, which is prob= ably not what you want [enabled by default] /home/buildbot/repos/linux/arch/parisc/include/asm/hardware.h:116:59: w=
arning: =E2=80=98struct hardware_path=E2=80=99 declared inside paramete= r list [enabled by default] /home/buildbot/repos/linux/arch/parisc/include/asm/hardware.h:118:47: w=
arning: =E2=80=98struct hardware_path=E2=80=99 declared inside paramete= r list [enabled by default] /home/buildbot/repos/linux/arch/parisc/include/asm/hardware.h:119:57: w=
arning: =E2=80=98struct hardware_path=E2=80=99 declared inside paramete= r list [enabled by default]
--- arch/parisc/include/asm/hardware.h | 2 ++ 1 file changed, 2 insertions(+)
arch/parisc/include/a= renamed from arch/parisc/include/asm/hardware.h +0 -0
sm/hardware.h
index 4e96268..036e703 100644
arch/parisc/include/asm/hardware.h +0 -0
@@ -95,12 +95,14 @@ struct bc_module {#define HPHW_MC 15#define HPHW_FAULTY 31
=20
+struct parisc_device_id;
=20
/* hardware.c: */
extern const char *parisc_hardware_description(struct parisc_device_id= *id);
extern enum cpu_type parisc_get_cpu_type(unsigned long hversion);
=20
struct pci_dev;
+struct hardware_path;
=20
/* drivers.c: */
extern struct parisc_device *alloc_pa_dev(unsigned long hpa,
--=20
1.7.9.2
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 4/6 parisc: drop include of asm/pdc.h from asm/hardware.h
In reply to Rolf Eike BeerIt seems none of the symbols defined by pdc.h is needed, but it introdu= ces an
include loop causing compile errors:
In file included from /home/buildbot/repos/linux/arch/parisc/include/as= m/spinlock.h:4:0,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/atomic.h:20,
from /home/buildbot/repos/linux/include/linux/atomic.h=
:4,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/bitops.h:56,
from /home/buildbot/repos/linux/include/linux/bitops.h=
:35,
from /home/buildbot/repos/linux/include/asm-generic/ge=
torder.h:7,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/page.h:162,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/pdc.h:346,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/hardware.h:5,
from /home/buildbot/repos/linux/arch/parisc/kernel/har=
dware.c:30:/home/buildbot/repos/linux/arch/parisc/include/asm/processor.h:74:16: e=
rror: field =E2=80=98cpu_type=E2=80=99 has incomplete type /home/buildbot/repos/linux/arch/parisc/include/asm/processor.h:77:20: e=
rror: field =E2=80=98model=E2=80=99 has incomplete type /home/buildbot/repos/linux/arch/parisc/include/asm/processor.h: In func= tion =E2=80=98parisc_requires_coherency=E2=80=99:/home/buildbot/repos/linux/arch/parisc/include/asm/processor.h:349:36: =
error: =E2=80=98mako=E2=80=99 undeclared (first use in this function) /home/buildbot/repos/linux/arch/parisc/include/asm/processor.h:349:36: =
note: each undeclared identifier is reported only once for each functio= n it appears in /home/buildbot/repos/linux/arch/parisc/include/asm/processor.h:350:30: =
error: =E2=80=98mako2=E2=80=99 undeclared (first use in this function)
--- arch/parisc/include/asm/hardware.h | 1 - 1 file changed, 1 deletion(-)
arch/parisc/include/a= renamed from arch/parisc/include/asm/hardware.h +0 -0
sm/hardware.h
index 036e703..d1d864b 100644
arch/parisc/include/asm/hardware.h +0 -0
@@ -2,7 +2,6 @@#define _PARISC_HARDWARE_H
=20
#include <linux/mod_devicetable.h>
-#include <asm/pdc.h>
=20
#define HWTYPE_ANY_ID PA_HWTYPE_ANY_ID
#define HVERSION_ANY_ID PA_HVERSION_ANY_ID
--=20
1.7.9.2
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 4/6] parisc: drop include of asm/pdc.h from asm/hardware.h
On Sat, Apr 21, 2012 at 11:17 AM, Rolf Eike Beer <[email protected]=
Quoted 2 lines
wrote:
It seems none of the symbols defined bypdc.his needed,
Rolf,
I looked through both files and I agree whatever dependency might have exsisted, doesn't appear to now.
thanks for cleaning this up,
grant
Quoted 4 lines
but it introduces an
include loop causing compile errors:In file included from /home/buildbot/repos/linux/arch/parisc/include/=
asm/spinlock.h:4:0,
Quoted 1 line
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from /home/bu=
ildbot/repos/linux/arch/parisc/include/asm/atomic.h:20,
Quoted 1 line
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from /home/bu=
ildbot/repos/linux/include/linux/atomic.h:4,
Quoted 1 line
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from /home/bu=
ildbot/repos/linux/arch/parisc/include/asm/bitops.h:56,
Quoted 1 line
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from /home/bu=
ildbot/repos/linux/include/linux/bitops.h:35,
Quoted 1 line
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from /home/bu=
ildbot/repos/linux/include/asm-generic/getorder.h:7,
Quoted 1 line
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from /home/bu=
ildbot/repos/linux/arch/parisc/include/asm/page.h:162,
Quoted 1 line
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from /home/bu=
ildbot/repos/linux/arch/parisc/include/asm/pdc.h:346,
Quoted 1 line
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from /home/bu=
ildbot/repos/linux/arch/parisc/include/asm/hardware.h:5,
Quoted 1 line
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 from /home/bu=
ildbot/repos/linux/arch/parisc/kernel/hardware.c:30:
Quoted 1 line
/home/buildbot/repos/linux/arch/parisc/include/asm/processor.h:74:16:=
error: field =E2=80=98cpu_type=E2=80=99 has incomplete type
Quoted 1 line
/home/buildbot/repos/linux/arch/parisc/include/asm/processor.h:77:20:=
error: field =E2=80=98model=E2=80=99 has incomplete type
Quoted 1 line
/home/buildbot/repos/linux/arch/parisc/include/asm/processor.h: In fu=
nction =E2=80=98parisc_requires_coherency=E2=80=99:
Quoted 1 line
/home/buildbot/repos/linux/arch/parisc/include/asm/processor.h:349:36=
: error: =E2=80=98mako=E2=80=99 undeclared (first use in this function)
Quoted 1 line
/home/buildbot/repos/linux/arch/parisc/include/asm/processor.h:349:36=
: note: each undeclared identifier is reported only once for each funct= ion it appears in
Quoted 1 line
/home/buildbot/repos/linux/arch/parisc/include/asm/processor.h:350:30=
: error: =E2=80=98mako2=E2=80=99 undeclared (first use in this function= )
arch/parisc/include=
Quoted 7 lines
Signed-off-by Rolf Eike Beer <[email protected]>---
=C2=A0arch/parisc/include/asm/hardware.h | =C2=A0 =C2=A01 - =C2=A01 file changed, 1 deletion(-)arch/parisc/include= renamed from arch/parisc/include/asm/hardware.h +0
-0
/asm/hardware.h
Quoted 10 lines
index 036e703..d1d864b 100644
arch/parisc/include/asm/hardware.h +0
-0@@ -2,7 +2,6 @@=C2=A0#define
_PARISC_HARDWARE_H=C2=A0#include <
linux/mod_devicetable.h>
-#include <asm/pdc.h>=C2=A0#define
HWTYPE_ANY_ID=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0PA_HWTY=
PE_ANY_ID
Quoted 1 line
=C2=A0#define
HVERSION_ANY_ID=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
=C2=A0 =C2=A0PA_HVERSION_ANY_ID
Quoted 6 lines
--
1.7.9.2--
To unsubscribe from this list: send the line "unsubscribe linux-paris=
c" in
Quoted 2 lines
the body of a message to [email protected]
More majordomo info at =C2=A0http://vger.kernel.org/majordomo-info.ht=
ml
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 5/6 parisc: add missing include of asm/page.h to asm/pgtable.h
In reply to Rolf Eike BeerFixes these errors:
In file included from /home/buildbot/repos/linux/arch/parisc/include/asm/io.h:5:0,
from /home/buildbot/repos/linux/include/linux/io.h:22,
from /home/buildbot/repos/linux/include/linux/pci.h:54,
from /home/buildbot/repos/linux/arch/parisc/kernel/setup.c:35:/home/buildbot/repos/linux/arch/parisc/include/asm/pgtable.h:92:6: warning: "PAGE_SHIFT" is not defined [-Wundef] /home/buildbot/repos/linux/arch/parisc/include/asm/pgtable.h:92:6: warning: "PAGE_SHIFT" is not defined [-Wundef] /home/buildbot/repos/linux/arch/parisc/include/asm/pgtable.h:92:6: warning: "BITS_PER_PTE_ENTRY" is not defined [-Wundef]
--- arch/parisc/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+)
arch/parisc/include/asm/pgtable.h +2 -0
@@ -44,6 +44,8 @@ struct vm_area_struct;#endif /* !__ASSEMBLY__ */ +#include <asm/page.h> +#define pte_ERROR (e) \ printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))#define pmd_ERROR (e) \
Signature · 1 line
1.7.9.2
PATCH 6/6 parisc: move definition of PAGE0 to asm/page.h
In reply to Rolf Eike BeerThis was defined in asm/pdc.h which needs to include asm/page.h for __PAGE_OFFSET. This leads to an include loop so that page.h eventually = will
include pdc.h again. While this is no problem because of header guards,=
it is
a problem because some symbols may be undefined. Such an error is this:
In file included from /home/buildbot/repos/linux/include/linux/bitops.h= :35:0,
from /home/buildbot/repos/linux/include/asm-generic/ge=
torder.h:7,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/page.h:162,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/pdc.h:346,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/processor.h:16,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/spinlock.h:6,
from /home/buildbot/repos/linux/arch/parisc/include/as=m/atomic.h:20,
from /home/buildbot/repos/linux/include/linux/atomic.h=
:4,
from /home/buildbot/repos/linux/include/linux/sysfs.h:=
20,
from /home/buildbot/repos/linux/include/linux/kobject.=
h:21,
from /home/buildbot/repos/linux/include/linux/device.h=
:17,
from /home/buildbot/repos/linux/include/linux/eisa.h:5=
,
from /home/buildbot/repos/linux/arch/parisc/kernel/pci=
=2Ec:11:/home/buildbot/repos/linux/arch/parisc/include/asm/bitops.h: In functio= n =E2=80=98set_bit=E2=80=99:/home/buildbot/repos/linux/arch/parisc/include/asm/bitops.h:82:2: error= : implicit declaration of function =E2=80=98_atomic_spin_lock_irqsave=E2= =80=99 [-Werror=3Dimplicit-function-declaration] /home/buildbot/repos/linux/arch/parisc/include/asm/bitops.h:84:2: error= : implicit declaration of function =E2=80=98_atomic_spin_unlock_irqrest= ore=E2=80=99 [-Werror=3Dimplicit-function-declaration]
--- arch/parisc/include/asm/page.h | 6 ++++++ arch/parisc/include/asm/pdc.h | 7 ------- arch/parisc/kernel/pdc_cons.c | 1 + arch/parisc/kernel/time.c | 1 + drivers/parisc/sba_iommu.c | 1 + drivers/video/console/sticore.c | 2 ++ 6 files changed, 11 insertions(+), 7 deletions(-)
arch/parisc/include/asm/p= renamed from arch/parisc/include/asm/page.h +0 -0
age.h
index a84cc1f..4e0e7db 100644
arch/parisc/include/asm/page.h +0 -0
@@ -160,5 +160,11 @@ extern int npmem_ranges;
=20
#include <asm-generic/memory_model.h>
#include <asm-generic/getorder.h>
+#include <asm/pdc.h>
+
+#define PAGE0 ((struct zeropage *)__PAGE_OFFSET)
+
+/* DEFINITION OF THE ZERO-PAGE (PAG0) */
+/* based on work by Jason Eckhardt ([email protected]) */ =20
#endif /* _PARISC_PAGE_H */
arch/parisc/include/asm/pd= renamed from arch/parisc/include/asm/pdc.h +0 -0
c.h
index 4ca510b..7f0f2d2 100644
arch/parisc/include/asm/pdc.h +0 -0
@@ -343,8 +343,6 @@
=20
#ifdef __KERNEL__
=20
-#include <asm/page.h> /* for __PAGE_OFFSET */
-
extern int pdc_type;
=20
/* Values for pdc_type */
@@ -677,11 +675,6 @@ static inline char * os_id_to_string(u16 os_id) { =20
#endif /* __KERNEL__ */
=20
-#define PAGE0 ((struct zeropage *)__PAGE_OFFSET)
-
-/* DEFINITION OF THE ZERO-PAGE (PAG0) */
-/* based on work by Jason Eckhardt ([email protected]) */ -
/* flags of the device_path */
#define PF_AUTOBOOT 0x80
#define PF_AUTOSEARCH 0x40
arch/parisc/kernel/pdc_con= renamed from arch/parisc/kernel/pdc_cons.c +0 -0
s.c
index 4f00459..9bbd2a5 100644
arch/parisc/kernel/pdc_cons.c +1 -0
@@ -50,6 +50,7 @@#include <linux/init.h> #include <linux/major.h> #include <linux/tty.h> +#include <asm/page.h> /* for PAGE0 */ #include <asm/pdc.h> /* for iodc_call() proto and friends */
=20
static DEFINE_SPINLOCK(pdc_console_lock);
arch/parisc/kernel/time.c +1 -0
@@ -29,6 +29,7 @@#include <asm/uaccess.h> #include <asm/io.h> #include <asm/irq.h> +#include <asm/page.h> #include <asm/param.h> #include <asm/pdc.h> #include <asm/led.h>
drivers/parisc/sba_iommu.c +1 -0
@@ -44,6 +44,7 @@#include <asm/ropes.h> #include <asm/mckinley.h> /* for proc_mckinley_root */ #include <asm/runway.h> /* for proc_runway_root */ +#include <asm/page.h> /* for PAGE0 */ #include <asm/pdc.h> /* for PDC_MODEL_* */ #include <asm/pdcpat.h> /* for is_pdc_pat() */ #include <asm/parisc-device.h>
drivers/video/console/st= renamed from drivers/video/console/sticore.c +0 -0
icore.c
index 6468a29..39571f9 100644
drivers/video/console/sticore.c +0 -0
@@ -22,7 +22,9 @@#include <linux/font.h>
=20
#include <asm/hardware.h>
+#include <asm/page.h>
#include <asm/parisc-device.h>
+#include <asm/pdc.h>
#include <asm/cacheflush.h>
#include <asm/grfioctl.h>
=20
--=20
1.7.9.2
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Rolf Eike Beer
Since
d66acc39c7cee323733c8503b9de1821a56dff7e(bitops: Optimiseget_order())getorder.hincludeslog2.hwhich leads to an include loop on PA-RISC, bringing a bunch of other breakage to light. This patchset fixes the compilation of the current state of 3.4 on HPPA.
Quoted 7 lines
Rolf Eike Beer (6):
uselinux/bitops.hinstead oflinux/log2.hto getfls()
parisc: add missing includes inasm/spinlock.h
parisc: add missing forward declarations inasm/hardware.h
parisc: drop include ofasm/pdc.hfromasm/hardware.h
parisc: add missing include ofasm/page.htoasm/pgtable.h
parisc: move definition of PAGE0 toasm/page.h
Ping? #4 meanwhile got an ACK from Grant, I have not received any other comments. James, could you please take the latter 5 if you don't feel comfortable with the first one? That one is just a cleanup and makes no difference (yet) if things work or not.
Eike
PATCH 1/1 use linux/bitops.h instead of linux/log2.h to get fls()
In reply to Rolf Eike BeerSince d66acc39c7cee323733c8503b9de1821a56dff7e (bitops: Optimise get_order()) getorder.h includes log2.h to get fls() and fls64(). They are not defined in log2.h, but in bitops.h. This works since log2.h includes bitops.h, but we should do it properly to not get any bad surprises if log2.h changes.
--- include/asm-generic/getorder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/asm-generic/getorder.h +1 -1
@@ -4,7 +4,7 @@#ifndef __ASSEMBLY__#include <linux/compiler.h> -#include <linux/log2.h> +#include <linux/bitops.h> /* * Runtime evaluation of get_order()
Signature · 6 lines
1.7.9.2 -- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] use linux/bitops.h instead of linux/log2.h to get fls()
Quoted 1 line · Rolf Eike Beer
-#include <
linux/log2.h>
That is still required as get_order() uses ilog2().
David