Selaa lähdekoodia

Remove orphaned finsh.h includes after FINSH_FUNCTION_EXPORT cleanup

Co-authored-by: Rbb666 <64397326+Rbb666@users.noreply.github.com>
copilot-swe-agent[bot] 2 kuukautta sitten
vanhempi
sitoutus
af25087e09
67 muutettua tiedostoa jossa 0 lisäystä ja 68 poistoa
  1. 0 1
      bsp/apollo2/board/led.c
  2. 0 1
      bsp/asm9260t/platform/interrupt.c
  3. 0 1
      bsp/at91/at91sam9260/applications/application.c
  4. 0 1
      bsp/at91/at91sam9260/drivers/at91_mci.c
  5. 0 1
      bsp/at91/at91sam9260/drivers/at91_nand.c
  6. 0 1
      bsp/at91/at91sam9g45/applications/application.c
  7. 0 1
      bsp/at91/at91sam9g45/drivers/at91_mci.c
  8. 0 1
      bsp/dm365/applications/application.c
  9. 0 1
      bsp/efm32/dev_accel.c
  10. 0 1
      bsp/efm32/dev_led.c
  11. 0 1
      bsp/efm32/dev_misc.c
  12. 0 1
      bsp/efm32/dev_sflash.c
  13. 0 1
      bsp/efm32/drv_emu.c
  14. 0 1
      bsp/efm32/drv_ethernet.c
  15. 0 1
      bsp/efm32/drv_sdcard.c
  16. 0 1
      bsp/fujitsu/mb9x/mb9bf568r/drivers/led.c
  17. 0 1
      bsp/fujitsu/mb9x/mb9bf618s/drivers/led.c
  18. 0 1
      bsp/mini2440/drivers/dm9000.c
  19. 0 1
      bsp/mini4020/drivers/dm9161.c
  20. 0 2
      bsp/nxp/imx/imxrt/libraries/drivers/drv_eth.c
  21. 0 1
      bsp/nxp/imx/imxrt/libraries/drivers/drv_sdio.c
  22. 0 1
      bsp/nxp/lpc/lpc178x/drivers/emac.c
  23. 0 1
      bsp/nxp/lpc/lpc178x/drivers/lpc17xx_lcd.c
  24. 0 1
      bsp/nxp/lpc/lpc408x/drivers/drv_emac.c
  25. 0 1
      bsp/nxp/lpc/lpc408x/drivers/drv_led.c
  26. 0 1
      bsp/nxp/lpc/lpc43xx/drivers/drv_emac.c
  27. 0 1
      bsp/nxp/lpc/lpc43xx/drivers/drv_led.c
  28. 0 1
      bsp/nxp/lpc/lpc5410x/drivers/drv_led.c
  29. 0 1
      bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/drv_emac.c
  30. 0 1
      bsp/simulator/drivers/nanddrv_file.c
  31. 0 1
      bsp/simulator/drivers/sd_sim.c
  32. 0 1
      bsp/simulator/drivers/sst25vfxx_mtd_sim.c
  33. 0 1
      bsp/simulator/pcap/pcap_netif.c
  34. 0 1
      bsp/tm4c129x/drivers/drv_eth.c
  35. 0 1
      bsp/xplorer4330/drivers/drv_led.c
  36. 0 1
      components/dfs/dfs_v1/src/dfs_file.c
  37. 0 1
      components/dfs/dfs_v1/src/dfs_fs.c
  38. 0 1
      components/dfs/dfs_v2/src/dfs_posix.c
  39. 0 1
      components/drivers/spi/dev_spi_wifi_rw009.c
  40. 0 1
      components/drivers/spi/enc28j60.c
  41. 0 1
      examples/libc/dirent.c
  42. 0 1
      examples/libc/env.c
  43. 0 1
      examples/libc/ex1.c
  44. 0 1
      examples/libc/ex2.c
  45. 0 1
      examples/libc/ex3.c
  46. 0 1
      examples/libc/ex4.c
  47. 0 1
      examples/libc/ex5.c
  48. 0 1
      examples/libc/ex6.c
  49. 0 1
      examples/libc/ex7.c
  50. 0 1
      examples/libc/file.c
  51. 0 1
      examples/libc/memory.c
  52. 0 1
      examples/libc/mq.c
  53. 0 1
      examples/libc/printf.c
  54. 0 1
      examples/libc/rand.c
  55. 0 1
      examples/libc/sem.c
  56. 0 1
      examples/libc/time.c
  57. 0 1
      examples/network/chargen.c
  58. 0 1
      examples/network/tcpsendpacket.c
  59. 0 1
      examples/test/device_test.c
  60. 0 1
      examples/test/dhry_1.c
  61. 0 1
      examples/test/fs_test.c
  62. 0 1
      examples/test/mem_test.c
  63. 0 1
      examples/test/net_test.c
  64. 0 1
      examples/ymodem/echo.c
  65. 0 1
      examples/ymodem/null.c
  66. 0 1
      examples/ymodem/tofile.c
  67. 0 1
      libcpu/arm/s3c24x0/rtc.c

