diff mbox series

net: phy: dp83640: Drop unused PAGE0 define

Message ID 20210916195055.1694099-1-linux@roeck-us.net (mailing list archive)
State Superseded
Delegated to: Netdev Maintainers
Headers show
Series net: phy: dp83640: Drop unused PAGE0 define | expand

Checks

Context Check Description
netdev/cover_letter success Link
netdev/fixes_present success Link
netdev/patch_count success Link
netdev/tree_selection success Guessed tree name to be net-next
netdev/subject_prefix warning Target tree name not specified in the subject
netdev/cc_maintainers success CCed 7 of 7 maintainers
netdev/source_inline success Was 0 now: 0
netdev/verify_signedoff success Link
netdev/module_param success Was 0 now: 0
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/verify_fixes success Link
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 7 lines checked
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/header_inline success Link

Commit Message

Guenter Roeck Sept. 16, 2021, 7:50 p.m. UTC
parisc:allmodconfig fails to build with the following error.

In file included from drivers/net/phy/dp83640.c:23:
drivers/net/phy/dp83640_reg.h:8: error: "PAGE0" redefined

The dp83640 driver does not use this define, so just remove it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 drivers/net/phy/dp83640_reg.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Guenter Roeck Sept. 16, 2021, 8:10 p.m. UTC | #1
On 9/16/21 12:50 PM, Guenter Roeck wrote:
> parisc:allmodconfig fails to build with the following error.
> 
> In file included from drivers/net/phy/dp83640.c:23:
> drivers/net/phy/dp83640_reg.h:8: error: "PAGE0" redefined
> 
> The dp83640 driver does not use this define, so just remove it.
> 
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
>   drivers/net/phy/dp83640_reg.h | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/net/phy/dp83640_reg.h b/drivers/net/phy/dp83640_reg.h
> index 21aa24c741b9..601e8d107723 100644
> --- a/drivers/net/phy/dp83640_reg.h
> +++ b/drivers/net/phy/dp83640_reg.h
> @@ -5,7 +5,6 @@
>   #ifndef HAVE_DP83640_REGISTERS
>   #define HAVE_DP83640_REGISTERS
>   
> -#define PAGE0                     0x0000
>   #define PHYCR2                    0x001c /* PHY Control Register 2 */
>   
>   #define PAGE4                     0x0004
> 

Sorry for the noise. I just learned that the problem is already fixed.

Guenter
diff mbox series

Patch

diff --git a/drivers/net/phy/dp83640_reg.h b/drivers/net/phy/dp83640_reg.h
index 21aa24c741b9..601e8d107723 100644
--- a/drivers/net/phy/dp83640_reg.h
+++ b/drivers/net/phy/dp83640_reg.h
@@ -5,7 +5,6 @@ 
 #ifndef HAVE_DP83640_REGISTERS
 #define HAVE_DP83640_REGISTERS
 
-#define PAGE0                     0x0000
 #define PHYCR2                    0x001c /* PHY Control Register 2 */
 
 #define PAGE4                     0x0004