+ 0 - 1
bsp/apollo2/board/led.c

@@ -123,7 +123,6 @@ INIT_DEVICE_EXPORT(rt_hw_led_init);
 #endif
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 
 void led(rt_uint32_t led, rt_uint32_t state)
 {

+ 0 - 1
bsp/asm9260t/platform/interrupt.c

@@ -201,6 +201,5 @@ void list_irq(void)
     }
 }
 
-#include <finsh.h>
 
 #endif

+ 0 - 1
bsp/at91/at91sam9260/applications/application.c

@@ -151,7 +151,6 @@ void nfs_start(void)
         rt_kprintf("NFSv3 File System initialzation failed!\n");
 }
 
-#include "finsh.h"
 #endif
 
 /*@}*/

+ 0 - 1
bsp/at91/at91sam9260/drivers/at91_mci.c

@@ -891,7 +891,6 @@ err:
 
 INIT_DEVICE_EXPORT(at91_mci_init);
 
-#include "finsh.h"
 
 void mci_dump(void)
 {

+ 0 - 1
bsp/at91/at91sam9260/drivers/at91_nand.c

@@ -611,7 +611,6 @@ int rt_hw_mtd_nand_init(void)
 INIT_DEVICE_EXPORT(rt_hw_mtd_nand_init);
 
 #if defined(RT_USING_FINSH)
-#include <finsh.h>
 void nand_eraseall()
 {
     int tmp=0;

+ 0 - 1
bsp/at91/at91sam9g45/applications/application.c

@@ -152,7 +152,6 @@ void nfs_start(void)
         rt_kprintf("NFSv3 File System initialzation failed!\n");
 }
 
-#include "finsh.h"
 #endif
 
 /*@}*/

+ 0 - 1
bsp/at91/at91sam9g45/drivers/at91_mci.c

@@ -891,7 +891,6 @@ err:
 
 INIT_DEVICE_EXPORT(at91_mci_init);
 
-#include "finsh.h"
 
 void mci_dump(void)
 {

+ 0 - 1
bsp/dm365/applications/application.c

@@ -97,7 +97,6 @@ void nfs_start(void)
         rt_kprintf("NFSv3 File System initialzation failed!\n");
 }
 
-#include "finsh.h"
 #endif
 
 /*@}*/

+ 0 - 1
bsp/efm32/dev_accel.c

@@ -824,7 +824,6 @@ rt_err_t efm_accel_init(void)
  *  Export to FINSH
  ******************************************************************************/
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 
 void accel_cal(rt_uint8_t mode, rt_uint32_t second)
 {

+ 0 - 1
bsp/efm32/dev_led.c

@@ -166,7 +166,6 @@ rt_err_t rt_hw_led_init(void)
  *  Export to FINSH
  ******************************************************************************/
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 
 void list_leds(void)
 {

+ 0 - 1
bsp/efm32/dev_misc.c

@@ -172,7 +172,6 @@ rt_int32_t efm32_misc_getCelsius(rt_uint32_t adcResult)
  *  Export to FINSH
  ******************************************************************************/
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 
 void list_temp(void)
 {

+ 0 - 1
bsp/efm32/dev_sflash.c

@@ -381,7 +381,6 @@ rt_uint32_t efm_spiFlash_cmd(
 *   Export to FINSH
 *********************************************************************/
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 
 void list_sflash(void)
 {

+ 0 - 1
bsp/efm32/drv_emu.c

@@ -232,7 +232,6 @@ void efm32_emu_init(void)
  *  Export to FINSH
  ******************************************************************************/
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 
 void list_emu(void)
 {

+ 0 - 1
bsp/efm32/drv_ethernet.c

@@ -1016,7 +1016,6 @@ rt_err_t efm_hw_eth_init(void)
  ******************************************************************************/
 #if defined(EFM32_USING_ETH_UTILS)
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 
 void list_eth(void)
 {

+ 0 - 1
bsp/efm32/drv_sdcard.c

@@ -1271,7 +1271,6 @@ void efm_spiSd_deinit(void)
  *  Export to FINSH
  ******************************************************************************/
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 
 void list_sd(void)
 {

+ 0 - 1
bsp/fujitsu/mb9x/mb9bf568r/drivers/led.c

@@ -153,7 +153,6 @@ void rt_led_hw_init(void)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void led(rt_uint32_t led, rt_uint32_t value)
 {
     rt_uint8_t led_value = value;

+ 0 - 1
bsp/fujitsu/mb9x/mb9bf618s/drivers/led.c

@@ -156,7 +156,6 @@ void rt_led_hw_init(void)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void led(rt_uint32_t led, rt_uint32_t value)
 {
     rt_uint8_t led_value = value;

+ 0 - 1
bsp/mini2440/drivers/dm9000.c

@@ -668,5 +668,4 @@ void dm9000a(void)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 #endif

+ 0 - 1
bsp/mini4020/drivers/dm9161.c

@@ -699,5 +699,4 @@ void dm9161a(void)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 #endif

+ 0 - 2
bsp/nxp/imx/imxrt/libraries/drivers/drv_eth.c

@@ -16,7 +16,6 @@
 #include <rtdevice.h>
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 #endif
 
 #include "fsl_enet.h"
@@ -1094,7 +1093,6 @@ INIT_DEVICE_EXPORT(rt_hw_imxrt_eth_init);
 #endif
 
 #if defined(RT_USING_FINSH) && defined(RT_USING_PHY)
-#include <finsh.h>
 
 void phy_read(rt_uint32_t phy_reg)
 {

+ 0 - 1
bsp/nxp/imx/imxrt/libraries/drivers/drv_sdio.c

@@ -17,7 +17,6 @@
 #include <fsl_gpio.h>
 #include <fsl_iomuxc.h>
 
-#include <finsh.h>
 
 #define RT_USING_SDIO1
 #define RT_USING_SDIO2

+ 0 - 1
bsp/nxp/lpc/lpc178x/drivers/emac.c

@@ -536,7 +536,6 @@ void lpc17xx_emac_hw_init(void)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void emac_dump()
 {
     rt_kprintf("Command  : %08x\n", LPC_EMAC->Command);

+ 0 - 1
bsp/nxp/lpc/lpc178x/drivers/lpc17xx_lcd.c

@@ -95,5 +95,4 @@ void lcd_fill(uint8_t * start, uint8_t * end, uint8_t pixel)
     }
 }
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 #endif

+ 0 - 1
bsp/nxp/lpc/lpc408x/drivers/drv_emac.c

@@ -493,7 +493,6 @@ int rt_hw_emac_init(void)
 INIT_DEVICE_EXPORT(rt_hw_emac_init);
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void emac_dump()
 {
     rt_kprintf("Command  : %08x\n", LPC_EMAC->Command);

+ 0 - 1
bsp/nxp/lpc/lpc408x/drivers/drv_led.c

@@ -144,7 +144,6 @@ int rt_hw_led_init(void)
 INIT_DEVICE_EXPORT(rt_hw_led_init);
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void led_test(rt_uint32_t led_num, rt_uint32_t value)
 {
     rt_uint8_t led_value = value;

+ 0 - 1
bsp/nxp/lpc/lpc43xx/drivers/drv_emac.c

@@ -517,7 +517,6 @@ int lpc_emac_hw_init(void)
 INIT_DEVICE_EXPORT(lpc_emac_hw_init);
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void emac_dump()
 {
     rt_kprintf("Command  : %08x\n", LPC_EMAC->Command);

+ 0 - 1
bsp/nxp/lpc/lpc43xx/drivers/drv_led.c

@@ -159,7 +159,6 @@ int rt_led_hw_init(void)
 INIT_DEVICE_EXPORT(rt_led_hw_init);
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void led_test(rt_uint32_t led_num, rt_uint32_t value)
 {
     rt_uint8_t led_value = value;

+ 0 - 1
bsp/nxp/lpc/lpc5410x/drivers/drv_led.c

@@ -195,7 +195,6 @@ void Led_Control(rt_uint32_t Set_led, rt_uint32_t value)
 INIT_DEVICE_EXPORT(rt_led_hw_init);
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void led_test(rt_uint32_t led_num, rt_uint32_t value)
 {
     rt_uint8_t led_value = value;

+ 0 - 1
bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/drv_emac.c

@@ -725,5 +725,4 @@ void emac_bd_dump(void)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 #endif

+ 0 - 1
bsp/simulator/drivers/nanddrv_file.c

@@ -393,7 +393,6 @@ void rt_hw_mtd_nand_init(void)
 }
 
 #if defined(RT_USING_FINSH)
-#include <finsh.h>
 void nand_eraseall()
 {
     int index;

+ 0 - 1
bsp/simulator/drivers/sd_sim.c

@@ -197,7 +197,6 @@ rt_err_t rt_hw_sdcard_init(const char *spi_device_name)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 int sd_erase(void)
 {
     rt_uint32_t index;

+ 0 - 1
bsp/simulator/drivers/sst25vfxx_mtd_sim.c

@@ -235,7 +235,6 @@ rt_err_t sst25vfxx_mtd_init(const char *nor_name,
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void nor_erase(void)
 {
     rt_uint32_t index;

+ 0 - 1
bsp/simulator/pcap/pcap_netif.c

@@ -276,7 +276,6 @@ void pcap_netif_hw_init(void)
     eth_device_init(&(pcap_netif_device.parent), "e0");
 }
 
-#include <finsh.h>
 void list_pcap(void)
 {
     int i=0;

+ 0 - 1
bsp/tm4c129x/drivers/drv_eth.c

@@ -1488,7 +1488,6 @@ INIT_COMPONENT_EXPORT(rt_hw_tiva_eth_init);
 
 #if 0
 #ifdef RT_USING_FINSH
-#include "finsh.h"
 void PHY_Read(uint8_t addr)
 {
     uint16_t data = EMACPHYRead(EMAC0_BASE, PHY_PHYS_ADDR, addr);

+ 0 - 1
bsp/xplorer4330/drivers/drv_led.c

@@ -152,7 +152,6 @@ int rt_led_hw_init(void)
 INIT_DEVICE_EXPORT(rt_led_hw_init);
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void led_test(rt_uint32_t led_num, rt_uint32_t value)
 {
     rt_uint8_t led_value = value;

+ 0 - 1
components/dfs/dfs_v1/src/dfs_file.c

@@ -780,7 +780,6 @@ int dfs_file_mmap2(struct dfs_file *fd, struct dfs_mmap2_args *mmap2)
 #endif
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 
 void ls(const char *pathname)
 {

+ 0 - 1
components/dfs/dfs_v1/src/dfs_fs.c

@@ -613,7 +613,6 @@ err1:
 #endif
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void mkfs(const char *fs_name, const char *device_name)
 {
     dfs_mkfs(fs_name, device_name);

+ 0 - 1
components/dfs/dfs_v2/src/dfs_posix.c

@@ -848,7 +848,6 @@ int mkdir(const char *path, mode_t mode)
 RTM_EXPORT(mkdir);
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 #endif
 
 /**

+ 0 - 1
components/drivers/spi/dev_spi_wifi_rw009.c

@@ -815,7 +815,6 @@ int32_t rw009_rssi(void)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 
 static rt_err_t rw009_scan(void)
 {

+ 0 - 1
components/drivers/spi/enc28j60.c

@@ -842,7 +842,6 @@ rt_err_t enc28j60_attach(const char *spi_device_name)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 /*
  * Debug routine to dump useful register contents
  */

+ 0 - 1
examples/libc/dirent.c

@@ -9,7 +9,6 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
-#include <finsh.h>
 
 #include <dirent.h>
 int libc_dirent()

+ 0 - 1
examples/libc/env.c

@@ -10,7 +10,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <finsh.h>
 
 int libc_env()
 {

+ 0 - 1
examples/libc/ex1.c

@@ -41,4 +41,3 @@ int libc_ex1(void)
     printf("join b %s %d\n", sucfail(pret), pret);
     return ret;
 }
-#include <finsh.h>

+ 0 - 1
examples/libc/ex2.c

@@ -118,4 +118,3 @@ int libc_ex2(void)
   pthread_join(th_b, &retval);
   return 0;
 }
-#include <finsh.h>

+ 0 - 1
examples/libc/ex3.c

@@ -54,7 +54,6 @@ int libc_ex3()
   /* Exit the program */
   return 0;
 }
-#include <finsh.h>
 
 /* This is the cleanup function that is called
    when the threads are cancelled */

+ 0 - 1
examples/libc/ex4.c

@@ -112,4 +112,3 @@ int libc_ex4()
   pthread_join(th1, NULL);
   pthread_join(th2, NULL);
 }
-#include <finsh.h>

+ 0 - 1
examples/libc/ex5.c

@@ -108,5 +108,4 @@ int libc_ex5(void)
   pthread_join(th_b, &retval);
   return 0;
 }
-#include <finsh.h>
 

+ 0 - 1
examples/libc/ex6.c

@@ -41,4 +41,3 @@ int libc_ex6(void) {
     }
     return 0;
 }
-#include <finsh.h>

+ 0 - 1
examples/libc/ex7.c

@@ -105,4 +105,3 @@ int libc_ex7(void) {
 
     return 0;
 }
-#include <finsh.h>

+ 0 - 1
examples/libc/file.c

@@ -10,7 +10,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <finsh.h>
 #include <sys/errno.h>
 #include <sys/fcntl.h>
 #include <sys/stat.h>

+ 0 - 1
examples/libc/memory.c

@@ -10,7 +10,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <finsh.h>
 #include <sys/errno.h>
 
 static int errors = 0;

+ 0 - 1
examples/libc/mq.c

@@ -125,4 +125,3 @@ int libc_mq()
     printf("PASSED\n");
     return 0;
 }
-#include <finsh.h>

+ 0 - 1
examples/libc/printf.c

@@ -12,7 +12,6 @@
 #include <stdlib.h>
 #include <sys/fcntl.h>
 
-#include <finsh.h>
 
 char * format[] = {
   "%",

+ 0 - 1
examples/libc/rand.c

@@ -10,7 +10,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <finsh.h>
 
 int libc_rand(void)
 {

+ 0 - 1
examples/libc/sem.c

@@ -59,7 +59,6 @@ static void test_thread(void* parameter)
 
     pthread_exit(0);
 }
-#include <finsh.h>
 void libc_sem()
 {
     rt_thread_t tid;

+ 0 - 1
examples/libc/time.c

@@ -10,7 +10,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <finsh.h>
 
 int speed()
 {

+ 0 - 1
examples/network/chargen.c

@@ -235,7 +235,6 @@ void chargen_init(void)
     if (chargen != RT_NULL) rt_thread_startup(chargen);
 }
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void chargen()
 {
     chargen_init();

+ 0 - 1
examples/network/tcpsendpacket.c

@@ -82,7 +82,6 @@ void tcp_senddata(const char *url, int port, int length)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 /* 输出tcpclient函数到finsh shell中 */
 #endif
 

+ 0 - 1
examples/test/device_test.c

@@ -510,6 +510,5 @@ int device_test(const char * device_name)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 #endif
 

+ 0 - 1
examples/test/dhry_1.c

@@ -345,4 +345,3 @@ register int    l;
 }
 #endif
 
-#include <finsh.h>

+ 0 - 1
examples/test/fs_test.c

@@ -292,5 +292,4 @@ void fs_test(rt_uint32_t arg)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 #endif

+ 0 - 1
examples/test/mem_test.c

@@ -109,5 +109,4 @@ void mem_test(uint32_t address, uint32_t size )
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 #endif

+ 0 - 1
examples/test/net_test.c

@@ -11,7 +11,6 @@
  * Net Test Utilities for RT-Thread
  */
 #include <rtthread.h>
-#include <finsh.h>
 #include <lwip/api.h>
 #include <lwip/sockets.h>
 #include <lwip/init.h>

+ 0 - 1
examples/ymodem/echo.c

@@ -42,7 +42,6 @@ rt_err_t rym_cat_to_dev(rt_device_t idev, rt_device_t odev)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void rym_cat_vcom(void)
 {
     extern rt_err_t rym_cat_to_dev(rt_device_t idev, rt_device_t odev);

+ 0 - 1
examples/ymodem/null.c

@@ -18,7 +18,6 @@ static enum rym_code _rym_dummy_write(
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 rt_err_t rym_null(char *devname)
 {
     struct rym_ctx rctx;

+ 0 - 1
examples/ymodem/tofile.c

@@ -106,7 +106,6 @@ rt_err_t rym_write_to_file(rt_device_t idev)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 rt_err_t ry(char *dname)
 {
     rt_err_t res;

+ 0 - 1
libcpu/arm/s3c24x0/rtc.c

@@ -168,7 +168,6 @@ void rt_hw_rtc_init(void)
 }
 
 #ifdef RT_USING_FINSH
-#include <finsh.h>
 void list_date()
 {
     time_t time;